jsii-release 0.2.771 → 0.2.772

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
@@ -53,30 +53,30 @@
53
53
  "organization": true
54
54
  },
55
55
  "devDependencies": {
56
- "@aws-sdk/client-sts": "^3.485.0",
56
+ "@aws-sdk/client-sts": "^3.489.0",
57
57
  "@types/glob": "^8.1.0",
58
58
  "@types/jest": "^27.5.2",
59
59
  "@types/node": "^16",
60
60
  "@types/yargs": "^17",
61
61
  "@typescript-eslint/eslint-plugin": "^6",
62
62
  "@typescript-eslint/parser": "^6",
63
- "cdklabs-projen-project-types": "^0.1.183",
63
+ "cdklabs-projen-project-types": "^0.1.184",
64
64
  "constructs": "^10.0.0",
65
65
  "eslint": "^8",
66
66
  "eslint-import-resolver-typescript": "^2.7.1",
67
67
  "eslint-plugin-import": "^2.29.1",
68
68
  "jest": "^27.5.1",
69
69
  "jest-junit": "^15",
70
- "projen": "^0.77.6",
70
+ "projen": "^0.79.0",
71
71
  "standard-version": "^9",
72
72
  "ts-jest": "^27.1.5",
73
73
  "ts-node": "^10.9.2",
74
74
  "typescript": "~4.9.5"
75
75
  },
76
76
  "dependencies": {
77
- "@aws-sdk/client-codeartifact": "^3.485.0",
78
- "@aws-sdk/credential-providers": "^3.485.0",
79
- "@aws-sdk/types": "^3.485.0",
77
+ "@aws-sdk/client-codeartifact": "^3.489.0",
78
+ "@aws-sdk/credential-providers": "^3.489.0",
79
+ "@aws-sdk/types": "^3.489.0",
80
80
  "@types/fs-extra": "^8.0.0",
81
81
  "fs-extra": "^8.0.0",
82
82
  "glob": "10.0.0",
@@ -87,7 +87,7 @@
87
87
  "main": "lib/index.js",
88
88
  "license": "Apache-2.0",
89
89
  "homepage": "https://github.com/cdklabs/publib",
90
- "version": "0.2.771",
90
+ "version": "0.2.772",
91
91
  "jest": {
92
92
  "testMatch": [
93
93
  "<rootDir>/src/**/__tests__/**/*.ts?(x)",
@@ -121,11 +121,13 @@
121
121
  }
122
122
  ]
123
123
  ],
124
- "preset": "ts-jest",
125
- "globals": {
126
- "ts-jest": {
127
- "tsconfig": "tsconfig.dev.json"
128
- }
124
+ "transform": {
125
+ "^.+\\.[t]sx?$": [
126
+ "ts-jest",
127
+ {
128
+ "tsconfig": "tsconfig.dev.json"
129
+ }
130
+ ]
129
131
  }
130
132
  },
131
133
  "types": "lib/index.d.ts",
package/package.json.bak CHANGED
@@ -53,30 +53,30 @@
53
53
  "organization": true
54
54
  },
55
55
  "devDependencies": {
56
- "@aws-sdk/client-sts": "^3.485.0",
56
+ "@aws-sdk/client-sts": "^3.489.0",
57
57
  "@types/glob": "^8.1.0",
58
58
  "@types/jest": "^27.5.2",
59
59
  "@types/node": "^16",
60
60
  "@types/yargs": "^17",
61
61
  "@typescript-eslint/eslint-plugin": "^6",
62
62
  "@typescript-eslint/parser": "^6",
63
- "cdklabs-projen-project-types": "^0.1.183",
63
+ "cdklabs-projen-project-types": "^0.1.184",
64
64
  "constructs": "^10.0.0",
65
65
  "eslint": "^8",
66
66
  "eslint-import-resolver-typescript": "^2.7.1",
67
67
  "eslint-plugin-import": "^2.29.1",
68
68
  "jest": "^27.5.1",
69
69
  "jest-junit": "^15",
70
- "projen": "^0.77.6",
70
+ "projen": "^0.79.0",
71
71
  "standard-version": "^9",
72
72
  "ts-jest": "^27.1.5",
73
73
  "ts-node": "^10.9.2",
74
74
  "typescript": "~4.9.5"
75
75
  },
76
76
  "dependencies": {
77
- "@aws-sdk/client-codeartifact": "^3.485.0",
78
- "@aws-sdk/credential-providers": "^3.485.0",
79
- "@aws-sdk/types": "^3.485.0",
77
+ "@aws-sdk/client-codeartifact": "^3.489.0",
78
+ "@aws-sdk/credential-providers": "^3.489.0",
79
+ "@aws-sdk/types": "^3.489.0",
80
80
  "@types/fs-extra": "^8.0.0",
81
81
  "fs-extra": "^8.0.0",
82
82
  "glob": "10.0.0",
@@ -87,7 +87,7 @@
87
87
  "main": "lib/index.js",
88
88
  "license": "Apache-2.0",
89
89
  "homepage": "https://github.com/cdklabs/publib",
90
- "version": "0.2.771",
90
+ "version": "0.2.772",
91
91
  "jest": {
92
92
  "testMatch": [
93
93
  "<rootDir>/src/**/__tests__/**/*.ts?(x)",
@@ -121,11 +121,13 @@
121
121
  }
122
122
  ]
123
123
  ],
124
- "preset": "ts-jest",
125
- "globals": {
126
- "ts-jest": {
127
- "tsconfig": "tsconfig.dev.json"
128
- }
124
+ "transform": {
125
+ "^.+\\.[t]sx?$": [
126
+ "ts-jest",
127
+ {
128
+ "tsconfig": "tsconfig.dev.json"
129
+ }
130
+ ]
129
131
  }
130
132
  },
131
133
  "types": "lib/index.d.ts",
package/.gitattributes DELETED
@@ -1,26 +0,0 @@
1
- # ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".
2
-
3
- *.snap linguist-generated
4
- /.eslintrc.json linguist-generated
5
- /.gitattributes linguist-generated
6
- /.github/pull_request_template.md linguist-generated
7
- /.github/workflows/auto-approve.yml linguist-generated
8
- /.github/workflows/auto-merge.yml linguist-generated
9
- /.github/workflows/build.yml linguist-generated
10
- /.github/workflows/integ.yml linguist-generated
11
- /.github/workflows/pull-request-lint.yml linguist-generated
12
- /.github/workflows/release.yml linguist-generated
13
- /.github/workflows/upgrade-cdklabs-projen-project-types-main.yml linguist-generated
14
- /.github/workflows/upgrade-dev-deps-main.yml linguist-generated
15
- /.github/workflows/upgrade-main.yml linguist-generated
16
- /.gitignore linguist-generated
17
- /.npmignore linguist-generated
18
- /.projen/** linguist-generated
19
- /.projen/deps.json linguist-generated
20
- /.projen/files.json linguist-generated
21
- /.projen/tasks.json linguist-generated
22
- /LICENSE linguist-generated
23
- /package.json linguist-generated
24
- /tsconfig.dev.json linguist-generated
25
- /tsconfig.json linguist-generated
26
- /yarn.lock linguist-generated
package/.projenrc.ts DELETED
@@ -1,162 +0,0 @@
1
- import { readdirSync } from 'fs';
2
- import * as cdklabs from 'cdklabs-projen-project-types';
3
- import { github } from 'projen';
4
-
5
- const project = new cdklabs.CdklabsTypeScriptProject({
6
- private: false,
7
- projenrcTs: true,
8
- defaultReleaseBranch: 'main',
9
- name: 'publib',
10
- description: 'Release jsii modules to multiple package managers',
11
- releaseToNpm: true,
12
- repository: 'https://github.com/cdklabs/publib.git',
13
- authorUrl: 'https://aws.amazon.com',
14
- homepage: 'https://github.com/cdklabs/publib',
15
- devDeps: [
16
- 'ts-node',
17
- '@aws-sdk/client-sts',
18
- '@types/glob',
19
- '@types/node@^14.17.0',
20
- '@types/yargs@^17',
21
- 'cdklabs-projen-project-types',
22
- ],
23
- autoApproveUpgrades: true,
24
- deps: [
25
- '@aws-sdk/client-codeartifact',
26
- '@aws-sdk/credential-providers',
27
- '@aws-sdk/types',
28
- 'glob@10.0.0', // Can't use a newer version of glob, it adds a CLI that depends on 'jackspeak' which has crazy dependencies
29
- 'yargs@^17',
30
- 'p-queue@6', // Last non-ESM version
31
- ],
32
- workflowNodeVersion: '16.x',
33
- minNodeVersion: '16.0.0',
34
- enablePRAutoMerge: true,
35
- setNodeEngineVersion: false,
36
- });
37
-
38
- // we can't use 9.x because it doesn't work with node 10.
39
- const fsExtraVersion = '^8.0.0';
40
-
41
- project.addDeps('shlex', `fs-extra@${fsExtraVersion}`, `@types/fs-extra@${fsExtraVersion}`);
42
-
43
- const legacy = project.addTask('package-legacy');
44
- legacy.exec('cp package.json package.json.bak');
45
- legacy.exec('node ./scripts/update-package-name.js jsii-release');
46
- legacy.exec('npm pack');
47
- legacy.exec('mv ./jsii-release*.tgz dist/js');
48
- legacy.exec('cp package.json.bak package.json');
49
- legacy.exec('rm package.json.bak');
50
-
51
- project.packageTask.spawn(legacy);
52
-
53
- // map all "jsii-release-*" to "jsii-release-shim" as executables
54
- for (const f of readdirSync('./bin').filter(file => file.startsWith('publib'))) {
55
- const shim = ['jsii-release', f.split('-')[1]].filter(x => x).join('-');
56
- project.addBins({ [shim]: './bin/jsii-release-shim' });
57
- }
58
-
59
- const integ = project.addTask('integ');
60
- // This replaces the 'testMatch' in package.json with a different glob
61
- integ.exec('jest --testMatch "<rootDir>/test/**/*.integ.ts"');
62
-
63
- //////////////////////////////////////////////////////////////////////
64
-
65
- const test = github.GitHub.of(project)?.addWorkflow('integ');
66
- test?.on({
67
- pullRequestTarget: {
68
- types: [
69
- 'labeled',
70
- 'opened',
71
- 'synchronize',
72
- 'reopened',
73
- 'ready_for_review',
74
- ],
75
- },
76
- mergeGroup: {},
77
- });
78
-
79
- // Select `IntegTestCredentials` or `IntegTestCredentialsRequireApproval` depending on whether this is
80
- // a PR from a fork or not (assumption: writers can be trusted, forkers cannot).
81
- //
82
- // Because we have an 'if/else' condition that is quite annoying to encode with outputs, have a mutable variable by
83
- // means of a file on disk, export it as an output afterwards.
84
- test?.addJob('determine_env', {
85
- permissions: {
86
- contents: github.workflows.JobPermission.READ,
87
- },
88
- runsOn: ['ubuntu-latest'],
89
- steps: [
90
- {
91
- name: 'Print event output for debugging in case the condition is incorrect',
92
- run: 'cat $GITHUB_EVENT_PATH',
93
- },
94
- {
95
- name: 'Start requiring approval',
96
- run: 'echo IntegTestCredentialsRequireApproval > .envname',
97
- },
98
- {
99
- name: 'Run automatically if in a mergeGroup or PR created from this repo',
100
- // In a mergeGroup event, or a non-forked request, run without confirmation
101
- if: "${{ github.event_name == 'merge_group' || github.event.pull_request.head.repo.full_name == github.repository }}",
102
- run: 'echo IntegTestCredentials > .envname',
103
- },
104
- {
105
- id: 'output',
106
- name: 'Output the value',
107
- run: 'echo "env_name=$(cat .envname)" >> "$GITHUB_OUTPUT"',
108
- },
109
- ],
110
- outputs: {
111
- env_name: { stepId: 'output', outputName: 'env_name' },
112
- },
113
- });
114
-
115
- // Job name matches a branch protection rule check configured elsewhere
116
- test?.addJob('integ', {
117
- permissions: {
118
- contents: github.workflows.JobPermission.READ,
119
- idToken: github.workflows.JobPermission.WRITE,
120
- },
121
- runsOn: ['ubuntu-latest'],
122
- needs: ['determine_env'],
123
- environment: '${{needs.determine_env.outputs.env_name}}',
124
- steps: [
125
- {
126
- name: 'Federate into AWS',
127
- uses: 'aws-actions/configure-aws-credentials@v2',
128
- with: {
129
- 'aws-region': 'us-east-1',
130
- 'role-to-assume': '${{ secrets.AWS_ROLE_TO_ASSUME }}',
131
- 'role-session-name': 'publib-integ-test',
132
- },
133
- },
134
- {
135
- name: 'Checkout',
136
- uses: 'actions/checkout@v3',
137
- with: {
138
- ref: '${{ github.event.pull_request.head.ref }}',
139
- // Need this because we are running on pull_request_target
140
- repository: '${{ github.event.pull_request.head.repo.full_name }}',
141
- },
142
- },
143
- {
144
- name: 'Setup Node.js',
145
- uses: 'actions/setup-node@v3',
146
- with: {
147
- 'node-version': '16.16.0',
148
- 'cache': 'yarn',
149
- },
150
- },
151
- {
152
- name: 'Yarn install',
153
- run: 'yarn install --frozen-lockfile',
154
- },
155
- {
156
- name: 'Run integration tests',
157
- run: 'yarn integ',
158
- },
159
- ],
160
- });
161
-
162
- project.synth();