-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
71 lines (71 loc) · 2.59 KB
/
package.json
File metadata and controls
71 lines (71 loc) · 2.59 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
{
"name": "hello-cli",
"version": "0.3.2",
"description": "A basic CLI written in TypeScript meant to be used as an example or project starter",
"type": "module",
"bin": "./build/esm/src/cli.js",
"exports": {
".": {
"import": "./build/esm/src/cli.js",
"require": "./build/cjs/src/cli.js"
}
},
"files": [
"build",
"LICENSE",
"readme.md"
],
"preferGlobal": true,
"repository": {
"type": "git",
"url": "git+https://github.com/tiberius-s/hello-cli.git"
},
"bugs": {
"url": "https://github.com/tiberius-s/hello-cli/issues"
},
"homepage": "https://github.com/tiberius-s/hello-cli#readme",
"author": "Tiberius Silivestru <tiberius.silivestru@gmail.com>",
"license": "MIT",
"engines": {
"node": ">=20"
},
"scripts": {
"prebuild": "npm run format:fix && npm run lint && npm run typecheck && rm -rf ./build",
"build:esm": "swc src --config-file .swcrc-esm -d build/esm --ignore '**/*.test.ts' && tsc-alias -p tsconfig.json --outDir build/esm --resolve-full-paths || exit 1",
"build:cjs": "swc src --config-file .swcrc-cjs -d build/cjs --ignore '**/*.test.ts' && tsc-alias -p tsconfig.json --outDir build/cjs --resolve-full-paths && echo '{\"type\":\"commonjs\"}' > build/cjs/package.json || exit 1",
"build": "npm run build:esm && npm run build:cjs && node ./add-shebang.js",
"build:ci": "rm -rf ./build && npm run build:esm && npm run build:cjs && node ./add-shebang.js",
"build:debug": "swc --config-file .swcrc-esm -s true -D src -d build/esm",
"typecheck": "tsc --noEmit",
"prepublishOnly": "npm run typecheck && npm run lint && npm test && npm run build",
"clean": "rm -rf ./node_modules ./build; rm package-lock.json; echo 'cleared project artifacts!'",
"format": "biome format ./src",
"format:fix": "biome format --write ./src",
"lint": "biome lint ./src",
"lint:fix": "biome lint --write ./src",
"test": "vitest run",
"test:integration": "npm run build && vitest run --config vitest.config.integration.ts",
"test:integration:ci": "vitest run --config vitest.config.integration.ts",
"test:all": "npm test && npm run test:integration",
"test:cov": "vitest run --coverage"
},
"keywords": [
"typescript",
"cli",
"starter project"
],
"devDependencies": {
"@biomejs/biome": "2.3.8",
"@swc-node/register": "^1.11.1",
"@swc/cli": "^0.7.9",
"@swc/core": "^1.15.3",
"@types/node": "^24.10.2",
"@vitest/coverage-v8": "^4.0.15",
"tsc-alias": "^1.8.16",
"typescript": "^5.9.3",
"vitest": "^4.0.15"
},
"dependencies": {
"commander": "^14.0.2"
}
}