@jsii/kernel 1.90.0 → 1.92.0
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/lib/kernel.js +7 -2
- package/lib/tar-cache/index.d.ts +1 -1
- package/package.json +7 -7
package/lib/kernel.js
CHANGED
|
@@ -915,13 +915,18 @@ _Kernel_assemblies = new WeakMap(), _Kernel_objects = new WeakMap(), _Kernel_cbs
|
|
|
915
915
|
if (!epkg.bin) {
|
|
916
916
|
throw new JsiiFault(`Script with name ${req.script} was not defined.`);
|
|
917
917
|
}
|
|
918
|
+
// Make sure the current NODE_OPTIONS are honored if we shell out to node
|
|
919
|
+
const nodeOptions = [...process.execArgv];
|
|
920
|
+
// When we are using the symlinked version of the cache, we need to preserve both symlink settings for binaries
|
|
921
|
+
if (nodeOptions.includes('--preserve-symlinks')) {
|
|
922
|
+
nodeOptions.push('--preserve-symlinks-main');
|
|
923
|
+
}
|
|
918
924
|
return {
|
|
919
925
|
command: path.join(packageDir, scriptPath),
|
|
920
926
|
args: (_b = req.args) !== null && _b !== void 0 ? _b : [],
|
|
921
927
|
env: {
|
|
922
928
|
...process.env,
|
|
923
|
-
|
|
924
|
-
NODE_OPTIONS: process.execArgv.join(' '),
|
|
929
|
+
NODE_OPTIONS: nodeOptions.join(' '),
|
|
925
930
|
// Make sure "this" node is ahead of $PATH just in case
|
|
926
931
|
PATH: `${path.dirname(process.execPath)}:${process.env.PATH}`,
|
|
927
932
|
},
|
package/lib/tar-cache/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export interface ExtractResult {
|
|
|
5
5
|
* When `'hit'`, the data was already present in cache and was returned from
|
|
6
6
|
* cache.
|
|
7
7
|
*
|
|
8
|
-
* When `'miss'`, the data was extracted into the
|
|
8
|
+
* When `'miss'`, the data was extracted into the cache and returned from
|
|
9
9
|
* cache.
|
|
10
10
|
*
|
|
11
11
|
* When `undefined`, the cache is not enabled.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsii/kernel",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.92.0",
|
|
4
4
|
"description": "kernel for jsii execution environment",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -31,19 +31,19 @@
|
|
|
31
31
|
"package": "package-js"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@jsii/spec": "^1.
|
|
34
|
+
"@jsii/spec": "^1.92.0",
|
|
35
35
|
"fs-extra": "^10.1.0",
|
|
36
36
|
"lockfile": "^1.0.4",
|
|
37
37
|
"tar": "^6.2.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@scope/jsii-calc-base": "^1.
|
|
41
|
-
"@scope/jsii-calc-lib": "^1.
|
|
40
|
+
"@scope/jsii-calc-base": "^1.92.0",
|
|
41
|
+
"@scope/jsii-calc-lib": "^1.92.0",
|
|
42
42
|
"@types/fs-extra": "^9.0.13",
|
|
43
|
-
"@types/lockfile": "^1.0.
|
|
44
|
-
"@types/tar": "^6.1.
|
|
43
|
+
"@types/lockfile": "^1.0.4",
|
|
44
|
+
"@types/tar": "^6.1.9",
|
|
45
45
|
"jest-expect-message": "^1.1.3",
|
|
46
|
-
"jsii-build-tools": "^1.
|
|
46
|
+
"jsii-build-tools": "^1.92.0",
|
|
47
47
|
"jsii-calc": "^3.20.120"
|
|
48
48
|
}
|
|
49
49
|
}
|