Skip to content

Commit 6d25d3a

Browse files
Fix version input and functions for windows and linux build
1 parent accd192 commit 6d25d3a

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

package.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@
55
"types": "./dist/index.d.ts",
66
"main": "./dist/index.js",
77
"scripts": {
8-
"build": "npm run clean && npx tsc && npm run copyfiles",
8+
"build:windows": "npm run clean && npx tsc && npm run copyfiles:windows",
9+
"build:linux": "npm run clean && npx tsc && npm run copyfiles:linux",
910
"clean": "npx rimraf --glob dist/",
10-
"copyfiles": "mkdir \"dist\\api\\v1\\core\\db\" && cp ./src/api/v1/core/db/ ./dist/api/v1/core -r",
11-
"dev": "npm run clean && npm run copyfiles && tsc-watch --onSuccess \"node ./dist/index.js\"",
11+
"copyfiles:linux": "mkdir \"dist\\api\\v1\\core\\db\" && cp ./src/api/v1/core/db/ ./dist/api/v1/core -r",
12+
"copyfiles:windows": "mkdir \"dist\\api\\v1\\core\\db\" && xcopy .\\src\\api\\v1\\core\\db\\ .\\dist\\api\\v1\\core\\db\\ /s /e",
13+
"dev:windows": "npm run clean && npm run copyfiles:windows && tsc-watch --onSuccess \"node ./dist/index.js\"",
14+
"dev:linux": "npm run clean && npm run copyfiles:linux && tsc-watch --onSuccess \"node ./dist/index.js\"",
1215
"start": "node ./dist/index.js",
1316
"test": "vitest",
1417
"test:coverage": "vitest run --coverage"
@@ -48,4 +51,4 @@
4851
"typescript": "^4.9.5",
4952
"vitest": "^1.6.0"
5053
}
51-
}
54+
}

src/api/v1/core

Submodule core updated from 6e27f08 to d377bfd

0 commit comments

Comments
 (0)