Skip to content

Commit 04f7f06

Browse files
authoredMar 21, 2023
chore: fix build for "type": "module" (#833)
1 parent 81e86c9 commit 04f7f06

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed
 

‎bs-config.js ‎bs-config.cjs

File renamed without changes.

‎gen-tsd.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
"node_modules/**",
1212
"test/**",
1313
"src/**",
14-
"bs-config.js",
15-
"gulpfile.js",
14+
"bs-config.cjs",
15+
"gulpfile.cjs",
1616
"index.html",
1717
"index.js",
1818
"index.polyfilled.js",
1919
"rollup.config.js",
20-
"wct.conf.js"
20+
"wct.conf.cjs"
2121
],
2222
"addReferences": {
2323
"dist/vaadin-router.d.ts": [

‎gulpfile.js ‎gulpfile.cjs

File renamed without changes.

‎package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -34,20 +34,20 @@
3434
"build": "rollup -c && npm-run-all --parallel build:minify.* build:typescript-declarations",
3535
"build:minify.module": "uglifyjs dist/vaadin-router.umd.js -c -m --source-map content=dist/vaadin-router.umd.js.map,url=vaadin-router.umd.min.js.map --output dist/vaadin-router.umd.min.js",
3636
"build:minify.browser": "uglifyjs dist/vaadin-router.js -c -m --mangle-props regex=/^__/ --toplevel --source-map --output dist/vaadin-router.min.js",
37-
"build:typescript-declarations": "gen-typescript-declarations --outDir . --verify",
37+
"build:typescript-declarations": "gen-typescript-declarations --outDir .",
3838
"build:watch": "rollup -c -w",
3939
"start": "npm run build && polyserve --port 8000",
40-
"start:browser-sync": "browser-sync start --config bs-config.js",
40+
"start:browser-sync": "browser-sync start --config bs-config.cjs",
4141
"start:watch": "npm-run-all --parallel build:watch start start:browser-sync",
4242
"test": "wct && npm run test:coverage && npm run test:typescript-declarations",
4343
"test:coverage": "wct --profile=coverage",
4444
"test:typescript-declarations": "tsc --noEmit",
4545
"size-control": "bundlesize",
46-
"docs": "npm run build && npm run docs:analyze && gulp docs",
46+
"docs": "npm run build && npm run docs:analyze && gulp -f gulpfile.cjs docs",
4747
"docs:analyze": "polymer analyze dist/vaadin-router.js src/documentation/*.js > analysis.json",
4848
"browserslist": "browserslist && browserslist --coverage",
4949
"prepare": "npm run build",
50-
"version": "gulp version:update"
50+
"version": "gulp -f gulpfile.cjs version:update"
5151
},
5252
"bundlesize": [
5353
{

‎wct.conf.js ‎wct.conf.cjs

File renamed without changes.

0 commit comments

Comments
 (0)
Please sign in to comment.