-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #116 from bestickley/fix-cross-env-ref
fix: cross-region issue
- Loading branch information
Showing
7 changed files
with
105 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
const { awscdk } = require('projen'); | ||
const { awscdk, JsonPatch } = require('projen'); | ||
const project = new awscdk.AwsCdkConstructLibrary({ | ||
author: 'JetBridge', | ||
authorAddress: '[email protected]', | ||
|
@@ -40,15 +40,19 @@ const project = new awscdk.AwsCdkConstructLibrary({ | |
'@aws-crypto/sha256-js', | ||
] /* Runtime dependencies of this module. */, | ||
devDeps: ['open-next', 'aws-sdk', 'constructs'] /* Build dependencies for this module. */, | ||
jestOptions: { | ||
jestConfig: { | ||
testMatch: ['<rootDir>/src/**/__tests__/**/*.ts?(x)', '<rootDir>/(test|src)/**/*(*.)@(spec|test|assets).ts?(x)'], | ||
}, | ||
}, | ||
|
||
// do not generate sample test files | ||
sampleCode: false, | ||
}); | ||
const packageJson = project.tryFindObjectFile('package.json'); | ||
if (packageJson) { | ||
packageJson.patch( | ||
JsonPatch.replace('/jest/testMatch', [ | ||
'<rootDir>/src/**/__tests__/**/*.ts?(x)', | ||
'<rootDir>/(test|src|assets)/**/*(*.)@(spec|test).ts?(x)', | ||
]) | ||
); | ||
} | ||
// project.eslint.addOverride({ | ||
// rules: {}, | ||
// }); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters