jsii-release 0.2.254 → 0.2.258

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/README.md CHANGED
@@ -1,22 +1,31 @@
1
- # jsii-release
1
+ # publib
2
2
 
3
- This library includes a set of programs that can be used to release multiple modules into various package managers.
3
+ > Previously known as `jsii-release`
4
+
5
+ A unified toolchain for publishing libraries to popular package managers.
6
+
7
+ Supports:
8
+
9
+ * npm
10
+ * PyPI
11
+ * NuGet
12
+ * Maven
13
+ * Go (GitHub)
4
14
 
5
15
  ## Usage
6
16
 
7
- This is an npm module. You can install it using `yarn add jsii-release` or `npm
8
- install jsii-release`. In most cases it will be installed as a `devDependency`
17
+ This is an npm module. You can install it using `yarn add publib` or
18
+ `npm install publib`. In most cases it will be installed as a `devDependency`
9
19
  in your `package.json`.
10
20
 
11
21
  This tool expects to find a distribution directory (default name is `dist`)
12
- which contains "ready-to-publish" artifacts for each package manager. This
13
- structure is compatible with `jsii-pacmak`:
22
+ which contains "ready-to-publish" artifacts for each package manager.
14
23
 
15
- - `dist/js/*.tgz` - npm tarballs
16
- - `dist/python/*.whl` - Python wheels
17
- - `dist/nuget/*.nupkg` - Nuget packages
18
- - `dist/java/**` - Maven artifacts in local repository structure
19
- - `dist/go/**/go.mod` - Go modules. Each subdirectory should have its own go.mod file.
24
+ * `dist/js/*.tgz` - npm tarballs
25
+ * `dist/python/*.whl` - Python wheels
26
+ * `dist/nuget/*.nupkg` - Nuget packages
27
+ * `dist/java/**` - Maven artifacts in local repository structure
28
+ * `dist/go/**/go.mod` - Go modules. Each subdirectory should have its own go.mod file.
20
29
 
21
30
  Each publisher needs a set of environment variables with credentials as
22
31
  described below (`NPM_TOKEN`, `TWINE_PASSWORD` etc).
@@ -24,10 +33,10 @@ described below (`NPM_TOKEN`, `TWINE_PASSWORD` etc).
24
33
  Then:
25
34
 
26
35
  ```shell
27
- $ jsii-release
36
+ publib
28
37
  ```
29
38
 
30
- You can customize the distribution directory through `jsii-release DIR` (the
39
+ You can customize the distribution directory through `publib DIR` (the
31
40
  default is `dist`)
32
41
 
33
42
  This command will discover all the artifacts based on the above structure and
@@ -35,11 +44,11 @@ will publish them to their respective package manager.
35
44
 
36
45
  You can also execute individual publishers:
37
46
 
38
- * `jsii-release-maven`
39
- * `jsii-release-nuget`
40
- * `jsii-release-npm`
41
- * `jsii-release-pypi`
42
- * `jsii-release-golang`
47
+ * `publib-maven`
48
+ * `publib-nuget`
49
+ * `publib-npm`
50
+ * `publib-pypi`
51
+ * `publib-golang`
43
52
 
44
53
  ## npm
45
54
 
@@ -50,7 +59,7 @@ If AWS CodeArtifact is used as npm registry, a temporary npm authorization token
50
59
  **Usage:**
51
60
 
52
61
  ```shell
53
- npx jsii-release-npm [DIR]
62
+ npx publib-npm [DIR]
54
63
  ```
55
64
 
56
65
  `DIR` is a directory with npm tarballs (*.tgz). Default is `dist/js`.
@@ -75,7 +84,7 @@ Note that if you signed up at SonaType after February 2021, you need to use this
75
84
  **Usage:**
76
85
 
77
86
  ```shell
78
- npx jsii-release-maven [DIR]
87
+ npx publib-maven [DIR]
79
88
  ```
80
89
 
81
90
  `DIR` is a directory with a local maven layout. Default is `dist/java`.
@@ -86,7 +95,7 @@ npx jsii-release-maven [DIR]
86
95
  |------|--------|-----------|
87
96
  |`MAVEN_USERNAME` and `MAVEN_PASSWORD`|Yes|Username and password for maven repository. For Maven Central, you will need to [Create JIRA account](https://issues.sonatype.org/secure/Signup!default.jspa) and then request a [new project](https://issues.sonatype.org/secure/CreateIssue.jspa?issuetype=21&pid=10134). Read the [OSSRH guide](https://central.sonatype.org/pages/ossrh-guide.html) for more details.|
88
97
  |`MAVEN_GPG_PRIVATE_KEY` or `MAVEN_GPG_PRIVATE_KEY_FILE` and `MAVEN_GPG_PRIVATE_KEY_PASSPHRASE`|Yes for Maven Central|GPG private key or file that includes it. This is used to sign your Maven packages. See instructions below|
89
- |`MAVEN_STAGING_PROFILE_ID`|Yes for Maven Central|Maven Central (sonatype) staging profile ID (e.g. 68a05363083174). Staging profile ID can be found **in the URL** of the "Releases" staging profile under "Staging Profiles" in https://oss.sonatype.org or https://s01.oss.sonatype.org if you are logged in (e.g. `https://oss.sonatype.org/#stagingProfiles;68a05363083174`).|
98
+ |`MAVEN_STAGING_PROFILE_ID`|Yes for Maven Central|Maven Central (sonatype) staging profile ID (e.g. 68a05363083174). Staging profile ID can be found **in the URL** of the "Releases" staging profile under "Staging Profiles" in <https://oss.sonatype.org> or <https://s01.oss.sonatype.org> if you are logged in (e.g. `https://oss.sonatype.org/#stagingProfiles;68a05363083174`).|
90
99
  |`MAVEN_ENDPOINT`|Yes for new Maven Central users|URL of Nexus repository. Defaults to `https://oss.sonatype.org`. Use `https://s01.oss.sonatype.org` if you are a new user.|
91
100
  |`MAVEN_SERVER_ID`|No|Used in maven settings for credential lookup (e.g. use `github` when publishing to GitHub). Defaults to `ossrh` for Maven Central.|
92
101
  |`MAVEN_REPOSITORY_URL`|No|Deployment repository when not deploying to Maven Central|
@@ -108,16 +117,16 @@ Your selected passphrase goes to `MAVEN_GPG_PRIVATE_KEY_PASSPHRASE`.
108
117
  Export and publish the public key:
109
118
 
110
119
  ```console
111
- $ gpg -a --export > public.pem
120
+ gpg -a --export > public.pem
112
121
  ```
113
122
 
114
- Go to https://keyserver.ubuntu.com/ and submit the public key.
123
+ Go to <https://keyserver.ubuntu.com/> and submit the public key.
115
124
  You can use `cat public.pem` and copy/paste it into the "Submit Key" dialog.
116
125
 
117
126
  Export the private key:
118
127
 
119
128
  ```console
120
- $ gpg -a --export-secret-keys <fingerprint> > private.pem
129
+ gpg -a --export-secret-keys <fingerprint> > private.pem
121
130
  ```
122
131
 
123
132
  Now, either set `MAVEN_GPG_PRIVATE_KEY_FILE` to point to `private.pem` or
@@ -125,15 +134,16 @@ export the private key to a single line where newlines are encoded as `\n`
125
134
  and then assign it to `MAVEN_GPG_PRIVATE_KEY`:
126
135
 
127
136
  ```console
128
- $ echo $(cat -e private.pem) | sed 's/\$ /\\n/g' | sed 's/\$$//'
137
+ echo $(cat -e private.pem) | sed 's/\$ /\\n/g' | sed 's/\$$//'
129
138
  ```
130
139
 
131
140
  **Publish to GitHub Packages**
132
141
 
133
142
  An example GitHub Actions publish step:
143
+
134
144
  ```yaml
135
145
  - name: Publish package
136
- run: npx -p jsii-release jsii-release-maven
146
+ run: npx -p publib publib-maven
137
147
  env:
138
148
  MAVEN_SERVER_ID: github
139
149
  MAVEN_USERNAME: ${{ github.actor }}
@@ -148,7 +158,7 @@ Publishes all `*.nupkg` to the [NuGet Gallery](https://www.nuget.org/).
148
158
  **Usage:**
149
159
 
150
160
  ```shell
151
- npx jsii-release-nuget [DIR]
161
+ npx publib-nuget [DIR]
152
162
  ```
153
163
 
154
164
  `DIR` is a directory with Nuget packages (*.nupkg). Default is `dist/dotnet`.
@@ -173,7 +183,7 @@ Publishes all `*.whl` files to [PyPI](https://pypi.org/).
173
183
  **Usage:**
174
184
 
175
185
  ```shell
176
- npx jsii-release-pypi [DIR]
186
+ npx publib-pypi [DIR]
177
187
  ```
178
188
 
179
189
  `DIR` is a directory with Python wheels (*.whl). Default is `dist/python`.
@@ -186,7 +196,6 @@ npx jsii-release-pypi [DIR]
186
196
  |`TWINE_PASSWORD`|Required|PyPI password|
187
197
  |`TWINE_REPOSITORY_URL`|Optional|The registry URL (defaults to Twine default)|
188
198
 
189
-
190
199
  ## Golang
191
200
 
192
201
  Pushes a directory of golang modules to a GitHub repository.
@@ -194,7 +203,7 @@ Pushes a directory of golang modules to a GitHub repository.
194
203
  **Usage:**
195
204
 
196
205
  ```shell
197
- npx jsii-release-golang [DIR]
206
+ npx publib-golang [DIR]
198
207
  ```
199
208
 
200
209
  `DIR` is a directory where the golang modules are located (default is `dist/go`). Modules can be located either in subdirectories, (e.g 'dist/go/my-module/go.mod')
@@ -202,9 +211,9 @@ or in the root (e.g 'dist/go/go.mod').
202
211
 
203
212
  If you specify the `VERSION` env variable, all modules will recieve that version, otherwise a `version` file is expected to exist in each module directory.
204
213
  Repository tags will be in the following format:
205
- - For a module located at the root: `v${module_version}` (e.g `v1.20.1`)
206
- - For modules located inside subdirectories: `<subdir-name>/v${module_version}` (e.g `my-module/v3.3.1`)
207
214
 
215
+ * For a module located at the root: `v${module_version}` (e.g `v1.20.1`)
216
+ * For modules located inside subdirectories: `<subdir-name>/v${module_version}` (e.g `my-module/v3.3.1`)
208
217
 
209
218
  **Options (environment variables):**
210
219
 
@@ -219,14 +228,13 @@ the module name.|
219
228
  |`GIT_COMMIT_MESSAGE`|Optional|The commit message. Defaults to 'chore(release): $VERSION'.|
220
229
  |`DRYRUN`|Set to "true" for a dry run.|
221
230
 
222
-
223
231
  ## Roadmap
224
232
 
225
- - [X] GitHub Support: Maven
226
- - [X] GitHub Support: NuGet
227
- - [ ] CodeArtifact Support: Maven
228
- - [ ] CodeArtifact Support: NuGet
229
- - [ ] CodeArtifact Support: Python
233
+ * [X] GitHub Support: Maven
234
+ * [X] GitHub Support: NuGet
235
+ * [ ] CodeArtifact Support: Maven
236
+ * [ ] CodeArtifact Support: NuGet
237
+ * [ ] CodeArtifact Support: Python
230
238
 
231
239
  ## License
232
240
 
@@ -0,0 +1,19 @@
1
+ #!/bin/sh
2
+ scriptdir=$(cd $(dirname $0) && pwd)
3
+ jsii_command=$(basename $0)
4
+
5
+ publib_command="$(echo ${jsii_command} | sed -e "s/jsii-release/publib/")"
6
+
7
+ echo "-----------------------------------------------------------------"
8
+ echo "WARNING: 'jsii-release' is now released under the name 'publib'"
9
+ echo "Please install it and execute '${publib_command}' instead"
10
+ echo "-----------------------------------------------------------------"
11
+
12
+ actual="${scriptdir}/${publib_command}"
13
+
14
+ if [ ! -e "${actual}" ]; then
15
+ echo "${publib_command} not found"
16
+ exit 1
17
+ fi
18
+
19
+ exec "${actual}"
@@ -1,5 +1,5 @@
1
1
  #!/bin/bash
2
- # usage: jsii-release [DIR]
2
+ # usage: publib [DIR]
3
3
  #
4
4
  # DIR is the root directory of the distribution where we will look for `js`,
5
5
  # `java`, `python` and `dotnet` subdirectories (default is "dist")
@@ -21,7 +21,7 @@ function release() {
21
21
  local dist_subdir="${dist}/${subdir}"
22
22
  if [ -d "${dist_subdir}" ]; then
23
23
  echo "found ${type} artifacts under ${dist_subdir}"
24
- ${scriptdir}/jsii-release-${type} "${dist_subdir}"
24
+ ${scriptdir}/publib-${type} "${dist_subdir}"
25
25
  else
26
26
  echo "${dist_subdir}: no ${type} artifacts"
27
27
  fi
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ require('../lib/bin/publib-golang.js');
@@ -5,7 +5,7 @@ set -eu # we don't want "pipefail" to implement idempotency
5
5
  #
6
6
  # Publishes all maven modules in the specified directory to maven.
7
7
  #
8
- # Usage: ./jsii-release-maven [DIR]
8
+ # Usage: ./publib-maven [DIR]
9
9
  #
10
10
  # DIR is the root directory of a local maven repository (default `dist/java`).
11
11
  #
@@ -170,7 +170,7 @@ sign_artifacts() {
170
170
  # way to do so via -Dgpg.gpgArguments or the settings file, so here we are.
171
171
  local gpg_exec="gpg"
172
172
  if [[ "$(uname)" == "Darwin" ]]; then
173
- gpg_exec="/tmp/jsii-release-gpg.sh"
173
+ gpg_exec="/tmp/publib-gpg.sh"
174
174
  echo "#!/bin/bash" > $gpg_exec
175
175
  echo "exec gpg --pinentry-mode loopback \"\$@\"" >> $gpg_exec
176
176
  chmod +x $gpg_exec
@@ -5,7 +5,7 @@ set -eu
5
5
  #
6
6
  # Publishes all *.tgz files to npm
7
7
  #
8
- # Usage: ./jsii-release-npm [DIR]
8
+ # Usage: ./publib-npm [DIR]
9
9
  #
10
10
  # DIR: directory where npm tarballs are found (default is `dist/js`).
11
11
  #
@@ -27,7 +27,7 @@ if ! [ -z "${NPM_REGISTRY:-}" ] && [[ $NPM_REGISTRY =~ .codeartifact.*.amazonaws
27
27
  codeartifact_region="$(echo $NPM_REGISTRY | cut -d. -f4)"
28
28
  export AWS_DEFAULT_REGION="$(echo $codeartifact_region)"
29
29
  if [ -n "${AWS_ROLE_TO_ASSUME:-}" ]; then
30
- credentials=`aws sts assume-role --role-session-name "jsii-release-code-artifact" --role-arn ${AWS_ROLE_TO_ASSUME} --output text | sed -n '2 p'`
30
+ credentials=`aws sts assume-role --role-session-name "publib-code-artifact" --role-arn ${AWS_ROLE_TO_ASSUME} --output text | sed -n '2 p'`
31
31
  export AWS_ACCESS_KEY_ID="$(echo $credentials | cut -d' ' -f2)"
32
32
  export AWS_SECRET_ACCESS_KEY="$(echo $credentials | cut -d' ' -f4)"
33
33
  export AWS_SESSION_TOKEN="$(echo $credentials | cut -d' ' -f5)"
@@ -6,7 +6,7 @@ set -eu # we don't want "pipefail" to implement idempotency
6
6
  #
7
7
  # Publishes all *.nupkg to NuGet
8
8
  #
9
- # Usage: ./jsii-release-nuget [DIR]
9
+ # Usage: ./publib-nuget [DIR]
10
10
  #
11
11
  # DIR is a directory with *.nupkg files (default is 'dist/dotnet')
12
12
  #
@@ -5,7 +5,7 @@ set -euo pipefail
5
5
  #
6
6
  # Publishes all *.whl files to PyPI
7
7
  #
8
- # Usage: ./jsii-release-pypi [DIR]
8
+ # Usage: ./publib-pypi [DIR]
9
9
  #
10
10
  # DIR is where *.whl files are looked up (default is "dist/python")
11
11
  #
@@ -31,4 +31,4 @@ const releaser = new go.GoReleaser({
31
31
  version: process.env.VERSION,
32
32
  });
33
33
  releaser.release();
34
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoianNpaS1yZWxlYXNlLWdvbGFuZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9iaW4vanNpaS1yZWxlYXNlLWdvbGFuZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUNBLGtEQUFvQztBQUVwQyxNQUFNLFFBQVEsR0FBRyxJQUFJLEVBQUUsQ0FBQyxVQUFVLENBQUM7SUFDakMsR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nYuR0lUX1VTRVJfRU1BSUwsXG4gIHVzZXJuYW1lOiBwcm9jZXNzLmVudi5HSVRfVVNFUl9OQU1FLFxuICB2ZXJzaW9uOiBwcm9jZXNzLmVudi5WRVJTSU9OLFxufSk7XG5cbnJlbGVhc2VyLnJlbGVhc2UoKTsiXX0=
package/package.json CHANGED
@@ -3,15 +3,22 @@
3
3
  "description": "Release jsii modules to multiple package managers",
4
4
  "repository": {
5
5
  "type": "git",
6
- "url": "https://github.com/aws/jsii-release.git"
6
+ "url": "https://github.com/aws/publib.git"
7
7
  },
8
8
  "bin": {
9
- "jsii-release": "bin/jsii-release",
10
- "jsii-release-golang": "bin/jsii-release-golang",
11
- "jsii-release-maven": "bin/jsii-release-maven",
12
- "jsii-release-npm": "bin/jsii-release-npm",
13
- "jsii-release-nuget": "bin/jsii-release-nuget",
14
- "jsii-release-pypi": "bin/jsii-release-pypi"
9
+ "jsii-release": "./bin/jsii-release-shim",
10
+ "jsii-release-golang": "./bin/jsii-release-shim",
11
+ "jsii-release-maven": "./bin/jsii-release-shim",
12
+ "jsii-release-npm": "./bin/jsii-release-shim",
13
+ "jsii-release-nuget": "./bin/jsii-release-shim",
14
+ "jsii-release-pypi": "./bin/jsii-release-shim",
15
+ "jsii-release-shim": "bin/jsii-release-shim",
16
+ "publib": "bin/publib",
17
+ "publib-golang": "bin/publib-golang",
18
+ "publib-maven": "bin/publib-maven",
19
+ "publib-npm": "bin/publib-npm",
20
+ "publib-nuget": "bin/publib-nuget",
21
+ "publib-pypi": "bin/publib-pypi"
15
22
  },
16
23
  "scripts": {
17
24
  "build": "npx projen build",
@@ -22,6 +29,7 @@
22
29
  "eject": "npx projen eject",
23
30
  "eslint": "npx projen eslint",
24
31
  "package": "npx projen package",
32
+ "package-legacy": "npx projen package-legacy",
25
33
  "post-compile": "npx projen post-compile",
26
34
  "post-upgrade": "npx projen post-upgrade",
27
35
  "pre-compile": "npx projen pre-compile",
@@ -31,6 +39,7 @@
31
39
  "test:watch": "npx projen test:watch",
32
40
  "unbump": "npx projen unbump",
33
41
  "upgrade": "npx projen upgrade",
42
+ "upgrade-projen": "npx projen upgrade-projen",
34
43
  "watch": "npx projen watch",
35
44
  "projen": "npx projen"
36
45
  },
@@ -48,11 +57,11 @@
48
57
  "eslint-import-resolver-node": "^0.3.6",
49
58
  "eslint-import-resolver-typescript": "^2.5.0",
50
59
  "eslint-plugin-import": "^2.25.4",
51
- "jest": "^27.5.0",
60
+ "jest": "^27.5.1",
52
61
  "jest-junit": "^13",
53
62
  "json-schema": "^0.4.0",
54
63
  "npm-check-updates": "^12",
55
- "projen": "^0.52.18",
64
+ "projen": "^0.52.23",
56
65
  "standard-version": "^9",
57
66
  "ts-jest": "^27.1.3",
58
67
  "typescript": "^3.9.10"
@@ -62,13 +71,10 @@
62
71
  "fs-extra": "^8.0.0",
63
72
  "shlex": "^2.1.0"
64
73
  },
65
- "keywords": [
66
- "jsii"
67
- ],
68
74
  "main": "lib/index.js",
69
75
  "license": "Apache-2.0",
70
- "homepage": "https://github.com/aws/jsii-release",
71
- "version": "0.2.254",
76
+ "homepage": "https://github.com/aws/publib",
77
+ "version": "0.2.258",
72
78
  "jest": {
73
79
  "testMatch": [
74
80
  "<rootDir>/src/**/__tests__/**/*.ts?(x)",
@@ -0,0 +1,120 @@
1
+ {
2
+ "name": "publib",
3
+ "description": "Release jsii modules to multiple package managers",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "https://github.com/aws/publib.git"
7
+ },
8
+ "bin": {
9
+ "jsii-release": "./bin/jsii-release-shim",
10
+ "jsii-release-golang": "./bin/jsii-release-shim",
11
+ "jsii-release-maven": "./bin/jsii-release-shim",
12
+ "jsii-release-npm": "./bin/jsii-release-shim",
13
+ "jsii-release-nuget": "./bin/jsii-release-shim",
14
+ "jsii-release-pypi": "./bin/jsii-release-shim",
15
+ "jsii-release-shim": "bin/jsii-release-shim",
16
+ "publib": "bin/publib",
17
+ "publib-golang": "bin/publib-golang",
18
+ "publib-maven": "bin/publib-maven",
19
+ "publib-npm": "bin/publib-npm",
20
+ "publib-nuget": "bin/publib-nuget",
21
+ "publib-pypi": "bin/publib-pypi"
22
+ },
23
+ "scripts": {
24
+ "build": "npx projen build",
25
+ "bump": "npx projen bump",
26
+ "clobber": "npx projen clobber",
27
+ "compile": "npx projen compile",
28
+ "default": "npx projen default",
29
+ "eject": "npx projen eject",
30
+ "eslint": "npx projen eslint",
31
+ "package": "npx projen package",
32
+ "package-legacy": "npx projen package-legacy",
33
+ "post-compile": "npx projen post-compile",
34
+ "post-upgrade": "npx projen post-upgrade",
35
+ "pre-compile": "npx projen pre-compile",
36
+ "release": "npx projen release",
37
+ "test": "npx projen test",
38
+ "test:update": "npx projen test:update",
39
+ "test:watch": "npx projen test:watch",
40
+ "unbump": "npx projen unbump",
41
+ "upgrade": "npx projen upgrade",
42
+ "upgrade-projen": "npx projen upgrade-projen",
43
+ "watch": "npx projen watch",
44
+ "projen": "npx projen"
45
+ },
46
+ "author": {
47
+ "name": "Amazon Web Services",
48
+ "url": "https://aws.amazon.com",
49
+ "organization": true
50
+ },
51
+ "devDependencies": {
52
+ "@types/jest": "^27.4.0",
53
+ "@types/node": "^12",
54
+ "@typescript-eslint/eslint-plugin": "^5",
55
+ "@typescript-eslint/parser": "^5",
56
+ "eslint": "^8",
57
+ "eslint-import-resolver-node": "^0.3.6",
58
+ "eslint-import-resolver-typescript": "^2.5.0",
59
+ "eslint-plugin-import": "^2.25.4",
60
+ "jest": "^27.5.1",
61
+ "jest-junit": "^13",
62
+ "json-schema": "^0.4.0",
63
+ "npm-check-updates": "^12",
64
+ "projen": "^0.52.23",
65
+ "standard-version": "^9",
66
+ "ts-jest": "^27.1.3",
67
+ "typescript": "^3.9.10"
68
+ },
69
+ "dependencies": {
70
+ "@types/fs-extra": "^8.0.0",
71
+ "fs-extra": "^8.0.0",
72
+ "shlex": "^2.1.0"
73
+ },
74
+ "main": "lib/index.js",
75
+ "license": "Apache-2.0",
76
+ "homepage": "https://github.com/aws/publib",
77
+ "version": "0.2.258",
78
+ "jest": {
79
+ "testMatch": [
80
+ "<rootDir>/src/**/__tests__/**/*.ts?(x)",
81
+ "<rootDir>/(test|src)/**/?(*.)+(spec|test).ts?(x)"
82
+ ],
83
+ "clearMocks": true,
84
+ "collectCoverage": true,
85
+ "coverageReporters": [
86
+ "json",
87
+ "lcov",
88
+ "clover",
89
+ "cobertura",
90
+ "text"
91
+ ],
92
+ "coverageDirectory": "coverage",
93
+ "coveragePathIgnorePatterns": [
94
+ "/node_modules/"
95
+ ],
96
+ "testPathIgnorePatterns": [
97
+ "/node_modules/"
98
+ ],
99
+ "watchPathIgnorePatterns": [
100
+ "/node_modules/"
101
+ ],
102
+ "reporters": [
103
+ "default",
104
+ [
105
+ "jest-junit",
106
+ {
107
+ "outputDirectory": "test-reports"
108
+ }
109
+ ]
110
+ ],
111
+ "preset": "ts-jest",
112
+ "globals": {
113
+ "ts-jest": {
114
+ "tsconfig": "tsconfig.dev.json"
115
+ }
116
+ }
117
+ },
118
+ "types": "lib/index.d.ts",
119
+ "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"."
120
+ }
@@ -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));
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- require('../lib/bin/jsii-release-golang.js');