|
3 | 3 | "description": "esmock unit tests, tsm with node native runner",
|
4 | 4 | "repository": {
|
5 | 5 | "type": "git",
|
6 |
| - "url": "https://github.com/iambumblehead/esmock.git" |
| 6 | + "url": "git+https://github.com/iambumblehead/esmock.git" |
7 | 7 | },
|
8 | 8 | "dependencies": {
|
9 |
| - "@swc-node/register": "1.6.6", |
10 | 9 | "esmock": "file:..",
|
11 |
| - "pg": "file:../node_modules/pg", |
12 |
| - "sinon": "file:../node_modules/sinon", |
13 |
| - "eslint": "file:../node_modules/eslint", |
14 |
| - "form-urlencoded": "file:../node_modules/form-urlencoded", |
15 |
| - "babelGeneratedDoubleDefault": "file:../local/babelGeneratedDoubleDefault" |
| 10 | + "@swc-node/register": "1.9.2" |
16 | 11 | },
|
17 | 12 | "scripts": {
|
18 |
| - "test:metaresolve": "node --experimental-import-meta-resolve --loader=@swc-node/register/esm --loader=esmock --test esmock.node-swc.test.ts", |
19 |
| - "test:nometaresolve": "node --loader=@swc-node/register/esm --loader=esmock --test esmock.node-swc.test.ts", |
20 |
| - "test": "npm run test:metaresolve && npm run test:nometaresolve", |
21 |
| - "test": "SWCRC=true node --loader=@swc-node/register/esm --loader=esmock --test esmock.node-swc.test.ts", |
22 |
| - "note": "⚠ https://github.com/swc-project/swc-node/issues/710" |
| 13 | + "isloaderavailable": "node -e \"(([mj, mn]) => (+mj < 18 || (+mj === 20 && +mn < 6) || (+mj === 18 && +mn < 19)))(process.versions.node.split('.')) || process.exit(1)\"", |
| 14 | + "test:loader": "echo not-configured", |
| 15 | + "test:current": "node --import @swc-node/register/esm-register --test esmock.node-swc.test.ts", |
| 16 | + "test": "npm run isloaderavailable && npm run test:loader || npm run test:current", |
| 17 | + "note": "⚠ https://github.com/swc-project/swc-node/issues/710", |
| 18 | + "status": "swc error: SyntaxError: Unexpected identifier 'MockMap'" |
23 | 19 | }
|
24 | 20 | }
|
0 commit comments