aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimmy Willison <timmywil@users.noreply.github.com>2024-07-23 10:59:06 -0400
committerTimmy Willison <timmywil@users.noreply.github.com>2024-07-29 12:34:41 -0400
commit57ef12e0d19eafea0371800959b7b5f0fba61f6c (patch)
tree5143b3ab68788bc44cd42d30fc4aab0e847d56f4
parent53ad94f319930a5bf8cb9bd935ebd4e028741903 (diff)
downloadjquery-57ef12e0d19eafea0371800959b7b5f0fba61f6c.tar.gz
jquery-57ef12e0d19eafea0371800959b7b5f0fba61f6c.zip
Build: use --input-type=module in npm scripts
Ref gh-5521
-rw-r--r--package.json10
1 files changed, 5 insertions, 5 deletions
diff --git a/package.json b/package.json
index 9f29c124e..fea5458aa 100644
--- a/package.json
+++ b/package.json
@@ -45,13 +45,13 @@
},
"main": "dist/jquery.js",
"scripts": {
- "authors:check": "node -e \"(async () => { const { checkAuthors } = await import('./build/release/authors.js'); checkAuthors() })()\"",
- "authors:update": "node -e \"(async () => { const { updateAuthors } = await import('./build/release/authors.js'); updateAuthors() })()\"",
+ "authors:check": "node --input-type=module -e \"import { checkAuthors } from './build/release/authors.js'; checkAuthors()\"",
+ "authors:update": "node --input-type=module -e \"import { updateAuthors } from './build/release/authors.js'; updateAuthors()\"",
"babel:tests": "babel test/data/core/jquery-iterability-transpiled-es6.js --out-file test/data/core/jquery-iterability-transpiled.js",
"build": "node ./build/command.js",
- "build:all": "node -e \"(async () => { const { buildDefaultFiles } = await import('./build/tasks/build.js'); buildDefaultFiles() })()\"",
+ "build:all": "node --input-type=module -e \"import { buildDefaultFiles } from './build/tasks/build.js'; buildDefaultFiles()\"",
"build:clean": "rimraf --glob dist/*.{js,map} --glob dist-module/*.{js,map}",
- "build:main": "node -e \"(async () => { const { build } = await import('./build/tasks/build.js'); build() })()\"",
+ "build:main": "node --input-type=module -e \"import { build } from './build/tasks/build.js'; build()\"",
"lint:dev": "eslint --cache .",
"lint:json": "jsonlint --quiet package.json",
"lint": "concurrently -r \"npm:lint:dev\" \"npm:lint:json\"",
@@ -64,7 +64,7 @@
"release:clean": "rimraf tmp changelog.html contributors.html",
"release:dist": "node build/release/dist.js",
"release:verify": "node build/release/verify.js",
- "start": "node -e \"(async () => { const { buildDefaultFiles } = await import('./build/tasks/build.js'); buildDefaultFiles({ watch: true }) })()\"",
+ "start": "node --input-type=module -e \"import { buildDefaultFiles } from './build/tasks/build.js'; buildDefaultFiles({ watch: true })\"",
"test:bundlers": "npm run pretest && npm run build:all && node test/bundler_smoke_tests/run-jsdom-tests.js",
"test:browser": "npm run pretest && npm run build:main && npm run test:unit -- -b chrome -b firefox -h",
"test:browserless": "npm run pretest && npm run build:all && node test/bundler_smoke_tests/run-jsdom-tests.js && node build/tasks/node_smoke_tests.js && node build/tasks/promises_aplus_tests.js && npm run test:unit -- -b jsdom -m basic",