From b1380d592f9aa02f4272ad3777706c58306f8672 Mon Sep 17 00:00:00 2001 From: zanminkian Date: Mon, 18 Sep 2023 02:55:28 +0000 Subject: [PATCH] feat(git-validator): add tsconfig presets --- .changeset/nice-kings-buy.md | 5 +++++ packages/git-validator/cjs.json | 3 +++ packages/git-validator/esm.json | 3 +++ packages/git-validator/legacy.json | 3 +++ packages/git-validator/package.json | 3 ++- packages/git-validator/tsconfig.json | 3 +++ 6 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 .changeset/nice-kings-buy.md create mode 100644 packages/git-validator/cjs.json create mode 100644 packages/git-validator/esm.json create mode 100644 packages/git-validator/legacy.json create mode 100644 packages/git-validator/tsconfig.json diff --git a/.changeset/nice-kings-buy.md b/.changeset/nice-kings-buy.md new file mode 100644 index 00000000..9067ba6f --- /dev/null +++ b/.changeset/nice-kings-buy.md @@ -0,0 +1,5 @@ +--- +"git-validator": patch +--- + +feat(git-validator): add tsconfig presets diff --git a/packages/git-validator/cjs.json b/packages/git-validator/cjs.json new file mode 100644 index 00000000..a9eb6288 --- /dev/null +++ b/packages/git-validator/cjs.json @@ -0,0 +1,3 @@ +{ + "extends": "@git-validator/tsconfig/cjs.json" +} diff --git a/packages/git-validator/esm.json b/packages/git-validator/esm.json new file mode 100644 index 00000000..3f0f4469 --- /dev/null +++ b/packages/git-validator/esm.json @@ -0,0 +1,3 @@ +{ + "extends": "@git-validator/tsconfig/esm.json" +} diff --git a/packages/git-validator/legacy.json b/packages/git-validator/legacy.json new file mode 100644 index 00000000..f83ac919 --- /dev/null +++ b/packages/git-validator/legacy.json @@ -0,0 +1,3 @@ +{ + "extends": "@git-validator/tsconfig/legacy.json" +} diff --git a/packages/git-validator/package.json b/packages/git-validator/package.json index e16db5b1..ba33e893 100644 --- a/packages/git-validator/package.json +++ b/packages/git-validator/package.json @@ -20,7 +20,7 @@ "commitlint" ], "scripts": { - "build": "tsc --noEmit -p ../../tsconfig.json" + "build": "tsc --noEmit" }, "bin": { "git-validator": "./src/bin/git-validator.js", @@ -33,6 +33,7 @@ "@commitlint/config-conventional": "^17.7.0", "@git-validator/eslint-config": "workspace:^", "@git-validator/prettier-config": "workspace:^", + "@git-validator/tsconfig": "workspace:^", "commander": "^11.0.0", "cosmiconfig": "^8.3.6", "eslint": "^8.49.0", diff --git a/packages/git-validator/tsconfig.json b/packages/git-validator/tsconfig.json new file mode 100644 index 00000000..e850008b --- /dev/null +++ b/packages/git-validator/tsconfig.json @@ -0,0 +1,3 @@ +{ + "extends": "@git-validator/tsconfig/tsconfig.json" +}