-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
34 lines (34 loc) · 1.38 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
{
"name": "napi",
"workspaces": [
"packages/app",
"packages/cli"
],
"scripts": {
"dev:app": "npm run dev --workspace packages/app",
"dev:cli": "npm run dev --workspace packages/cli",
"build:cleanup": "rm -rf packages/cli/dist && rm -rf packages/app/dist",
"build:packages": "npm run build --workspaces",
"build:copy-dist": "cp -r packages/app/dist packages/cli/dist/app_dist",
"build:add-shebang": "echo '#!/usr/bin/env node' | cat - packages/cli/dist/index.js > temp && mv temp packages/cli/dist/index.js && chmod +x packages/cli/dist/index.js",
"build": "npm run build:cleanup && npm run build:packages && npm run build:copy-dist && npm run build:add-shebang",
"start": "npm run start --workspace packages/cli",
"lint": "eslint . --fix",
"lint:check": "eslint .",
"test": "vitest",
"npm:publish": "npm run npm:publish --workspace packages/cli",
"binaries:cleanup": "rm -rf packages/cli/binaries",
"binaries:build": "npm run binaries:build --workspace packages/cli",
"binaries": "npm run binaries:cleanup && npm run binaries:build",
"release": "npm run release --workspace packages/cli"
},
"devDependencies": {
"eslint": "^9.11.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"prettier": "3.3.3",
"typescript": "^5.6.2",
"typescript-eslint": "^8.8.0",
"vitest": "^2.1.1"
}
}