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