@onivoro/onix 20.0.51 → 20.0.54
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 +2 -2
- package/src/executors/xray/executor.js +3 -1
- package/src/executors/xray/executor.js.map +1 -1
- package/src/index.d.ts +2 -0
- package/src/index.js +2 -0
- package/src/index.js.map +1 -1
- package/src/webpack/patch-nx-source-map-paths.function.d.ts +9 -0
- package/src/webpack/patch-nx-source-map-paths.function.js +13 -0
- package/src/webpack/patch-nx-source-map-paths.function.js.map +1 -0
- package/src/webpack/patch-nx-source-maps.plugin.d.ts +2 -0
- package/src/webpack/patch-nx-source-maps.plugin.js +11 -0
- package/src/webpack/patch-nx-source-maps.plugin.js.map +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onivoro/onix",
|
|
3
|
-
"version": "20.0.
|
|
3
|
+
"version": "20.0.54",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"typings": "./src/index.d.ts",
|
|
@@ -19,4 +19,4 @@
|
|
|
19
19
|
"esbuild-node-externals": "^1.16.0"
|
|
20
20
|
},
|
|
21
21
|
"types": "./src/index.d.ts"
|
|
22
|
-
}
|
|
22
|
+
}
|
|
@@ -8,11 +8,13 @@ exports.default = (0, executor_factory_function_1.executorFactory)((options, con
|
|
|
8
8
|
const wl = (0, devkit_1.workspaceLayout)();
|
|
9
9
|
const to = (0, devkit_1.readTargetOptions)({ project: context.projectName, target: context.targetName }, context);
|
|
10
10
|
const packageManager = (0, devkit_1.detectPackageManager)(context.root);
|
|
11
|
+
const packageManagerCommand = (0, devkit_1.getPackageManagerCommand)(packageManager);
|
|
11
12
|
yield (0, promises_1.writeFile)(`xray-${Date.now()}.json`, JSON.stringify({
|
|
13
|
+
packageManager,
|
|
14
|
+
packageManagerCommand,
|
|
12
15
|
options,
|
|
13
16
|
context,
|
|
14
17
|
workspaceLayout: wl,
|
|
15
|
-
packageManager,
|
|
16
18
|
targetOptions: to,
|
|
17
19
|
}, null, 2));
|
|
18
20
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../onix/src/executors/xray/executor.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../onix/src/executors/xray/executor.ts"],"names":[],"mappings":";;;AAAA,uCAOoB;AAEpB,0CAAwC;AACxC,yFAA4E;AAE5E,kBAAe,IAAA,2CAAe,EAAC,CAC7B,OAAuB,EACvB,OAAwB,EACxB,EAAE;IACF,MAAM,EAAE,GAAG,IAAA,wBAAe,GAAE,CAAC;IAC7B,MAAM,EAAE,GAAG,IAAA,0BAAiB,EAAC,EAAE,OAAO,EAAE,OAAO,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IACpG,MAAM,cAAc,GAAG,IAAA,6BAAoB,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1D,MAAM,qBAAqB,GAAG,IAAA,iCAAwB,EAAC,cAAc,CAAC,CAAC;IAEvE,MAAM,IAAA,oBAAS,EAAC,QAAQ,IAAI,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC;QACxD,cAAc;QACd,qBAAqB;QACrB,OAAO;QACP,OAAO;QACP,eAAe,EAAE,EAAE;QACnB,aAAa,EAAE,EAAE;KAClB,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AACf,CAAC,CAAA,CAAC,CAAC"}
|
package/src/index.d.ts
CHANGED
|
@@ -13,3 +13,5 @@ export * from './inference/add-serve-targets.function';
|
|
|
13
13
|
export * from './inference/build-onix-targets.function';
|
|
14
14
|
export * from './inference/read-targets-cache.function';
|
|
15
15
|
export * from './inference/write-targets-to-cache.function';
|
|
16
|
+
export * from './webpack/patch-nx-source-map-paths.function';
|
|
17
|
+
export * from './webpack/patch-nx-source-maps.plugin';
|
package/src/index.js
CHANGED
|
@@ -18,4 +18,6 @@ tslib_1.__exportStar(require("./inference/add-serve-targets.function"), exports)
|
|
|
18
18
|
tslib_1.__exportStar(require("./inference/build-onix-targets.function"), exports);
|
|
19
19
|
tslib_1.__exportStar(require("./inference/read-targets-cache.function"), exports);
|
|
20
20
|
tslib_1.__exportStar(require("./inference/write-targets-to-cache.function"), exports);
|
|
21
|
+
tslib_1.__exportStar(require("./webpack/patch-nx-source-map-paths.function"), exports);
|
|
22
|
+
tslib_1.__exportStar(require("./webpack/patch-nx-source-maps.plugin"), exports);
|
|
21
23
|
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../onix/src/index.ts"],"names":[],"mappings":";;;;AAAA,+DAA6D;AAApD,qHAAA,gBAAgB,OAAA;AAEzB,mEAAyC;AAEzC,2DAAiC;AAEjC,gFAAsD;AACtD,6FAAmE;AACnE,6FAAmE;AACnE,6EAAmD;AACnD,qFAA2D;AAE3D,iFAAuD;AACvD,kFAAwD;AACxD,gFAAsD;AACtD,iFAAuD;AACvD,kFAAwD;AACxD,kFAAwD;AACxD,sFAA4D"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../onix/src/index.ts"],"names":[],"mappings":";;;;AAAA,+DAA6D;AAApD,qHAAA,gBAAgB,OAAA;AAEzB,mEAAyC;AAEzC,2DAAiC;AAEjC,gFAAsD;AACtD,6FAAmE;AACnE,6FAAmE;AACnE,6EAAmD;AACnD,qFAA2D;AAE3D,iFAAuD;AACvD,kFAAwD;AACxD,gFAAsD;AACtD,iFAAuD;AACvD,kFAAwD;AACxD,kFAAwD;AACxD,sFAA4D;AAE5D,uFAA6D;AAC7D,gFAAsD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type TFilenameTemplater = (info: {
|
|
2
|
+
absoluteResourcePath: string;
|
|
3
|
+
}) => string;
|
|
4
|
+
export type TWebpackConfig = {
|
|
5
|
+
output: {
|
|
6
|
+
devtoolModuleFilenameTemplate: TFilenameTemplater;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export declare function patchNxSourceMapPaths(config: TWebpackConfig): TWebpackConfig;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.patchNxSourceMapPaths = patchNxSourceMapPaths;
|
|
4
|
+
const node_path_1 = require("node:path");
|
|
5
|
+
function patchNxSourceMapPaths(config) {
|
|
6
|
+
config.output.devtoolModuleFilenameTemplate = function (info) {
|
|
7
|
+
const rel = (0, node_path_1.relative)(process.cwd(), info.absoluteResourcePath);
|
|
8
|
+
return `webpack:///./${rel}`;
|
|
9
|
+
};
|
|
10
|
+
return config;
|
|
11
|
+
}
|
|
12
|
+
;
|
|
13
|
+
//# sourceMappingURL=patch-nx-source-map-paths.function.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patch-nx-source-map-paths.function.js","sourceRoot":"","sources":["../../../../onix/src/webpack/patch-nx-source-map-paths.function.ts"],"names":[],"mappings":";;AAKA,sDAMC;AAXD,yCAAqC;AAKrC,SAAgB,qBAAqB,CAAC,MAAsB;IACxD,MAAM,CAAC,MAAM,CAAC,6BAA6B,GAAG,UAAU,IAAI;QACxD,MAAM,GAAG,GAAG,IAAA,oBAAQ,EAAC,OAAO,CAAC,GAAG,EAAE,EAAE,IAAI,CAAC,oBAAoB,CAAC,CAAC;QAC/D,OAAO,gBAAgB,GAAG,EAAE,CAAC;IACjC,CAAC,CAAC;IACF,OAAO,MAAM,CAAC;AAClB,CAAC;AAAA,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.patchNxSourceMaps = patchNxSourceMaps;
|
|
4
|
+
const patch_nx_source_map_paths_function_1 = require("./patch-nx-source-map-paths.function");
|
|
5
|
+
function patchNxSourceMaps() {
|
|
6
|
+
return (config) => {
|
|
7
|
+
(0, patch_nx_source_map_paths_function_1.patchNxSourceMapPaths)(config);
|
|
8
|
+
return config;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=patch-nx-source-maps.plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patch-nx-source-maps.plugin.js","sourceRoot":"","sources":["../../../../onix/src/webpack/patch-nx-source-maps.plugin.ts"],"names":[],"mappings":";;AAEA,8CAKC;AAPD,6FAA6F;AAE7F,SAAgB,iBAAiB;IAC7B,OAAO,CAAC,MAAsB,EAAE,EAAE;QAC9B,IAAA,0DAAqB,EAAC,MAAM,CAAC,CAAC;QAC9B,OAAO,MAAM,CAAC;IAClB,CAAC,CAAA;AACL,CAAC"}
|