Skip to content

Commit 7662595

Browse files
authored
Merge branch 'main' into websocket-accesslog
2 parents 36843c6 + 088af5d commit 7662595

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+49
-5077
lines changed

lerna.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,10 @@
1212
"tools/@aws-cdk/cdk-build-tools",
1313
"tools/@aws-cdk/user-input-gen",
1414
"tools/@aws-cdk/cdk-release",
15-
"tools/@aws-cdk/node-bundle",
1615
"tools/@aws-cdk/pkglint",
1716
"tools/@aws-cdk/pkgtools",
1817
"tools/@aws-cdk/prlint",
1918
"tools/@aws-cdk/spec2cdk",
20-
"tools/@aws-cdk/yarn-cling",
2119
"tools/@aws-cdk/lazify",
2220
"tools/@aws-cdk/lambda-integration-test-updater",
2321
"tools/@aws-cdk/construct-metadata-updater",
@@ -26,4 +24,4 @@
2624
"rejectCycles": true,
2725
"version": "0.0.0",
2826
"$schema": "node_modules/lerna/schemas/lerna-schema.json"
29-
}
27+
}

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,10 @@
7979
"tools/@aws-cdk/cdk-build-tools",
8080
"tools/@aws-cdk/user-input-gen",
8181
"tools/@aws-cdk/cdk-release",
82-
"tools/@aws-cdk/node-bundle",
8382
"tools/@aws-cdk/pkglint",
8483
"tools/@aws-cdk/pkgtools",
8584
"tools/@aws-cdk/prlint",
8685
"tools/@aws-cdk/spec2cdk",
87-
"tools/@aws-cdk/yarn-cling",
8886
"tools/@aws-cdk/lazify",
8987
"tools/@aws-cdk/lambda-integration-test-updater",
9088
"tools/@aws-cdk/construct-metadata-updater",

packages/aws-cdk-lib/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,6 @@
508508
"./core/lib/helpers-internal": "./core/lib/helpers-internal/index.js",
509509
"./core/lib/metadata-resource": "./core/lib/metadata-resource.js",
510510
"./core/lib/prop-injectable": "./core/lib/prop-injectable.js",
511-
"./core/lib/errors": "./core/lib/errors.js",
512511
"./custom-resources": "./custom-resources/index.js",
513512
"./custom-resources/lib/helpers-internal": "./custom-resources/lib/helpers-internal/index.js",
514513
"./cx-api": "./cx-api/index.js",

tools/@aws-cdk/cdk-build-tools/bin/cdk-package.ts

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1+
/* eslint-disable @cdklabs/no-throw-default-error */
12
import * as path from 'path';
2-
import { Bundle } from '@aws-cdk/node-bundle';
3-
import * as yarnCling from '@aws-cdk/yarn-cling';
43
import * as fs from 'fs-extra';
54
import * as yargs from 'yargs';
65
import { shell } from '../lib/os';
@@ -58,14 +57,6 @@ async function main() {
5857
return;
5958
}
6059

61-
// If we need to shrinkwrap this, do so now.
62-
if (options.shrinkWrap) {
63-
await yarnCling.generateShrinkwrap({
64-
packageJsonFile: 'package.json',
65-
outputFile: 'npm-shrinkwrap.json',
66-
});
67-
}
68-
6960
// if this is a jsii package, use jsii-packmak
7061
if (isJsii()) {
7162
const command = [args['jsii-pacmak'],
@@ -77,15 +68,9 @@ async function main() {
7768
const target = path.join(outdir, 'js');
7869
await fs.remove(target);
7970
await fs.mkdirp(target);
80-
if (options.bundle) {
81-
// bundled packages have their own bundler.
82-
const bundle = new Bundle({ packageDir: process.cwd(), ...options.bundle });
83-
bundle.pack({ target });
84-
} else {
85-
// just "npm pack" and deploy to "outdir"
86-
const tarball = (await shell(['npm', 'pack'], { timers })).trim();
87-
await fs.move(tarball, path.join(target, path.basename(tarball)));
88-
}
71+
// just "npm pack" and deploy to "outdir"
72+
const tarball = (await shell(['npm', 'pack'], { timers })).trim();
73+
await fs.move(tarball, path.join(target, path.basename(tarball)));
8974
}
9075

9176
if (options.post) {

tools/@aws-cdk/cdk-build-tools/lib/package-info.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import * as fs from 'fs';
22
import * as path from 'path';
33
import * as util from 'util';
4-
import type { BundleProps } from '@aws-cdk/node-bundle';
54

65
const readdir = util.promisify(fs.readdir);
76
const stat = util.promisify(fs.stat);
@@ -186,11 +185,6 @@ export interface CDKBuildOptions {
186185
}
187186

188187
export interface CDKPackageOptions {
189-
/**
190-
* Should this package be shrinkwrap
191-
*/
192-
shrinkWrap?: boolean;
193-
194188
/**
195189
* Optional commands (formatted as a list of strings, which will be joined together with the && operator) to run before packaging
196190
*/
@@ -201,11 +195,6 @@ export interface CDKPackageOptions {
201195
*/
202196
post?: string[];
203197

204-
/**
205-
* Should this package be bundled. (and if so, how)
206-
*/
207-
bundle?: Omit<BundleProps, 'packageDir'>;
208-
209198
/**
210199
* Also package private packages for local usage.
211200
* @default false

tools/@aws-cdk/cdk-build-tools/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@
4646
"main": "lib/index.js",
4747
"dependencies": {
4848
"@cdklabs/eslint-plugin": "^1.3.2",
49-
"@aws-cdk/yarn-cling": "0.0.0",
50-
"@aws-cdk/node-bundle": "0.0.0",
5149
"@typescript-eslint/eslint-plugin": "^8",
5250
"@stylistic/eslint-plugin": "^2",
5351
"@typescript-eslint/parser": "^8",

tools/@aws-cdk/node-bundle/.eslintrc.json

Lines changed: 0 additions & 145 deletions
This file was deleted.

tools/@aws-cdk/node-bundle/.gitattributes

Lines changed: 0 additions & 10 deletions
This file was deleted.

tools/@aws-cdk/node-bundle/.gitignore

Lines changed: 0 additions & 42 deletions
This file was deleted.

tools/@aws-cdk/node-bundle/.npmignore

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)