Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Publish @runtime-type-inspector/[email protected]
Publish @runtime-type-inspector/[email protected]
Publish @runtime-type-inspector/[email protected]
Publish @runtime-type-inspector/[email protected]
Publish @runtime-type-inspector/[email protected]
Publish @runtime-type-inspector/[email protected]
Publish @runtime-type-inspector/[email protected]
Publish @runtime-type-inspector/[email protected]
Publish @runtime-type-inspector/[email protected]
  • Loading branch information
kungfooman committed Feb 22, 2024
1 parent 648beab commit 6a7e886
Show file tree
Hide file tree
Showing 20 changed files with 438 additions and 2,555 deletions.
28 changes: 28 additions & 0 deletions @runtime-type-inspector/runtime/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion @runtime-type-inspector/runtime/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@runtime-type-inspector/runtime",
"version": "3.2.3",
"version": "3.2.4",
"description": "Validating JSDoc types at runtime for high-quality types - Trust is good, control is better.",
"main": "index.cjs",
"module": "index.mjs",
Expand Down
82 changes: 82 additions & 0 deletions @runtime-type-inspector/transpiler/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions @runtime-type-inspector/transpiler/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"bin": "bin.js",
"name": "@runtime-type-inspector/transpiler",
"version": "3.2.3",
"version": "3.2.4",
"description": "Validating JSDoc types at runtime for high-quality types - Trust is good, control is better.",
"main": "index.cjs",
"module": "index.mjs",
Expand All @@ -19,7 +19,7 @@
"homepage": "https://github.com/kungfooman/RuntimeTypeInspector.js#readme",
"dependencies": {
"@babel/parser": "^7.23.0",
"@runtime-type-inspector/runtime": "^3.2.3",
"@runtime-type-inspector/runtime": "^3.2.4",
"typescript": "^5.1.6"
},
"files": [
Expand Down
21 changes: 12 additions & 9 deletions npmhelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,9 @@ const dirs = [
'plugin-webpack5',
'repl',
];
const newVersion = '3.2.3';
const newVersion = JSON.parse(readFileSync('package.json', 'utf-8')).version;
for (const dir of dirs) {
const file = `${dir}/package.json`;
const command = [
`cd ${dir}`,
'npm publish'
].join(' && ');
//console.log(`# Package: ${dir}`);
//console.log(command);
//execSync(command);
const content = readFileSync(file, 'utf8');
const json = JSON.parse(content);
json.version = newVersion;
Expand All @@ -50,10 +43,20 @@ for (const dir of dirs) {
const newContent = JSON.stringify(json, null, 2) + '\n';
writeFileSync(file, newContent);
}
console.log('# For publishing: ');
console.log('export OTP=123');
for (const dir of dirs) {
const command = [
`cd ${dir}`,
'npm publish --otp=$OTP',
].join(' && ') + '\ncd -';
console.log(command);
}
console.log('# For updating package-lock.json files');
for (const dir of dirs) {
const command = [
`cd ${dir}`,
'npm publish',
'npm install',
].join(' && ') + '\ncd -';
console.log(command);
}
Expand Down
79 changes: 55 additions & 24 deletions plugin-parcel1/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions plugin-parcel1/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@runtime-type-inspector/plugin-parcel1",
"version": "3.2.3",
"version": "3.2.4",
"description": "RuntimeTypeInspector.js plugin for Parcel v1",
"main": "index.cjs",
"publishConfig": {
Expand All @@ -11,6 +11,6 @@
"license": "MIT",
"dependencies": {
"parcel-bundler": "^1.12.5",
"@runtime-type-inspector/transpiler": "^3.2.3"
"@runtime-type-inspector/transpiler": "^3.2.4"
}
}
Loading

0 comments on commit 6a7e886

Please sign in to comment.