@yaonyan/jsr2npm 0.1.15 → 0.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/jsr2npm.cjs +1 -1
- package/bin/jsr2npm.mjs +1 -1
- package/package.json +1 -1
package/bin/jsr2npm.cjs
CHANGED
|
@@ -565,7 +565,7 @@ async function installJSRPackage(packageName, version) {
|
|
|
565
565
|
await (0, import_promises4.writeFile)("package.json", "{}");
|
|
566
566
|
const packageSpec = version === "latest" ? packageName : `${packageName}@${version}`;
|
|
567
567
|
console.log(`\u{1F504} Installing: ${packageSpec}`);
|
|
568
|
-
await import_dax_sh.default`npx jsr add ${packageSpec}`.cwd(import_node_process2.default.cwd());
|
|
568
|
+
await import_dax_sh.default`npx jsr@latest add ${packageSpec}`.cwd(import_node_process2.default.cwd());
|
|
569
569
|
}
|
|
570
570
|
async function verifyEntrypoint(packageDir, entrypoint) {
|
|
571
571
|
try {
|
package/bin/jsr2npm.mjs
CHANGED
|
@@ -545,7 +545,7 @@ async function installJSRPackage(packageName, version) {
|
|
|
545
545
|
await writeFile2("package.json", "{}");
|
|
546
546
|
const packageSpec = version === "latest" ? packageName : `${packageName}@${version}`;
|
|
547
547
|
console.log(`\u{1F504} Installing: ${packageSpec}`);
|
|
548
|
-
await $`npx jsr add ${packageSpec}`.cwd(process3.cwd());
|
|
548
|
+
await $`npx jsr@latest add ${packageSpec}`.cwd(process3.cwd());
|
|
549
549
|
}
|
|
550
550
|
async function verifyEntrypoint(packageDir, entrypoint) {
|
|
551
551
|
try {
|