Skip to content

Commit 16859bc

Browse files
committed
fix: add spa-type-check logic to the adminforth build command
1 parent 5ff7742 commit 16859bc

File tree

4 files changed

+5
-15
lines changed

4 files changed

+5
-15
lines changed

adminforth/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@
1919
},
2020
"scripts": {
2121
"test": "echo \"Error: no test specified yet\" && exit 1",
22-
"build": "rm -rf dist && tsc && pnpm prepareDist",
22+
"build": "pnpm type-check-spa && rm -rf dist && tsc && pnpm prepareDist",
2323
"--comment-prepareDist": "-rl allows supply the spa without symlinks which allows to not include source code in the package",
2424
"prepareDist": "cp -rL spa dist/",
2525
"rollout-doc": "cd documentation && npm run build && npm run deploy",
2626
"docs": "typedoc",
2727
"--comment_postinstall": "postinstall executed after package installed in other project package and when we do pnpm i in the package",
28-
"postinstall": "node scripts/postinstall.js"
28+
"postinstall": "node scripts/postinstall.js",
29+
"type-check-spa": "cd spa && pnpm i && pnpx vue-tsc --build --force --noEmit"
2930
},
3031
"release": {
3132
"plugins": [

adminforth/pnpm-workspace.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
onlyBuiltDependencies:
22
- better-sqlite3
3+
packages:
4+
- "spa"

live-demo/deploy/.woodpecker.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ steps:
2525
- cd adminforth
2626
- pnpm install
2727
- /bin/bash ../live-demo/deploy/buildRelease.sh
28-
- cd ./spa
29-
- npm ci
30-
- /bin/bash ../../live-demo/deploy/typeCheckSPA.sh
31-
- cd ..
3228
- pnpm audit --audit-level=critical
3329
- pnpm exec semantic-release
3430

live-demo/deploy/typeCheckSPA.sh

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)