From 04f7f0668db9dbd728834fb16f3a535f168fc146 Mon Sep 17 00:00:00 2001 From: Anton Platonov Date: Tue, 21 Mar 2023 16:24:08 +0200 Subject: [PATCH] chore: fix build for "type": "module" (#833) --- bs-config.js => bs-config.cjs | 0 gen-tsd.json | 6 +++--- gulpfile.js => gulpfile.cjs | 0 package.json | 8 ++++---- wct.conf.js => wct.conf.cjs | 0 5 files changed, 7 insertions(+), 7 deletions(-) rename bs-config.js => bs-config.cjs (100%) rename gulpfile.js => gulpfile.cjs (100%) rename wct.conf.js => wct.conf.cjs (100%) diff --git a/bs-config.js b/bs-config.cjs similarity index 100% rename from bs-config.js rename to bs-config.cjs diff --git a/gen-tsd.json b/gen-tsd.json index 7ae89022..fd98b076 100644 --- a/gen-tsd.json +++ b/gen-tsd.json @@ -11,13 +11,13 @@ "node_modules/**", "test/**", "src/**", - "bs-config.js", - "gulpfile.js", + "bs-config.cjs", + "gulpfile.cjs", "index.html", "index.js", "index.polyfilled.js", "rollup.config.js", - "wct.conf.js" + "wct.conf.cjs" ], "addReferences": { "dist/vaadin-router.d.ts": [ diff --git a/gulpfile.js b/gulpfile.cjs similarity index 100% rename from gulpfile.js rename to gulpfile.cjs diff --git a/package.json b/package.json index 14fea6c0..7babf524 100644 --- a/package.json +++ b/package.json @@ -34,20 +34,20 @@ "build": "rollup -c && npm-run-all --parallel build:minify.* build:typescript-declarations", "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", "build:minify.browser": "uglifyjs dist/vaadin-router.js -c -m --mangle-props regex=/^__/ --toplevel --source-map --output dist/vaadin-router.min.js", - "build:typescript-declarations": "gen-typescript-declarations --outDir . --verify", + "build:typescript-declarations": "gen-typescript-declarations --outDir .", "build:watch": "rollup -c -w", "start": "npm run build && polyserve --port 8000", - "start:browser-sync": "browser-sync start --config bs-config.js", + "start:browser-sync": "browser-sync start --config bs-config.cjs", "start:watch": "npm-run-all --parallel build:watch start start:browser-sync", "test": "wct && npm run test:coverage && npm run test:typescript-declarations", "test:coverage": "wct --profile=coverage", "test:typescript-declarations": "tsc --noEmit", "size-control": "bundlesize", - "docs": "npm run build && npm run docs:analyze && gulp docs", + "docs": "npm run build && npm run docs:analyze && gulp -f gulpfile.cjs docs", "docs:analyze": "polymer analyze dist/vaadin-router.js src/documentation/*.js > analysis.json", "browserslist": "browserslist && browserslist --coverage", "prepare": "npm run build", - "version": "gulp version:update" + "version": "gulp -f gulpfile.cjs version:update" }, "bundlesize": [ { diff --git a/wct.conf.js b/wct.conf.cjs similarity index 100% rename from wct.conf.js rename to wct.conf.cjs