jsii-release 0.2.253 → 0.2.257

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -22,6 +22,7 @@
22
22
  "eject": "npx projen eject",
23
23
  "eslint": "npx projen eslint",
24
24
  "package": "npx projen package",
25
+ "package-as-publib": "npx projen package-as-publib",
25
26
  "post-compile": "npx projen post-compile",
26
27
  "post-upgrade": "npx projen post-upgrade",
27
28
  "pre-compile": "npx projen pre-compile",
@@ -48,11 +49,11 @@
48
49
  "eslint-import-resolver-node": "^0.3.6",
49
50
  "eslint-import-resolver-typescript": "^2.5.0",
50
51
  "eslint-plugin-import": "^2.25.4",
51
- "jest": "^27.5.0",
52
+ "jest": "^27.5.1",
52
53
  "jest-junit": "^13",
53
54
  "json-schema": "^0.4.0",
54
55
  "npm-check-updates": "^12",
55
- "projen": "^0.52.16",
56
+ "projen": "^0.52.23",
56
57
  "standard-version": "^9",
57
58
  "ts-jest": "^27.1.3",
58
59
  "typescript": "^3.9.10"
@@ -68,7 +69,7 @@
68
69
  "main": "lib/index.js",
69
70
  "license": "Apache-2.0",
70
71
  "homepage": "https://github.com/aws/jsii-release",
71
- "version": "0.2.253",
72
+ "version": "0.2.257",
72
73
  "jest": {
73
74
  "testMatch": [
74
75
  "<rootDir>/src/**/__tests__/**/*.ts?(x)",
@@ -0,0 +1,12 @@
1
+ const fs = require('fs');
2
+ const path = require('path');
3
+ const newName = process.argv[2];
4
+
5
+ if (!newName) {
6
+ throw new Error(`Usage: update-package-name.js <new-name>`);
7
+ }
8
+
9
+ const filepath = 'package.json';
10
+ const pkg = JSON.parse(fs.readFileSync(filepath));
11
+ pkg.name = newName;
12
+ fs.writeFileSync(filepath, JSON.stringify(pkg, undefined, 2));