@dsh-workbench/adapter-runtime 1.1.14-beta.1 → 1.1.14-beta.2
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/channel/package.json
CHANGED
|
@@ -6,6 +6,7 @@ export declare function isolatedCommand(): string;
|
|
|
6
6
|
export { libsPrefix } from '../foundation/paths.js';
|
|
7
7
|
export { libInstallCommand } from '../foundation/install.js';
|
|
8
8
|
export declare function libDir(name: string): string;
|
|
9
|
+
export declare function pnpmIsolationFlags(): string;
|
|
9
10
|
export declare function isolatedInstallCommand(): string;
|
|
10
11
|
export declare function isolatedPnpmInstallCommand(pnpmCjs: string): string;
|
|
11
12
|
export { isolatedHome, isolatedRoot, libsBinDir, npmCacheDir, toolchainOpencliDir, vendorPeerLink, vendorPluginsDir, vendorPrefix } from '../foundation/paths.js';
|
|
@@ -29,15 +29,19 @@ export { libInstallCommand } from '../foundation/install.js';
|
|
|
29
29
|
export function libDir(name) {
|
|
30
30
|
return join(libsPrefix(), 'node_modules', name);
|
|
31
31
|
}
|
|
32
|
+
export function pnpmIsolationFlags() {
|
|
33
|
+
return (`--config.cache-dir=${quoteShellArg(join(isolatedRoot(), 'pnpm-cache'))} ` +
|
|
34
|
+
`--config.state-dir=${quoteShellArg(join(isolatedRoot(), 'pnpm-state'))}`);
|
|
35
|
+
}
|
|
32
36
|
export function isolatedInstallCommand() {
|
|
33
37
|
const pnpm = process.env.DSH_WB_PNPM?.trim() || 'pnpm';
|
|
34
|
-
return `${pnpm} add --dir ${quoteShellArg(toolchainDir())} ${OPENCLI_NPM_PACKAGE}@${OPENCLI_PIN} --store-dir ${quoteShellArg(npmCacheDir())} --allow-build=${OPENCLI_NPM_PACKAGE}`;
|
|
38
|
+
return `${pnpm} add --dir ${quoteShellArg(toolchainDir())} ${OPENCLI_NPM_PACKAGE}@${OPENCLI_PIN} --store-dir ${quoteShellArg(npmCacheDir())} ${pnpmIsolationFlags()} --allow-build=${OPENCLI_NPM_PACKAGE}`;
|
|
35
39
|
}
|
|
36
40
|
export function isolatedPnpmInstallCommand(pnpmCjs) {
|
|
37
41
|
const store = join(isolatedRoot(), 'pnpm-store');
|
|
38
42
|
return (`node ${quoteShellArg(pnpmCjs)} add --dir ${quoteShellArg(toolchainDir())} ` +
|
|
39
43
|
`${OPENCLI_NPM_PACKAGE}@${OPENCLI_PIN} --store-dir ${quoteShellArg(store)} ` +
|
|
40
|
-
|
|
44
|
+
`${pnpmIsolationFlags()} --allow-build=${OPENCLI_NPM_PACKAGE}`);
|
|
41
45
|
}
|
|
42
46
|
export { isolatedHome, isolatedRoot, libsBinDir, npmCacheDir, toolchainOpencliDir, vendorPeerLink, vendorPluginsDir, vendorPrefix } from '../foundation/paths.js';
|
|
43
47
|
export { OPENCLI_NPM_PACKAGE } from '../foundation/paths.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsh-workbench/adapter-runtime",
|
|
3
|
-
"version": "1.1.14-beta.
|
|
3
|
+
"version": "1.1.14-beta.2",
|
|
4
4
|
"description": "Opencli, browser and data runtime adapters.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"execa": "^10.2.0",
|
|
21
|
-
"@dsh-workbench/shared": "1.1.14-beta.
|
|
21
|
+
"@dsh-workbench/shared": "1.1.14-beta.2"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/node": "^24.19.0",
|