/
package.json
91 lines (91 loc) · 2.86 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{
"name": "ts2mjs",
"version": "2.1.1",
"description": "Rename TypeScript Created ESM .js files to .mjs",
"bin": {
"ts2mjs": "bin.mjs"
},
"type": "module",
"keywords": [
"ESM",
"js",
"mjs",
"TypeScript",
"d.ts",
"d.mts"
],
"author": "Jason Dent",
"homepage": "https://github.com/streetsidesoftware/ts2mjs#readme",
"license": "MIT",
"scripts": {
"build": "tsc -p .",
"build:all": "pnpm build && pnpm build:fixtures && pnpm build:readme",
"build:fixtures": "pnpm build:fixtures:esm && pnpm build:fixtures:cjs",
"build:fixtures:esm": "shx rm -rf fixtures/sample/out fixtures/sample/lib && tsc -p fixtures/sample && ./bin.mjs . --root fixtures/sample/lib --output fixtures/sample/out ",
"build:fixtures:cjs": "shx rm -rf fixtures/sample/lib-cjs &&tsc -p fixtures/sample/tsconfig.cjs.json && ./bin.mjs . --cjs --root fixtures/sample/lib-cjs",
"build:readme": "pnpm build:readme:help && pnpm build:readme:inject && prettier -w README.md",
"build:readme:help": "./bin.mjs --help > static/help.txt",
"build:readme:inject": "inject-markdown README.md",
"watch": "tsc -p . --watch",
"clean": "shx rm -rf dist temp coverage",
"clean-build": "pnpm clean && shx rm -rf fixtures/sample/lib fixtures/sample/out && pnpm build:all",
"coverage": "vitest run --coverage",
"lint": "pnpm eslint && pnpm prettier",
"lint:fix": "pnpm eslint:fix && pnpm prettier:fix",
"lint:spell": "cspell \"**\"",
"prettier": "prettier -c .",
"prettier:fix": "prettier -w .",
"eslint": "eslint .",
"eslint:fix": "eslint . --fix",
"app": "node ./bin.mjs",
"test": "vitest run",
"test:watch": "vitest",
"prepare": "pnpm build"
},
"repository": {
"type": "git",
"url": "git+https://github.com/streetsidesoftware/ts2mjs.git"
},
"bugs": {
"url": "https://github.com/streetsidesoftware/ts2mjs/issues"
},
"dependencies": {
"chalk": "^5.3.0",
"commander": "^12.0.0",
"globby": "^14.0.1",
"magic-string": "^0.30.7"
},
"devDependencies": {
"@tsconfig/node18": "^18.2.2",
"@types/node": "^18.19.21",
"@typescript-eslint/eslint-plugin": "^7.1.0",
"@typescript-eslint/parser": "^7.1.0",
"@vitest/coverage-istanbul": "^1.3.1",
"cspell": "^8.5.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-promise": "^6.1.1",
"inject-markdown": "^3.0.0",
"prettier": "^3.2.5",
"shx": "^0.3.4",
"typescript": "^5.3.3",
"vite": "^5.1.4",
"vitest": "^1.3.1"
},
"engines": {
"node": ">=18.0"
},
"packageManager": "pnpm@8.15.2",
"files": [
"bin.mjs",
"dist/**",
"lib/**",
"!**/*.test.*",
"!**/test.*",
"!**/*.map"
]
}