@umijs/plugin-run 4.1.0 → 4.1.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/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { IApi } from 'umi';
1
2
  declare const _default: (api: IApi) => void;
2
3
  export default _default;
3
4
  export declare function getBinPath(): string;
package/dist/index.js CHANGED
@@ -81,7 +81,15 @@ var src_default = (api) => {
81
81
  "utf-8"
82
82
  );
83
83
  const tsxPath = getBinPath();
84
- (0, import_child_process.fork)(tsxPath, [absTmpFilePath, ...restArgs], { stdio: "inherit" });
84
+ (0, import_child_process.fork)(tsxPath, [absTmpFilePath, ...restArgs], {
85
+ stdio: "inherit",
86
+ env: {
87
+ ...process.env,
88
+ // disable `(node:92349) ExperimentalWarning: `--experimental-loader` may be removed in the future;` warning
89
+ // more context: https://github.com/umijs/umi/pull/11981
90
+ NODE_NO_WARNINGS: "1"
91
+ }
92
+ });
85
93
  }
86
94
  });
87
95
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/plugin-run",
3
- "version": "4.1.0",
3
+ "version": "4.1.2",
4
4
  "description": "@umijs/plugin-run",
5
5
  "homepage": "https://github.com/umijs/umi/tree/master/packages/plugin-run#readme",
6
6
  "bugs": "https://github.com/umijs/umi/issues",
@@ -15,7 +15,7 @@
15
15
  "dist"
16
16
  ],
17
17
  "dependencies": {
18
- "tsx": "^3.12.2"
18
+ "tsx": "3.12.2"
19
19
  },
20
20
  "publishConfig": {
21
21
  "access": "public"