-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: ajusta a publicacao da tag @beta
Ajusta a publicação na tag @beta do NPM Fixes DTHFUI-8276
- Loading branch information
1 parent
1dd5ac9
commit 88042fb
Showing
3 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
const fs = require('fs'); | ||
|
||
const packageDistPath = `${__dirname}/../package.json`; | ||
const packageContent = fs.readFileSync(packageDistPath); | ||
const packageJson = JSON.parse(packageContent); | ||
|
||
if (process.argv.length != 4){ | ||
console.error('Expected at least one argument!'); | ||
process.exit(1); | ||
} | ||
|
||
const versionBeta = process.argv[2]; | ||
const versionPoStyle= process.argv[3]; | ||
|
||
packageJson.version = versionBeta; | ||
packageJson.dependencies['@po-ui/style'] = versionPoStyle; | ||
|
||
fs.writeFileSync(packageDistPath, JSON.stringify(packageJson, null, 2)); | ||
|
||
console.log(JSON.stringify(packageJson, null, 2)) |