@pipelab/core-node 1.0.1-latest.44 → 1.0.1-latest.45

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipelab/core-node",
3
- "version": "1.0.1-latest.44",
3
+ "version": "1.0.1-latest.45",
4
4
  "private": false,
5
5
  "description": "The Pipelab automation engine for Node.js",
6
6
  "license": "FSL-1.1-MIT",
@@ -39,8 +39,8 @@
39
39
  "type-fest": "4.39.0",
40
40
  "ws": "8.18.3",
41
41
  "yauzl": "2.10.0",
42
- "@pipelab/constants": "1.0.1-latest.40",
43
- "@pipelab/shared": "2.0.1-latest.41"
42
+ "@pipelab/constants": "1.0.1-latest.41",
43
+ "@pipelab/shared": "2.0.1-latest.42"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/adm-zip": "0.5.7",
@@ -53,7 +53,7 @@
53
53
  "@types/yauzl": "2.10.3",
54
54
  "tsdown": "0.21.2",
55
55
  "typescript": "^5.0.0",
56
- "@pipelab/tsconfig": "1.0.1-latest.40"
56
+ "@pipelab/tsconfig": "1.0.1-latest.41"
57
57
  },
58
58
  "scripts": {
59
59
  "build": "tsdown",
@@ -109,41 +109,6 @@ export async function fetchPackage(
109
109
  }
110
110
 
111
111
  const cachePath = join(ctx.userDataPath, "cache", "pacote");
112
-
113
- // 1. Resolve version/range using npm with session-wide memoization and disk cache
114
- try {
115
- let packumentPromise = packumentRequests.get(packageName);
116
- if (!packumentPromise) {
117
- packumentPromise = pacote.packument(packageName, { cache: cachePath });
118
- packumentRequests.set(packageName, packumentPromise);
119
- }
120
-
121
- const packument = await packumentPromise;
122
- const versions = Object.keys(packument.versions);
123
- const range = versionOrRange || "latest";
124
-
125
- // Prioritize tags (like 'latest', 'beta', etc.) over semver ranges
126
- const foundVersion = packument["dist-tags"]?.[range] || semver.maxSatisfying(versions, range);
127
-
128
- if (!foundVersion) {
129
- throw new Error(
130
- `Package ${packageName}@${range} not found on npm (available tags: ${Object.keys(
131
- packument["dist-tags"] || {},
132
- ).join(", ")})`,
133
- );
134
- }
135
- resolvedVersion = foundVersion;
136
- console.log(`[Fetcher] ${packageName}: Resolved to v${resolvedVersion} via npm`);
137
- } catch (error) {
138
- console.warn(`[Fetcher] ${packageName}: remote resolution failed, trying local fallback...`);
139
- const fallbackVersion = await tryLocalFallback(versionOrRange, error, baseDir, packageName);
140
- if (fallbackVersion) {
141
- resolvedVersion = fallbackVersion;
142
- } else {
143
- throw error;
144
- }
145
- }
146
-
147
112
  const packageDir = join(baseDir, resolvedVersion);
148
113
 
149
114
  // If the package already exists and we don't need to install dependencies, return immediately
@@ -185,7 +150,7 @@ export async function runPnpm(
185
150
  },
186
151
  ) {
187
152
  const {
188
- args = ["install", "--prod", "--no-lockfile", "--prefer-offline"],
153
+ args = ["install", "--prod", "--no-lockfile", "--prefer-offline", "--no-verify-store-integrity"],
189
154
  extraEnv = {},
190
155
  signal,
191
156
  context: ctx,
@@ -209,6 +174,7 @@ export async function runPnpm(
209
174
  NODE_ENV: "production",
210
175
  PATH: nodePath ? `${dirname(nodePath)}${delimiter}${process.env.PATH}` : process.env.PATH,
211
176
  PNPM_HOME: join(ctx.userDataPath, "pnpm"),
177
+ PNPM_ONLY_ALLOW_TRUSTED_DEPENDENCIES: "false",
212
178
  ...extraEnv,
213
179
  },
214
180
  });