Skip to content

Commit fca1c56

Browse files
committed
Build: use --input-type=module in npm scripts
Ref jquerygh-5522
1 parent 2cf6591 commit fca1c56

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
"version": "3.7.1",
66
"main": "dist/jquery.js",
77
"scripts": {
8-
"authors:check": "node -e \"(async () => { const { checkAuthors } = await import('./build/release/authors.js'); checkAuthors() })()\"",
9-
"authors:update": "node -e \"(async () => { const { updateAuthors } = await import('./build/release/authors.js'); updateAuthors() })()\"",
8+
"authors:check": "node --input-type=module -e \"import { checkAuthors } from './build/release/authors.js'; checkAuthors()\"",
9+
"authors:update": "node --input-type=module -e \"import { updateAuthors } from './build/release/authors.js'; updateAuthors()\"",
1010
"babel:tests": "babel test/data/core/jquery-iterability-transpiled-es6.js --out-file test/data/core/jquery-iterability-transpiled.js",
1111
"build": "node ./build/command.js",
12-
"build:all": "node -e \"(async () => { const { buildDefaultFiles } = await import('./build/tasks/build.js'); buildDefaultFiles() })()\"",
12+
"build:all": "node --input-type=module -e \"import { buildDefaultFiles } from './build/tasks/build.js'; buildDefaultFiles()\"",
1313
"build:clean": "rimraf --glob dist/*.{js,map} --glob dist-module/*.{js,map}",
14-
"build:main": "node -e \"(async () => { const { build } = await import('./build/tasks/build.js'); build() })()\"",
14+
"build:main": "node --input-type=module -e \"import { build } from './build/tasks/build.js'; build()\"",
1515
"lint:dev": "eslint --cache .",
1616
"lint:json": "jsonlint --quiet package.json",
1717
"lint": "concurrently -r \"npm:lint:dev\" \"npm:lint:json\"",

0 commit comments

Comments
 (0)