-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpackage.json
67 lines (67 loc) · 1.94 KB
/
package.json
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
{
"name": "ts-add-js-extension",
"description": "Add .js extension to each relative ESM import and export statement in JavaScript file",
"version": "1.6.5",
"license": "MIT",
"main": "./build/cjs/index.js",
"module": "./build/mjs/index.js",
"types": "./build/cjs/index.d.ts",
"react-native": "./build/mjs/index.js",
"exports": {
"./package.json": "./package.json",
".": {
"require": "./build/cjs/index.js",
"import": "./build/mjs/index.js",
"default": "./build/mjs/index.js"
}
},
"bin": {
"ts-add-js-extension": "./build/cjs/bin.js"
},
"files": [
"build"
],
"scripts": {
"lint": "eslint . --color",
"format": "prettier-config-generate && prettier .",
"format-write": "pnpm format --write",
"format-check": "pnpm format --check",
"build-cjs": "tsc -p tsconfig.cjs.json && shx chmod +x build/cjs/bin.js",
"build-mjs": "tsc -p tsconfig.mjs.json && node build/cjs/bin.js --dir build/mjs",
"prebuild": "vite-node script/package.ts",
"build": "pnpm prebuild && shx rm -rf build && pnpm build-cjs && pnpm build-mjs && node-package-helper",
"test-setup": "cd test/process && shx rm -rf actual-result && shx cp -r source actual-result && pnpm prebuild",
"pretest": "pnpm test-setup && pnpm prebuild",
"test": "pnpm pretest && vitest"
},
"bugs": "https://github.com/GervinFung/ts-add-js-extension/issues",
"repository": {
"type": "git",
"url": "https://github.com/GervinFung/ts-add-js-extension"
},
"dependencies": {
"typescript": "^5.7.2"
},
"devDependencies": {
"@poolofdeath20/eslint-config": "^0.4.2",
"@poolofdeath20/prettier-config-generator": "^0.0.1",
"@poolofdeath20/tsconfig": "^0.1.1",
"@types/node": "^22.10.2",
"eslint": "^9.17.0",
"node-package-helper": "github:GervinFung/node-package-helper",
"prettier": "^3.4.2",
"shx": "^0.3.4",
"vite-node": "^2.1.8",
"vitest": "^2.1.8"
},
"keywords": [
"esm",
"tsc",
"mjs",
"js",
"typescript",
"javascript",
"js extension",
"esnext"
]
}