Skip to content

Commit 96cb9e3

Browse files
authoredApr 23, 2021
chore: add enough information to make package builds cacheable (aws#14341)
Enhance our `package.json`s with enough information to make hermetic, cacheable builds possible. Mostly consists of: * Adding missing `@types/*` packages to `devDepencendies` everywhere. Those dependencies were always required but undeclared. * Add `nozem.ostools` to various packages to indicate the non-hermetic binaries these scripts depend on. * Add `/// !cdk-integ pragma:ignore-assets` to all integ tests that use assets. * Fix some `.gitignores` that were ignoring files that were already committed inside git. * Update `pkglint` to not be reliant on its *own* location inside the monorepo, but instead search upwards for the monorepo root from the package it's checking. To give this a shot yourself, run: ``` $ npx nozem ``` This is a revival of aws#10039, which is now obsolete. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 75c96d7 commit 96cb9e3

File tree

204 files changed

+293
-27
lines changed

Some content is hidden

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

204 files changed

+293
-27
lines changed
 

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,6 @@ yarn-error.log
4242

4343
# Cloud9
4444
.c9
45+
.nzm-*
4546

4647
/.versionrc.json

‎package.json

+13
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,19 @@
4040
"name": "Amazon Web Services",
4141
"url": "https://aws.amazon.com"
4242
},
43+
"nozem": {
44+
"$comment": [
45+
"these files are read by pkglint and cdk-build-tools tests for almost every package.",
46+
"Rather than add them to each package.json individually, do it globally here."
47+
],
48+
"globalNonPackageFiles": [
49+
"package.json",
50+
"release.json",
51+
"scripts/resolve-version.js",
52+
"scripts/resolve-version-lib.js",
53+
"version.v1.json"
54+
]
55+
},
4356
"workspaces": {
4457
"packages": [
4558
"packages/*",

0 commit comments

Comments
 (0)