diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 59aa32d..7c628b2 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -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: diff --git a/.gitignore b/.gitignore index faeb11d..ad3f0c9 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ protos/compiled.d.ts protos/compiled.js pnpm-lock.yaml index.d.ts +index.js diff --git a/tsconfig.json b/tsconfig.json index 04f885c..641424c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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" + ] } \ No newline at end of file