Skip to content

Commit 6803768

Browse files
Fix/typescript include gen files (#133)
include generated files for typescript in package
1 parent edf24e0 commit 6803768

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

.github/workflows/typescript_package_publish.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ jobs:
2525
run: |
2626
cd ./scripts
2727
yarn
28-
cd ../models/typescript
29-
yarn
3028
3129
- name: Publish to npm
3230
run: cd ./models/typescript && npm publish

models/typescript/.npmignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# overrides .gitignore to include all files in the root directory
2+
3+
!v3.0/*
4+
!v3.0/index.d.ts
5+
!v3.1-RC/*
6+
!v3.1-RC/index.d.ts

models/typescript/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gbfs-typescript-types",
3-
"version": "1.0.6",
3+
"version": "1.0.7",
44
"description": "Language Bindings for GBFS in Typescript",
55
"license": "Apache-2.0",
66
"types": "index.d.ts",
@@ -9,6 +9,11 @@
99
"prepare": "cd ../../scripts && ./generate_typescript_models.sh",
1010
"test": "jest"
1111
},
12+
"files": [
13+
"index.d.ts",
14+
"v3.1-RC",
15+
"v3.0"
16+
],
1217
"devDependencies": {
1318
"@types/jest": "^29.5.12",
1419
"jest": "^29.7.0",

0 commit comments

Comments
 (0)