zephyr-rspack-plugin 0.1.3-next.5 → 0.1.3-next.6
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/dist/package.json
CHANGED
|
@@ -20,17 +20,20 @@
|
|
|
20
20
|
"patch-version": "pnpm version"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@rspack/core": "catalog:rspack",
|
|
24
23
|
"tslib": "catalog:typescript",
|
|
25
24
|
"zephyr-agent": "workspace:*",
|
|
26
25
|
"zephyr-xpack-internal": "workspace:*"
|
|
27
26
|
},
|
|
28
27
|
"devDependencies": {
|
|
28
|
+
"@rspack/core": "catalog:rspack",
|
|
29
29
|
"@types/jest": "catalog:typescript",
|
|
30
30
|
"@types/node-persist": "catalog:typescript",
|
|
31
31
|
"@typescript-eslint/eslint-plugin": "catalog:eslint",
|
|
32
32
|
"ts-jest": "catalog:typescript"
|
|
33
33
|
},
|
|
34
|
+
"peerDependencies": {
|
|
35
|
+
"@rspack/core": "^1.0.0"
|
|
36
|
+
},
|
|
34
37
|
"publishConfig": {
|
|
35
38
|
"access": "public",
|
|
36
39
|
"provenance": true
|
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.withZephyr = withZephyr;
|
|
4
4
|
const zephyr_agent_1 = require("zephyr-agent");
|
|
5
|
+
const zephyr_edge_contract_1 = require("zephyr-edge-contract");
|
|
5
6
|
const zephyr_xpack_internal_1 = require("zephyr-xpack-internal");
|
|
6
7
|
const ze_rspack_plugin_1 = require("./ze-rspack-plugin");
|
|
7
8
|
function withZephyr(zephyrPluginOptions) {
|
|
8
9
|
return (config) => {
|
|
9
10
|
// Skip Zephyr execution during Nx graph calculation
|
|
10
|
-
//
|
|
11
|
-
if (
|
|
11
|
+
// Nx sets global.NX_GRAPH_CREATION = true during graph creation
|
|
12
|
+
if ((0, zephyr_edge_contract_1.getGlobal)().NX_GRAPH_CREATION) {
|
|
12
13
|
return Promise.resolve(config);
|
|
13
14
|
}
|
|
14
15
|
return _zephyr_configuration(config, zephyrPluginOptions);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"with-zephyr.js","sourceRoot":"","sources":["../../src/rspack-plugin/with-zephyr.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"with-zephyr.js","sourceRoot":"","sources":["../../src/rspack-plugin/with-zephyr.ts"],"names":[],"mappings":";;AAaA,gCAWC;AAvBD,+CAA+D;AAC/D,+DAAiD;AACjD,iEAI+B;AAE/B,yDAAoD;AAIpD,SAAgB,UAAU,CACxB,mBAA+C;IAE/C,OAAO,CAAC,MAAM,EAAE,EAAE;QAChB,oDAAoD;QACpD,gEAAgE;QAChE,IAAI,IAAA,gCAAS,GAAE,CAAC,iBAAiB,EAAE,CAAC;YAClC,OAAO,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACjC,CAAC;QACD,OAAO,qBAAqB,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;IAC5D,CAAC,CAAC;AACJ,CAAC;AAED,KAAK,UAAU,qBAAqB,CAClC,MAAqB,EACrB,cAA0C;IAE1C,IAAI,CAAC;QACH,2DAA2D;QAC3D,MAAM,aAAa,GAAG,MAAM,2BAAY,CAAC,MAAM,CAAC;YAC9C,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE,MAAM,CAAC,OAAO;SACxB,CAAC,CAAC;QAEH,6CAA6C;QAC7C,MAAM,eAAe,GAAG,IAAA,uDAA+B,EAAC,MAAM,CAAC,CAAC;QAChE,MAAM,yBAAyB,GAC7B,MAAM,aAAa,CAAC,2BAA2B,CAAC,eAAe,CAAC,CAAC;QAEnE,IAAA,wDAAgC,EAAC,aAAa,EAAE,MAAM,EAAE,yBAAyB,CAAC,CAAC;QAEnF,gCAAgC;QAChC,MAAM,CAAC,OAAO,EAAE,IAAI,CAClB,IAAI,iCAAc,CAAC;YACjB,aAAa;YACb,QAAQ,EAAE,IAAA,yDAAiC,EAAC,MAAM,CAAC;YACnD,mBAAmB,EAAE,cAAc,EAAE,mBAAmB;YACxD,KAAK,EAAE,cAAc,EAAE,KAAK;SAC7B,CAAC,CACH,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAA,gCAAiB,EAAC,KAAK,CAAC,CAAC;IAC3B,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import baseConfig from '../../eslint.config.mjs';
|
|
2
|
+
|
|
3
|
+
export default [
|
|
4
|
+
...baseConfig,
|
|
5
|
+
{
|
|
6
|
+
files: ['**/*.ts', '**/*.tsx'],
|
|
7
|
+
rules: {
|
|
8
|
+
'@typescript-eslint/explicit-function-return-type': [
|
|
9
|
+
'error',
|
|
10
|
+
{
|
|
11
|
+
allowExpressions: true,
|
|
12
|
+
},
|
|
13
|
+
],
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zephyr-rspack-plugin",
|
|
3
|
-
"version": "0.1.3-next.
|
|
3
|
+
"version": "0.1.3-next.6",
|
|
4
4
|
"description": "Repack plugin for Zephyr",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,17 +16,20 @@
|
|
|
16
16
|
"main": "dist/index.js",
|
|
17
17
|
"types": "dist/index.d.ts",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@rspack/core": "^1.5.5",
|
|
20
19
|
"tslib": "^2.8.1",
|
|
21
|
-
"zephyr-agent": "0.1.3-next.
|
|
22
|
-
"zephyr-xpack-internal": "0.1.3-next.
|
|
20
|
+
"zephyr-agent": "0.1.3-next.6",
|
|
21
|
+
"zephyr-xpack-internal": "0.1.3-next.6"
|
|
23
22
|
},
|
|
24
23
|
"devDependencies": {
|
|
24
|
+
"@rspack/core": "^1.7.0",
|
|
25
25
|
"@types/jest": "29.5.14",
|
|
26
26
|
"@types/node-persist": "^3.1.8",
|
|
27
27
|
"@typescript-eslint/eslint-plugin": "^8.27.0",
|
|
28
28
|
"ts-jest": "^29.2.6"
|
|
29
29
|
},
|
|
30
|
+
"peerDependencies": {
|
|
31
|
+
"@rspack/core": "^1.0.0"
|
|
32
|
+
},
|
|
30
33
|
"publishConfig": {
|
|
31
34
|
"access": "public",
|
|
32
35
|
"provenance": true
|