-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
78 lines (78 loc) · 2.32 KB
/
package.json
File metadata and controls
78 lines (78 loc) · 2.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
"name": "babel-plugin-node-cjs-interop",
"description": "A babel plugin to fix the default import interoperability issue in Node.js",
"keywords": [
"babel",
"babel-plugin",
"commonjs",
"node",
"esm",
"mjs",
"cjs",
"default import"
],
"homepage": "https://github.com/qnighy/node-cjs-interop#readme",
"bugs": {
"url": "https://github.com/qnighy/node-cjs-interop/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/qnighy/node-cjs-interop.git",
"directory": "packages/babel-plugin-node-cjs-interop"
},
"license": "MIT",
"author": "Masaki Hara <ackie.h.gmai@gmail.com>",
"version": "0.1.9",
"type": "module",
"main": "./cjs/dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
"require": "./cjs/dist/index.js",
"default": "./dist/index.js"
},
"files": [
"cjs/**/*",
"dist/**/*"
],
"scripts": {
"build": "$npm_execpath run build:tsc && $npm_execpath run build:babel:esm && $npm_execpath run build:babel:cjs",
"build:babel:cjs": "babel -d cjs/dist src -x '.ts' --ignore 'src/**/*.test.ts' --ignore '**/*.d.ts' --config-file ./babel-cjs.config.cjs",
"build:babel:esm": "babel -d dist src -x '.ts' --ignore 'src/**/*.test.ts' --ignore '**/*.d.ts'",
"build:tsc": "tsc --build",
"fmt": "prettier -w .",
"fmt:check": "prettier -c .",
"jest": "NODE_OPTIONS='--experimental-vm-modules' jest",
"lint": "eslint .",
"prepack": "$npm_execpath run build",
"test": "yarn build:babel:cjs && yarn jest"
},
"dependencies": {
"@babel/helper-plugin-utils": "^7.22.5",
"@babel/helper-validator-option": "^7.22.15"
},
"devDependencies": {
"@babel/cli": "^7.24.8",
"@babel/core": "^7.25.2",
"@babel/helper-plugin-test-runner": "^7.24.7",
"@babel/preset-env": "^7.25.3",
"@babel/preset-typescript": "^7.24.7",
"@babel/types": "^7.25.2",
"@jest/globals": "^29.7.0",
"@types/babel__core": "^7.20.5",
"@types/babel__helper-plugin-utils": "^7.10.3",
"babel-jest": "^29.7.0",
"eslint": "^9.39.1",
"jest": "^29.7.0",
"jest-resolve": "^29.7.0",
"jest-ts-webcompat-resolver": "^1.0.0",
"prettier": "^3.3.3",
"typescript": "^5.9.3"
},
"jest": {
"extensionsToTreatAsEsm": [
".ts",
".mts"
],
"resolver": "jest-ts-webcompat-resolver"
}
}