Skip to content

Commit

Permalink
fix: 脚本顺序
Browse files Browse the repository at this point in the history
  • Loading branch information
shijinn520 committed Jun 29, 2024
1 parent 62c1670 commit b912b7e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ jobs:
- name: 安装依赖
run: npm install

- name: 编译index.ts
run: npx tsc

- name: 全局安装 protobufjs-cli
run: npm install -g protobufjs-cli

- name: 编译 proto
run: npm run build

- name: 编译index.ts
run: npx tsc

- name: 推送到 npm
run: npm publish
env:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ protos/compiled.d.ts
protos/compiled.js
pnpm-lock.yaml
index.d.ts
index.js
20 changes: 16 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,21 @@
"declaration": true,
"forceConsistentCasingInFileNames": true,
"outDir": ".",
"typeRoots": ["./node_modules/@types"],
"types": ["node"]
"typeRoots": [
"./node_modules/@types"
],
"types": [
"node"
]
},
"include": ["index.ts"],
"exclude": ["node_modules", "dist"]
"include": [
"index.ts"
],
"exclude": [
"node_modules",
"dist",
"protos",
"kritor",
".github"
]
}

0 comments on commit b912b7e

Please sign in to comment.