From c7cd11592f02de466bffd2d7f4f02715ce497dcd Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Sat, 17 Feb 2024 10:35:23 -0500 Subject: [PATCH 1/3] fix: switch babel-plugin-macros to a peer dependency (again) --- package.json | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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" From 43efcf86dd7f58de5b98057b0eccf765cc864215 Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Sat, 17 Feb 2024 11:11:54 -0500 Subject: [PATCH 2/3] chore: allow in knip.jsonc --- knip.jsonc | 1 + 1 file changed, 1 insertion(+) diff --git a/knip.jsonc b/knip.jsonc index d73a20f..12a96b0 100644 --- a/knip.jsonc +++ b/knip.jsonc @@ -2,5 +2,6 @@ "$schema": "https://unpkg.com/knip@latest/schema.json", "entry": ["src/index.ts!"], "ignoreExportsUsedInFile": { "interface": true, "type": true }, + "ignoreDependencies": ["babel-plugin-macros"], "project": ["src/**/*.ts!"] } From 2360b8ebbbf0ea812434a8c2d4e27d317565262e Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Sat, 17 Feb 2024 11:12:18 -0500 Subject: [PATCH 3/3] nit: order --- knip.jsonc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/knip.jsonc b/knip.jsonc index 12a96b0..607771c 100644 --- a/knip.jsonc +++ b/knip.jsonc @@ -1,7 +1,7 @@ { "$schema": "https://unpkg.com/knip@latest/schema.json", "entry": ["src/index.ts!"], - "ignoreExportsUsedInFile": { "interface": true, "type": true }, "ignoreDependencies": ["babel-plugin-macros"], + "ignoreExportsUsedInFile": { "interface": true, "type": true }, "project": ["src/**/*.ts!"] }