@okamjs/okam
Advanced tools
Comparing version 0.0.35 to 0.0.36-dev.20231117.1
@@ -82,2 +82,3 @@ /* tslint:disable */ | ||
}; | ||
optimizePackageImports?: boolean; | ||
}, callback: (...args: any[]) => any, watch: boolean): void |
{ | ||
"name": "@okamjs/okam", | ||
"version": "0.0.35", | ||
"version": "0.0.36-dev.20231117.1", | ||
"main": "index.js", | ||
@@ -39,6 +39,6 @@ "types": "index.d.ts", | ||
"optionalDependencies": { | ||
"@okamjs/okam-darwin-arm64": "0.0.35", | ||
"@okamjs/okam-darwin-x64": "0.0.35", | ||
"@okamjs/okam-linux-x64-gnu": "0.0.35" | ||
"@okamjs/okam-darwin-arm64": "0.0.36-dev.20231117.1", | ||
"@okamjs/okam-darwin-x64": "0.0.36-dev.20231117.1", | ||
"@okamjs/okam-linux-x64-gnu": "0.0.36-dev.20231117.1" | ||
} | ||
} |
import 'zx/globals'; | ||
(async () => { | ||
console.log('Check branch'); | ||
const branch = (await $`git branch --show-current`).stdout.trim(); | ||
if (branch !== 'master') { | ||
throw new Error('Please run this script in master branch'); | ||
} | ||
// console.log('Check branch'); | ||
// const branch = (await $`git branch --show-current`).stdout.trim(); | ||
// if (branch !== 'master') { | ||
// throw new Error('Please run this script in master branch'); | ||
// } | ||
@@ -15,7 +15,7 @@ // Check docker status | ||
// Check git status | ||
console.log('Check git status'); | ||
const status = (await $`git status --porcelain`).stdout.trim(); | ||
if (status) { | ||
throw new Error('Please commit all changes before release'); | ||
} | ||
// console.log('Check git status'); | ||
// const status = (await $`git status --porcelain`).stdout.trim(); | ||
// if (status) { | ||
// throw new Error('Please commit all changes before release'); | ||
// } | ||
@@ -77,24 +77,24 @@ // bump version | ||
// set new version to bundler-okam | ||
console.log('Set new version to bundler-okam'); | ||
const bundlerOkamPkgPath = path.join( | ||
__dirname, | ||
'../../../packages/bundler-okam/package.json', | ||
); | ||
const bundlerOkamPkg = JSON.parse( | ||
fs.readFileSync(bundlerOkamPkgPath, 'utf-8'), | ||
); | ||
bundlerOkamPkg.dependencies['@okamjs/okam'] = `${newVersion}`; | ||
fs.writeFileSync( | ||
bundlerOkamPkgPath, | ||
JSON.stringify(bundlerOkamPkg, null, 2) + '\n', | ||
); | ||
// console.log('Set new version to bundler-okam'); | ||
// const bundlerOkamPkgPath = path.join( | ||
// __dirname, | ||
// '../../../packages/bundler-okam/package.json', | ||
// ); | ||
// const bundlerOkamPkg = JSON.parse( | ||
// fs.readFileSync(bundlerOkamPkgPath, 'utf-8'), | ||
// ); | ||
// bundlerOkamPkg.dependencies['@okamjs/okam'] = `${newVersion}`; | ||
// fs.writeFileSync( | ||
// bundlerOkamPkgPath, | ||
// JSON.stringify(bundlerOkamPkg, null, 2) + '\n', | ||
// ); | ||
await $`git commit -a -m "release: ${nodePkg.name}@${newVersion}"`; | ||
// tag | ||
console.log('Tag'); | ||
await $`git tag v${newVersion}`; | ||
// await $`git commit -a -m "release: ${nodePkg.name}@${newVersion}"`; | ||
// // tag | ||
// console.log('Tag'); | ||
// await $`git tag v${newVersion}`; | ||
// push | ||
console.log('Push'); | ||
await $`git push origin ${branch} --tags`; | ||
// // push | ||
// console.log('Push'); | ||
// await $`git push origin ${branch} --tags`; | ||
})().catch((e) => { | ||
@@ -101,0 +101,0 @@ console.error(e); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15193
449