diff --git a/knip.jsonc b/knip.jsonc index d73a20f..607771c 100644 --- a/knip.jsonc +++ b/knip.jsonc @@ -1,6 +1,7 @@ { "$schema": "https://unpkg.com/knip@latest/schema.json", "entry": ["src/index.ts!"], + "ignoreDependencies": ["babel-plugin-macros"], "ignoreExportsUsedInFile": { "interface": true, "type": true }, "project": ["src/**/*.ts!"] } diff --git a/package.json b/package.json index 4ca2cb5..dc8537b 100644 --- a/package.json +++ b/package.json @@ -63,9 +63,6 @@ "lint-staged": { "*": "prettier --ignore-unknown --write" }, - "dependencies": { - "babel-plugin-macros": "^3.1.0" - }, "devDependencies": { "@babel/cli": "^7.21.5", "@babel/preset-env": "^7.23.3", @@ -110,6 +107,14 @@ "typescript": "^5.2.2", "yaml-eslint-parser": "^1.2.2" }, + "peerDependencies": { + "babel-plugin-macros": "^3.1.0" + }, + "peerDependenciesMeta": { + "babel-plugin-macros": { + "optional": true + } + }, "packageManager": "pnpm@8.7.0", "engines": { "node": ">=18"