Skip to content

Commit

Permalink
Merge pull request #30 from Project-OMOTES/fix-ts-emit
Browse files Browse the repository at this point in the history
Fix TS emit
  • Loading branch information
WouterSpaak authored Oct 16, 2024
2 parents 5a3410f + f891d96 commit 1e58363
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ jobs:
- name: Build TypeScript artifacts
run: |
npm ci
npm run build
npm run proto
3 changes: 2 additions & 1 deletion .github/workflows/node_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ jobs:
- name: Build and publish to NPM
run: |
npm ci
npm run build
npm run proto
npm run tsc
npm --no-git-tag-version --force version from-git
npm publish --provenance --access public
env:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -230,3 +230,5 @@ typescript/src/job_pb.d.ts
typescript/src/job_pb.js
typescript/src/workflow_pb.d.ts
typescript/src/workflow_pb.js
typescript/src/index.js
typescript/src/index.d.ts
3 changes: 2 additions & 1 deletion typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"main": "./src/index.js",
"typings": "./src/index.d.ts",
"scripts": {
"build": "./node_modules/.bin/ts-node ./proto.ts"
"proto": "./node_modules/.bin/ts-node ./proto.ts",
"tsc": "npx tsc -p ./tsconfig.json"
},
"repository": {
"type": "git",
Expand Down
2 changes: 2 additions & 0 deletions typescript/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './job_pb';
export * from './workflow_pb';
4 changes: 3 additions & 1 deletion typescript/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"include": ["src/**/*.ts"],
"compilerOptions": {
"declaration": true,
/* Visit https://aka.ms/tsconfig to read more about this file */

/* Projects */
Expand Down Expand Up @@ -106,5 +108,5 @@
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
"skipLibCheck": true /* Skip type checking all .d.ts files. */
},
"exclude": ["node_modules", "./src"] /* ./src is autogenerated by protoc */
"exclude": ["node_modules"] /* ./src is autogenerated by protoc */
}

0 comments on commit 1e58363

Please sign in to comment.