From 5415fb1701876c0db2cbcf6dc96284ebe0a8bddb Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Tue, 31 Dec 2024 13:49:50 -0800 Subject: [PATCH] chore: Fix invalid repository configuration in `package.json` (#366) - Closes #381 https://docs.npmjs.com/cli/v10/configuring-npm/package-json#repository Signed-off-by: Anders Kaseorg --- packages/emotion/package.json | 3 ++- packages/formatjs/package.json | 3 ++- packages/jest/package.json | 3 ++- packages/loadable-components/package.json | 3 ++- packages/noop/package.json | 3 ++- packages/prefresh/package.json | 3 ++- packages/react-remove-properties/package.json | 3 ++- packages/relay/package.json | 3 ++- packages/remove-console/package.json | 3 ++- packages/styled-components/package.json | 3 ++- packages/styled-jsx/package.json | 3 ++- packages/swc-confidential/package.json | 3 ++- packages/swc-magic/package.json | 3 ++- packages/swc-sdk/package.json | 3 ++- packages/transform-imports/package.json | 3 ++- 15 files changed, 30 insertions(+), 15 deletions(-) diff --git a/packages/emotion/package.json b/packages/emotion/package.json index 73bc9a5b3..1e98089bd 100644 --- a/packages/emotion/package.json +++ b/packages/emotion/package.json @@ -9,7 +9,8 @@ "homepage": "https://swc.rs", "repository": { "type": "git", - "url": "+https://github.com/swc-project/plugins.git" + "url": "git+https://github.com/swc-project/plugins.git", + "directory": "packages/emotion" }, "bugs": { "url": "https://github.com/swc-project/plugins/issues" diff --git a/packages/formatjs/package.json b/packages/formatjs/package.json index 790e69e7c..c1c6e588d 100644 --- a/packages/formatjs/package.json +++ b/packages/formatjs/package.json @@ -9,7 +9,8 @@ "homepage": "https://swc.rs", "repository": { "type": "git", - "url": "+https://github.com/swc-project/plugins.git" + "url": "git+https://github.com/swc-project/plugins.git", + "directory": "packages/formatjs" }, "bugs": { "url": "https://github.com/swc-project/plugins/issues" diff --git a/packages/jest/package.json b/packages/jest/package.json index ad04dbe51..6e6d5f55a 100644 --- a/packages/jest/package.json +++ b/packages/jest/package.json @@ -9,7 +9,8 @@ "homepage": "https://swc.rs", "repository": { "type": "git", - "url": "+https://github.com/swc-project/plugins.git" + "url": "git+https://github.com/swc-project/plugins.git", + "directory": "packages/jest" }, "bugs": { "url": "https://github.com/swc-project/plugins/issues" diff --git a/packages/loadable-components/package.json b/packages/loadable-components/package.json index eeb766816..f93ee1315 100644 --- a/packages/loadable-components/package.json +++ b/packages/loadable-components/package.json @@ -9,7 +9,8 @@ "homepage": "https://swc.rs", "repository": { "type": "git", - "url": "+https://github.com/swc-project/plugins.git" + "url": "git+https://github.com/swc-project/plugins.git", + "directory": "packages/loadable-components" }, "bugs": { "url": "https://github.com/swc-project/plugins/issues" diff --git a/packages/noop/package.json b/packages/noop/package.json index 0166629cd..eb0f123c8 100644 --- a/packages/noop/package.json +++ b/packages/noop/package.json @@ -9,7 +9,8 @@ "homepage": "https://swc.rs", "repository": { "type": "git", - "url": "+https://github.com/swc-project/plugins.git" + "url": "git+https://github.com/swc-project/plugins.git", + "directory": "packages/noop" }, "bugs": { "url": "https://github.com/swc-project/plugins/issues" diff --git a/packages/prefresh/package.json b/packages/prefresh/package.json index 3e97d8c9d..360696284 100644 --- a/packages/prefresh/package.json +++ b/packages/prefresh/package.json @@ -9,7 +9,8 @@ "homepage": "https://swc.rs", "repository": { "type": "git", - "url": "+https://github.com/swc-project/plugins.git" + "url": "git+https://github.com/swc-project/plugins.git", + "directory": "packages/prefresh" }, "bugs": { "url": "https://github.com/swc-project/plugins/issues" diff --git a/packages/react-remove-properties/package.json b/packages/react-remove-properties/package.json index 942808deb..3be5dc4d2 100644 --- a/packages/react-remove-properties/package.json +++ b/packages/react-remove-properties/package.json @@ -9,7 +9,8 @@ "homepage": "https://swc.rs", "repository": { "type": "git", - "url": "+https://github.com/swc-project/plugins.git" + "url": "git+https://github.com/swc-project/plugins.git", + "directory": "packages/react-remove-properties" }, "bugs": { "url": "https://github.com/swc-project/plugins/issues" diff --git a/packages/relay/package.json b/packages/relay/package.json index 63e92c21c..ef6372eeb 100644 --- a/packages/relay/package.json +++ b/packages/relay/package.json @@ -10,7 +10,8 @@ "homepage": "https://swc.rs", "repository": { "type": "git", - "url": "+https://github.com/swc-project/plugins.git" + "url": "git+https://github.com/swc-project/plugins.git", + "directory": "packages/relay" }, "bugs": { "url": "https://github.com/swc-project/plugins/issues" diff --git a/packages/remove-console/package.json b/packages/remove-console/package.json index 70a0d4096..f707a2db7 100644 --- a/packages/remove-console/package.json +++ b/packages/remove-console/package.json @@ -9,7 +9,8 @@ "homepage": "https://swc.rs", "repository": { "type": "git", - "url": "+https://github.com/swc-project/plugins.git" + "url": "git+https://github.com/swc-project/plugins.git", + "directory": "packages/remove-console" }, "bugs": { "url": "https://github.com/swc-project/plugins/issues" diff --git a/packages/styled-components/package.json b/packages/styled-components/package.json index 3c935857d..62557b768 100644 --- a/packages/styled-components/package.json +++ b/packages/styled-components/package.json @@ -9,7 +9,8 @@ "homepage": "https://swc.rs", "repository": { "type": "git", - "url": "+https://github.com/swc-project/plugins.git" + "url": "git+https://github.com/swc-project/plugins.git", + "directory": "packages/styled-components" }, "bugs": { "url": "https://github.com/swc-project/plugins/issues" diff --git a/packages/styled-jsx/package.json b/packages/styled-jsx/package.json index e52ba9662..901807718 100644 --- a/packages/styled-jsx/package.json +++ b/packages/styled-jsx/package.json @@ -9,7 +9,8 @@ "homepage": "https://swc.rs", "repository": { "type": "git", - "url": "+https://github.com/swc-project/plugins.git" + "url": "git+https://github.com/swc-project/plugins.git", + "directory": "packages/styled-jsx" }, "bugs": { "url": "https://github.com/swc-project/plugins/issues" diff --git a/packages/swc-confidential/package.json b/packages/swc-confidential/package.json index 172322e01..b9b409c04 100644 --- a/packages/swc-confidential/package.json +++ b/packages/swc-confidential/package.json @@ -9,7 +9,8 @@ "homepage": "https://swc.rs", "repository": { "type": "git", - "url": "+https://github.com/swc-project/plugins.git" + "url": "git+https://github.com/swc-project/plugins.git", + "directory": "packages/swc-confidential" }, "bugs": { "url": "https://github.com/swc-project/plugins/issues" diff --git a/packages/swc-magic/package.json b/packages/swc-magic/package.json index 708c42094..920bb5c60 100644 --- a/packages/swc-magic/package.json +++ b/packages/swc-magic/package.json @@ -9,7 +9,8 @@ "homepage": "https://swc.rs", "repository": { "type": "git", - "url": "+https://github.com/swc-project/plugins.git" + "url": "git+https://github.com/swc-project/plugins.git", + "directory": "packages/swc-magic" }, "bugs": { "url": "https://github.com/swc-project/plugins/issues" diff --git a/packages/swc-sdk/package.json b/packages/swc-sdk/package.json index 08f17945d..5ab21559f 100644 --- a/packages/swc-sdk/package.json +++ b/packages/swc-sdk/package.json @@ -9,7 +9,8 @@ "homepage": "https://swc.rs", "repository": { "type": "git", - "url": "+https://github.com/swc-project/plugins.git" + "url": "git+https://github.com/swc-project/plugins.git", + "directory": "packages/swc-sdk" }, "bugs": { "url": "https://github.com/swc-project/plugins/issues" diff --git a/packages/transform-imports/package.json b/packages/transform-imports/package.json index 0f24f8106..88855ed94 100644 --- a/packages/transform-imports/package.json +++ b/packages/transform-imports/package.json @@ -9,7 +9,8 @@ "homepage": "https://swc.rs", "repository": { "type": "git", - "url": "+https://github.com/swc-project/plugins.git" + "url": "git+https://github.com/swc-project/plugins.git", + "directory": "packages/transform-imports" }, "bugs": { "url": "https://github.com/swc-project/plugins/issues"