@depot/cli 0.0.1-cli.2.36.3 → 0.0.1-cli.2.36.5
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/depot +1 -1
- package/install.js +3 -3
- package/lib/main.js +1 -1
- package/package.json +12 -12
package/bin/depot
CHANGED
|
@@ -176,7 +176,7 @@ for your current platform.`);
|
|
|
176
176
|
"node_modules",
|
|
177
177
|
".cache",
|
|
178
178
|
"@depot/cli",
|
|
179
|
-
`pnpapi-${pkg.replace("/", "-")}-${"2.36.
|
|
179
|
+
`pnpapi-${pkg.replace("/", "-")}-${"2.36.5"}-${path.basename(subpath)}`
|
|
180
180
|
);
|
|
181
181
|
if (!fs.existsSync(binTargetPath)) {
|
|
182
182
|
fs.mkdirSync(path.dirname(binTargetPath), { recursive: true });
|
package/install.js
CHANGED
|
@@ -118,8 +118,8 @@ which means the "depot" binary executable can't be run. You can either:
|
|
|
118
118
|
)}`
|
|
119
119
|
);
|
|
120
120
|
}
|
|
121
|
-
if (
|
|
122
|
-
throw new Error(`Expected ${JSON.stringify(versionFromPackageJSON)} but got ${JSON.stringify(
|
|
121
|
+
if (versionFromStdout !== versionFromPackageJSON) {
|
|
122
|
+
throw new Error(`Expected ${JSON.stringify(versionFromPackageJSON)} but got ${JSON.stringify(versionFromStdout)}`);
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
function isYarn() {
|
|
@@ -225,7 +225,7 @@ function maybeOptimizePackage(binPath) {
|
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
227
|
async function downloadDirectlyFromNPM(pkg, subpath, binPath) {
|
|
228
|
-
const url = `https://registry.npmjs.org/${pkg}/-/${pkg.replace("@depot/
|
|
228
|
+
const url = `https://registry.npmjs.org/${pkg}/-/${pkg.replace("@depot/", "")}-${versionFromPackageJSON}.tgz`;
|
|
229
229
|
console.error(`[@depot/cli] Trying to download ${JSON.stringify(url)}`);
|
|
230
230
|
try {
|
|
231
231
|
fs.writeFileSync(binPath, extractFileFromTarGzip(await fetch(url), subpath));
|
package/lib/main.js
CHANGED
|
@@ -2342,7 +2342,7 @@ for your current platform.`);
|
|
|
2342
2342
|
"node_modules",
|
|
2343
2343
|
".cache",
|
|
2344
2344
|
"@depot/cli",
|
|
2345
|
-
`pnpapi-${pkg.replace("/", "-")}-${"2.36.
|
|
2345
|
+
`pnpapi-${pkg.replace("/", "-")}-${"2.36.5"}-${path3.basename(subpath)}`
|
|
2346
2346
|
);
|
|
2347
2347
|
if (!fs.existsSync(binTargetPath)) {
|
|
2348
2348
|
fs.mkdirSync(path3.dirname(binTargetPath), { recursive: true });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depot/cli",
|
|
3
|
-
"version": "0.0.1-cli.2.36.
|
|
3
|
+
"version": "0.0.1-cli.2.36.5",
|
|
4
4
|
"description": "Depot CLI",
|
|
5
5
|
"repository": "https://github.com/depot/cli",
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,18 +10,18 @@
|
|
|
10
10
|
"bin": {
|
|
11
11
|
"depot": "bin/depot"
|
|
12
12
|
},
|
|
13
|
-
"main": "
|
|
14
|
-
"types": "
|
|
13
|
+
"main": "lib/main.js",
|
|
14
|
+
"types": "lib/main.d.ts",
|
|
15
15
|
"optionalDependencies": {
|
|
16
|
-
"@depot/cli-darwin-arm64": "0.0.1-cli.2.36.
|
|
17
|
-
"@depot/cli-darwin-x64": "0.0.1-cli.2.36.
|
|
18
|
-
"@depot/cli-linux-arm": "0.0.1-cli.2.36.
|
|
19
|
-
"@depot/cli-linux-arm64": "0.0.1-cli.2.36.
|
|
20
|
-
"@depot/cli-linux-ia32": "0.0.1-cli.2.36.
|
|
21
|
-
"@depot/cli-linux-x64": "0.0.1-cli.2.36.
|
|
22
|
-
"@depot/cli-win32-arm64": "0.0.1-cli.2.36.
|
|
23
|
-
"@depot/cli-win32-ia32": "0.0.1-cli.2.36.
|
|
24
|
-
"@depot/cli-win32-x64": "0.0.1-cli.2.36.
|
|
16
|
+
"@depot/cli-darwin-arm64": "0.0.1-cli.2.36.5",
|
|
17
|
+
"@depot/cli-darwin-x64": "0.0.1-cli.2.36.5",
|
|
18
|
+
"@depot/cli-linux-arm": "0.0.1-cli.2.36.5",
|
|
19
|
+
"@depot/cli-linux-arm64": "0.0.1-cli.2.36.5",
|
|
20
|
+
"@depot/cli-linux-ia32": "0.0.1-cli.2.36.5",
|
|
21
|
+
"@depot/cli-linux-x64": "0.0.1-cli.2.36.5",
|
|
22
|
+
"@depot/cli-win32-arm64": "0.0.1-cli.2.36.5",
|
|
23
|
+
"@depot/cli-win32-ia32": "0.0.1-cli.2.36.5",
|
|
24
|
+
"@depot/cli-win32-x64": "0.0.1-cli.2.36.5"
|
|
25
25
|
},
|
|
26
26
|
"publishConfig": {
|
|
27
27
|
"access": "public"
|