From 4e02597e541abbccdfd313f1725d141b64d865da Mon Sep 17 00:00:00 2001 From: Pelle Wessman Date: Sun, 7 Apr 2024 17:01:09 +0200 Subject: [PATCH] chore: use `ts-ignore-import` to lighten the dependencies Fixes eslint-community/eslint-plugin-n#213 --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index ec98e81c..04890d7c 100644 --- a/package.json +++ b/package.json @@ -51,6 +51,7 @@ "punycode": "^2.3.0", "release-it": "^17.0.0", "rimraf": "^5.0.1", + "ts-ignore-import": "^4.0.0", "type-fest": "^4.9.0", "typescript": "^5.1.3" }, @@ -65,7 +66,7 @@ "lint:js": "eslint .", "new": "node scripts/new-rule", "postversion": "git push && git push --tags", - "prepack": "tsc --emitDeclarationOnly", + "prepack": "tsc --emitDeclarationOnly && ts-ignore-import 'types/**/*.d.ts' --allow=@eslint-community/eslint-utils --allow=semver --allow=get-tsconfig", "prepare": "husky", "preversion": "npm test", "test": "run-p lint:* test:types test:tests",