Skip to content

Commit 985fa41

Browse files
author
rehanvandermerwe
committed
fix: hooks
1 parent 9858404 commit 985fa41

File tree

10 files changed

+617
-100
lines changed

10 files changed

+617
-100
lines changed

.husky/pre-commit

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
npm run default
55
npm run eslint
66
node_modules/.bin/ts-node ./scripts/index.ts -c validate-src
7-
jsii --silence-warnings=reserved-word
7+
npm run build-jsii
8+
npm run docgen
89
git add -u

.projen/tasks.json

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.projenrc.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,23 @@ const project = new awscdk.AwsCdkConstructLibrary({
3737
},
3838
},
3939
depsUpgradeOptions: {
40-
workflow: false
40+
workflow: false,
4141
},
4242
pullRequestTemplate: false,
4343
githubOptions: {
4444
pullRequestLintOptions: {
4545
semanticTitleOptions: {
4646
types: ['feat', 'fix', 'docs', 'ci', 'chore'],
47-
}
48-
}
49-
}
47+
},
48+
},
49+
},
5050
});
5151

5252
project.jest!.config.transform = {
5353
'\\.ts$': 'esbuild-runner/jest',
5454
};
5555

56+
project.package.setScript('postinstall', 'husky install');
5657
project.package.addEngine('node', '~18.*');
5758
project.package.addEngine('npm', '~9.*');
5859
project.npmignore!.exclude('scripts/**/*');
@@ -81,4 +82,9 @@ project.tasks.addTask('build-src', {
8182
exec: 'ts-node ./scripts/index.ts -c build-src',
8283
});
8384

85+
project.tasks.addTask('build-jsii', {
86+
description: 'Builds JSII only',
87+
exec: 'jsii --silence-warnings=reserved-word',
88+
});
89+
8490
project.synth();

0 commit comments

Comments
 (0)