Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(proxy version): Fix proxy package release flow #206

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions extractVersion.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
const { version } = require('./package.json')
console.log(version)
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"build:remote": "tsc --module commonjs --project tsconfig.build.json",
"build:proxy": "tsc --module commonjs --project tsconfig.proxy.json",
"build": "tsc --module commonjs --project tsconfig.build.json && tsc --module commonjs --project tsconfig.proxy.json && npm run build:remote && npm run build:proxy && rollup -c rollup.config.ts",
"version:dev": "export NEW_VER=$(npm version prerelease --no-git-tag-version --preid alpha); npm version --workspace proxy ${NEW_VER}",
"version:dev": "npm version prerelease --no-git-tag-version --preid alpha",
"build:local": "rimraf fsxa-api-*.tgz && npm run version:dev && npm run build && npm pack && npm pack --workspace proxy",
"start": "rollup -c rollup.config.ts -w",
"test": "jest --verbose ./src",
Expand All @@ -48,7 +48,8 @@
"commitmsg": "commitlint -E HUSKY_GIT_PARAMS",
"dts": "./node_modules/.bin/npm-dts generate -e ./src/FSXAApi.ts",
"dev": "npx nodemon dev/index.ts --ignore ./**/dist",
"postpublish": "npm publish --workspace proxy"
"postpublish": "npm publish --workspace proxy",
"version": "npm version --workspace proxy \"$(node extractVersion.js)\""
},
"lint-staged": {
"{src,test}/**/*.ts": [
Expand Down
Loading