fix test:watch

This commit is contained in:
Cory LaViska
2021-10-14 08:39:17 -04:00
parent 88cba353c0
commit 3a3f5552a7
2 changed files with 6 additions and 3 deletions

View File

@@ -7,7 +7,7 @@
"license": "MIT",
"main": "dist/shoelace.js",
"module": "dist/shoelace.js",
"customElements": "docs/dist/custom-elements.json",
"customElements": "dist/custom-elements.json",
"type": "module",
"types": "dist/shoelace.d.ts",
"files": [
@@ -30,7 +30,7 @@
"url": "https://github.com/sponsors/claviska"
},
"scripts": {
"start": "node scripts/build.js --dir docs/dist --bundle --serve",
"start": "node scripts/build.js --bundle --serve",
"build": "node scripts/build.js --types",
"build-docs": "node scripts/build.js --dir docs/dist --bundle",
"prepublishOnly": "npm run build && npm run build-docs && npm run test",

View File

@@ -102,7 +102,10 @@ mkdirp.sync(outdir);
single: true,
ghostMode: false,
server: {
baseDir: 'docs'
baseDir: 'docs',
routes: {
'/dist': './dist'
}
}
});