|
44 | 44 | "build": "NODE_ENV=production microbundle", |
45 | 45 | "build-docs": "esdoc", |
46 | 46 | "build-gh-pages": "npm run build-docs", |
47 | | - "ci:build": "npm run build", |
48 | | - "ci:test": "npm run lint-config && npm run lint && npm run cover", |
49 | 47 | "commit-msg": "commitlint --edit", |
50 | 48 | "cover": "NODE_ENV=cover c8 --all --src src --reporter lcov --reporter text-summary --reporter text npm test", |
51 | 49 | "debug": "NODE_ENV=debug npm run test -- -st --fail-fast", |
|
61 | 59 | "prepare": "npm run build", |
62 | 60 | "prepublishOnly": "pinst --disable", |
63 | 61 | "release": "np --message ':hatching_chick: release: Bumping to v%s.'", |
64 | | - "test": "ava" |
| 62 | + "test": "npm run test:src", |
| 63 | + "test-cmd": "NODE_LOADER_CONFIG=test/loader/config.js ava", |
| 64 | + "test:cjs": "IMPORT_MAP_PATH=test/import-maps/dist/index.json npm run test-cmd", |
| 65 | + "test:dist": "npm run test:modern && npm run test:module && npm run test:cjs", |
| 66 | + "test:modern": "IMPORT_MAP_PATH=test/import-maps/dist/index.modern.json npm run test-cmd", |
| 67 | + "test:module": "IMPORT_MAP_PATH=test/import-maps/dist/index.module.json npm run test-cmd", |
| 68 | + "test:src": "IMPORT_MAP_PATH=test/import-maps/src/index.json npm run test-cmd" |
65 | 69 | }, |
66 | 70 | "dependencies": {}, |
67 | 71 | "devDependencies": { |
|
70 | 74 | "@babel/register": "7.23.7", |
71 | 75 | "@commitlint/cli": "18.6.0", |
72 | 76 | "@js-library/commitlint-config": "0.0.4", |
| 77 | + "@node-loader/core": "2.0.0", |
| 78 | + "@node-loader/import-maps": "1.1.0", |
73 | 79 | "ava": "6.1.1", |
74 | 80 | "babel-plugin-transform-remove-console": "6.9.4", |
75 | 81 | "babel-plugin-unassert": "3.2.0", |
|
94 | 100 | "files": [ |
95 | 101 | "test/src/**/*" |
96 | 102 | ], |
| 103 | + "nodeArguments": [ |
| 104 | + "--experimental-loader=@node-loader/core" |
| 105 | + ], |
97 | 106 | "require": [ |
98 | 107 | "regenerator-runtime/runtime.js", |
99 | 108 | "@babel/register" |
|
0 commit comments