Skip to content

Commit dc1cf8d

Browse files
committed
fix build things
1 parent 3e0bdb5 commit dc1cf8d

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,14 @@ repos:
4141
types_or: [sh, shell]
4242
pass_filenames: false
4343

44+
- id: lint-cdkConstructs
45+
name: Lint cdkConstructs
46+
entry: npm
47+
args: ["run", "--prefix=packages/cdkConstructs", "lint"]
48+
language: system
49+
files: ^packages\/cdkConstructs
50+
types_or: [ts, tsx, javascript, jsx, json]
51+
pass_filenames: false
52+
4453
fail_fast: true
4554
default_stages: [pre-commit]

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ install-hooks: install-python
1919

2020
lint-node:
2121
npm run lint
22+
npm run lint --workspace packages/cdkConstructs
2223

2324
lint-githubactions:
2425
actionlint
@@ -29,6 +30,7 @@ lint-githubaction-scripts:
2930
lint: lint-node lint-githubactions lint-githubaction-scripts
3031

3132
clean:
33+
rm -rf packages/cdkConstructs/lib
3234

3335
deep-clean: clean
3436
rm -rf .venv
@@ -38,6 +40,7 @@ check-licenses: check-licenses-node check-licenses-python
3840

3941
check-licenses-node:
4042
npm run check-licenses
43+
npm run check-licenses --workspace packages/cdkConstructs
4144

4245
check-licenses-python:
4346
scripts/check_python_licenses.sh

packages/cdkConstructs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"build": "tsc",
77
"clean": "rm -rf lib",
88
"prepublishOnly": "npm run clean && npm run build",
9-
"lint": "eslint --max-warnings 0 --fix --config ./eslint.config.mjs .",
9+
"lint": "eslint --max-warnings 0 --fix --config ../../eslint.config.mjs .",
1010
"test": "POWERTOOLS_DEV=true NODE_OPTIONS=--experimental-vm-modules jest --no-cache --coverage",
1111
"check-licenses": "license-checker --failOn GPL --failOn LGPL"
1212
},

0 commit comments

Comments
 (0)