From b6afb8b427b5ba95b71afda9a54e6bebc8b90f1c Mon Sep 17 00:00:00 2001 From: dpiercey Date: Fri, 13 Dec 2024 13:53:22 -0700 Subject: [PATCH] fix: package json repo config --- .changeset/popular-planes-bow.md | 8 ++++++++ packages/compiler/package.json | 3 ++- packages/runtime-class/package.json | 3 ++- packages/runtime-tags/package.json | 3 ++- packages/translator-interop/package.json | 3 ++- scripts/publish-alias.ts | 2 +- 6 files changed, 17 insertions(+), 5 deletions(-) create mode 100644 .changeset/popular-planes-bow.md diff --git a/.changeset/popular-planes-bow.md b/.changeset/popular-planes-bow.md new file mode 100644 index 0000000000..0ffb0a8fda --- /dev/null +++ b/.changeset/popular-planes-bow.md @@ -0,0 +1,8 @@ +--- +"@marko/translator-interop-class-tags": patch +"marko": patch +"@marko/runtime-tags": patch +"@marko/compiler": patch +--- + +Fix package json repository config. diff --git a/packages/compiler/package.json b/packages/compiler/package.json index 84aee05d18..d1560fbc40 100644 --- a/packages/compiler/package.json +++ b/packages/compiler/package.json @@ -14,7 +14,8 @@ "bugs": "https://github.com/marko-js/marko/issues/new?template=Bug_report.md", "repository": { "type": "git", - "url": "https://github.com/marko-js/marko/tree/main/packages/compiler" + "url": "git+https://github.com/marko-js/marko.git", + "directory": "packages/compiler" }, "license": "MIT", "author": "Dylan Piercey ", diff --git a/packages/runtime-class/package.json b/packages/runtime-class/package.json index 9a5124f890..d73a9b863f 100644 --- a/packages/runtime-class/package.json +++ b/packages/runtime-class/package.json @@ -19,7 +19,8 @@ "homepage": "https://markojs.com/", "repository": { "type": "git", - "url": "https://github.com/marko-js/marko.git" + "url": "git+https://github.com/marko-js/marko.git", + "directory": "packages/runtime-class" }, "license": "MIT", "author": "Patrick Steele-Idem ", diff --git a/packages/runtime-tags/package.json b/packages/runtime-tags/package.json index 6073c4b5fc..a0ceb913df 100644 --- a/packages/runtime-tags/package.json +++ b/packages/runtime-tags/package.json @@ -12,7 +12,8 @@ "bugs": "https://github.com/marko-js/marko/issues", "repository": { "type": "git", - "url": "https://github.com/marko-js/marko" + "url": "git+https://github.com/marko-js/marko.git", + "directory": "packages/runtime-tags" }, "license": "MIT", "exports": { diff --git a/packages/translator-interop/package.json b/packages/translator-interop/package.json index 4f75a5623a..b37d04ba09 100644 --- a/packages/translator-interop/package.json +++ b/packages/translator-interop/package.json @@ -15,7 +15,8 @@ "bugs": "https://github.com/marko-js/marko/issues/new?template=Bug_report.md", "repository": { "type": "git", - "url": "https://github.com/marko-js/marko/tree/main/packages/translator-interop" + "url": "git+https://github.com/marko-js/marko.git", + "directory": "packages/translator-interop" }, "license": "MIT", "main": "src/index.ts", diff --git a/scripts/publish-alias.ts b/scripts/publish-alias.ts index f9931e4cae..95826b2943 100644 --- a/scripts/publish-alias.ts +++ b/scripts/publish-alias.ts @@ -13,7 +13,7 @@ pkg.version = "6.0.0-" + pkg.version.replace(/^(0\.)+/, ""); try { fs.writeFileSync(runtimeTagsPkgFile, JSON.stringify(pkg, null, 2) + "\n"); - cp.execSync(`npm publish --tag next --dry-run ./${relativeRuntimeTagsDir}`); + cp.execSync(`npm publish --tag next ./${relativeRuntimeTagsDir}`); } finally { fs.writeFileSync(runtimeTagsPkgFile, originalPkgSource); }