zephyr-modernjs-plugin 0.0.0-canary.3 → 0.0.0-canary.31

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/index.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export { withZephyr } from './modernjs-plugin/with-zephyr';
2
+ export type { ZephyrBuildHooks, DeploymentInfo } from 'zephyr-agent';
@@ -41,24 +41,21 @@ const withZephyr = (zephyrOptions) => ({
41
41
  name: pluginName,
42
42
  pre: ['@modern-js/plugin-module-federation-config'],
43
43
  async setup(api) {
44
- api.modifyWebpackConfig(async (config, utils) => {
44
+ api.modifyWebpackConfig(async (config) => {
45
45
  const currentBundler = api.getAppContext().bundlerType;
46
46
  if (currentBundler !== 'webpack') {
47
47
  return;
48
48
  }
49
49
  const { withZephyr } = await Promise.resolve().then(() => __importStar(require('zephyr-webpack-plugin')));
50
- const z_config = await withZephyr(zephyrOptions)(config);
51
- /* eslint-disable-next-line */
52
- utils.mergeConfig(config, z_config);
50
+ return await withZephyr(zephyrOptions)(config);
53
51
  });
54
- api.modifyRspackConfig(async (config, utils) => {
52
+ api.modifyRspackConfig(async (config) => {
55
53
  const currentBundler = api.getAppContext().bundlerType;
56
54
  if (currentBundler !== 'rspack') {
57
55
  return;
58
56
  }
59
57
  const { withZephyr } = await Promise.resolve().then(() => __importStar(require('zephyr-rspack-plugin')));
60
- const z_config = await withZephyr(zephyrOptions)(config);
61
- utils.mergeConfig(config, z_config);
58
+ return await withZephyr(zephyrOptions)(config);
62
59
  });
63
60
  },
64
61
  usePlugins: isDev ? [zephyrFixPublicPath()] : [],
@@ -1 +1 @@
1
- {"version":3,"file":"with-zephyr.js","sourceRoot":"","sources":["../../src/modernjs-plugin/with-zephyr.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,+CAAsC;AAGtC,MAAM,UAAU,GAAG,wBAAwB,CAAC;AAC5C,MAAM,KAAK,GAAG,OAA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D,CAAC;YACH,CAAC,CAAC,CAAC;YAEH,GAAG,CAAC,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;gBACpD,IAAI,CAAC,QAAQ,EAAE,CAAC;oBACd,qBAAM,CAAC,IAAI,CAAC,qCAAqC,CAAC,CAAC;oBACnD,MAAM,CAAC,MAAM,GAAG,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC;gBAC3D,CAAC;YACH,CAAC,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC"}
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zephyr-modernjs-plugin",
3
- "version": "0.1.0",
3
+ "version": "0.1.3",
4
4
  "description": "Modernjs plugin for Zephyr",
5
5
  "repository": {
6
6
  "type": "git",
@@ -20,23 +20,21 @@
20
20
  "patch-version": "pnpm version"
21
21
  },
22
22
  "dependencies": {
23
- "@modern-js/app-tools": "catalog:modernjs",
24
- "is-ci": "catalog:plugin-shared",
25
23
  "tslib": "catalog:typescript",
26
24
  "zephyr-agent": "workspace:*",
27
- "zephyr-edge-contract": "workspace:*",
28
- "zephyr-xpack-internal": "workspace:*"
25
+ "zephyr-edge-contract": "workspace:*"
29
26
  },
30
27
  "devDependencies": {
31
- "@types/is-ci": "catalog:typescript",
28
+ "@modern-js/app-tools": "catalog:modernjs",
32
29
  "@types/jest": "catalog:typescript",
33
30
  "@types/node-persist": "catalog:typescript",
34
31
  "@typescript-eslint/eslint-plugin": "catalog:eslint",
35
32
  "ts-jest": "catalog:typescript"
36
33
  },
37
34
  "peerDependencies": {
38
- "zephyr-rspack-plugin": "workspace:*",
39
- "zephyr-webpack-plugin": "workspace:*"
35
+ "@modern-js/app-tools": "^2.0.0",
36
+ "zephyr-rspack-plugin": ">=0.1.0",
37
+ "zephyr-webpack-plugin": ">=0.1.0"
40
38
  },
41
39
  "peerDependenciesMeta": {
42
40
  "zephyr-rspack-plugin": {
@@ -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-modernjs-plugin",
3
- "version": "0.0.0-canary.3",
3
+ "version": "0.0.0-canary.31",
4
4
  "description": "Modernjs plugin for Zephyr",
5
5
  "repository": {
6
6
  "type": "git",
@@ -16,23 +16,21 @@
16
16
  "main": "dist/index.js",
17
17
  "types": "dist/index.d.ts",
18
18
  "dependencies": {
19
- "@modern-js/app-tools": "^2.68.14",
20
- "is-ci": "^4.1.0",
21
19
  "tslib": "^2.8.1",
22
- "zephyr-agent": "0.0.0-canary.3",
23
- "zephyr-edge-contract": "0.0.0-canary.3",
24
- "zephyr-xpack-internal": "0.0.0-canary.3"
20
+ "zephyr-agent": "0.0.0-canary.31",
21
+ "zephyr-edge-contract": "0.0.0-canary.31"
25
22
  },
26
23
  "devDependencies": {
27
- "@types/is-ci": "3.0.4",
24
+ "@modern-js/app-tools": "^2.69.7",
28
25
  "@types/jest": "29.5.14",
29
26
  "@types/node-persist": "^3.1.8",
30
27
  "@typescript-eslint/eslint-plugin": "^8.27.0",
31
28
  "ts-jest": "^29.2.6"
32
29
  },
33
30
  "peerDependencies": {
34
- "zephyr-rspack-plugin": "0.0.0-canary.3",
35
- "zephyr-webpack-plugin": "0.0.0-canary.3"
31
+ "@modern-js/app-tools": "^2.0.0",
32
+ "zephyr-rspack-plugin": ">=0.1.0",
33
+ "zephyr-webpack-plugin": ">=0.1.0"
36
34
  },
37
35
  "peerDependenciesMeta": {
38
36
  "zephyr-rspack-plugin": {