mirror of
https://github.com/valitydev/machinegun-proto.git
synced 2024-11-06 01:15:18 +00:00
IMP-85: Bump frontend codegen (#44)
This commit is contained in:
parent
96f7f11b18
commit
f32e92d16f
2
.github/workflows/frontend-pr.yml
vendored
2
.github/workflows/frontend-pr.yml
vendored
@ -14,7 +14,7 @@ jobs:
|
||||
if: needs.configured.outputs.exists == 'true'
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: valitydev/action-frontend/setup@v0.1
|
||||
- uses: valitydev/action-frontend/setup@v1
|
||||
- uses: valitydev/action-setup-thrift@v1.0.1
|
||||
- run: npm i # protocols don't always update the package-lock.json, so installing from package.json
|
||||
- name: Codegen
|
||||
|
4
.github/workflows/frontend-publish.yml
vendored
4
.github/workflows/frontend-publish.yml
vendored
@ -14,11 +14,11 @@ jobs:
|
||||
if: needs.configured.outputs.exists == 'true'
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: valitydev/action-frontend/setup@v0.1
|
||||
- uses: valitydev/action-frontend/setup@v1
|
||||
- uses: valitydev/action-setup-thrift@v1.0.1
|
||||
- run: npm i # protocols don't always update the package-lock.json, so installing from package.json
|
||||
- name: Build
|
||||
run: npm run codegen
|
||||
- uses: valitydev/action-frontend/publish@v0.1
|
||||
- uses: valitydev/action-frontend/publish@v1
|
||||
with:
|
||||
npm-token: ${{ secrets.NPM_TOKEN }}
|
||||
|
3952
package-lock.json
generated
3952
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
22
package.json
22
package.json
@ -2,7 +2,7 @@
|
||||
"name": "@vality/machinegun-proto",
|
||||
"version": "1.0.0",
|
||||
"scripts": {
|
||||
"codegen": "thrift-codegen"
|
||||
"codegen": "thrift-codegen --i ./proto --n state_processing"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public",
|
||||
@ -12,15 +12,27 @@
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/valitydev/machinegun-proto.git"
|
||||
},
|
||||
"exports": {
|
||||
".": "./dist/thrift-codegen.bundle.js",
|
||||
"./metadata.json": "./dist/metadata.json",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"license": "Apache-2.0",
|
||||
"homepage": "https://github.com/valitydev/machinegun-proto#readme",
|
||||
"files": [
|
||||
"lib/**/*.{js,d.ts,json}",
|
||||
"dist/**/*.{js,d.ts,json}",
|
||||
"**/*.thrift"
|
||||
],
|
||||
"main": "./lib/state_processing.js",
|
||||
"types": "./lib/state_processing.d.ts",
|
||||
"main": "./dist/thrift-codegen.bundle.js",
|
||||
"types": "index.d.ts",
|
||||
"typesVersions": {
|
||||
">=4.6": {
|
||||
"*": [
|
||||
"dist/types/*"
|
||||
]
|
||||
}
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vality/thrift-codegen": "0.1.1-c81b4b7.0"
|
||||
"@vality/thrift-codegen": "2.3.2"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user