@umijs/plugin-run 4.6.66 → 4.6.68

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,4 +1,5 @@
1
- declare const _default: (api: IApi) => void;
1
+ import { IApi } from 'umi';
2
2
  export default _default;
3
+ declare function _default(api: IApi): void;
3
4
  export declare function getBinPath(): string;
4
5
  export declare function getFileNameByPath(params: string): string | undefined;
package/dist/index.js CHANGED
@@ -34,11 +34,11 @@ __export(src_exports, {
34
34
  getFileNameByPath: () => getFileNameByPath
35
35
  });
36
36
  module.exports = __toCommonJS(src_exports);
37
+ var import_utils = require("@umijs/utils");
37
38
  var import_assert = __toESM(require("assert"));
38
39
  var import_child_process = require("child_process");
39
40
  var import_fs = require("fs");
40
41
  var import_path = require("path");
41
- var import_plugin_utils = require("umi/plugin-utils");
42
42
  var src_default = (api) => {
43
43
  api.describe({
44
44
  key: "run",
@@ -71,7 +71,7 @@ var src_default = (api) => {
71
71
  "umi-plugin-run",
72
72
  fileName
73
73
  );
74
- import_plugin_utils.fsExtra.mkdirpSync((0, import_path.dirname)(absTmpFilePath));
74
+ import_utils.fsExtra.mkdirpSync((0, import_path.dirname)(absTmpFilePath));
75
75
  (0, import_fs.writeFileSync)(
76
76
  absTmpFilePath,
77
77
  `${globals.map(
@@ -94,7 +94,7 @@ var src_default = (api) => {
94
94
  });
95
95
  };
96
96
  function getBinPath() {
97
- const pkgPath = import_plugin_utils.resolve.sync("tsx/package.json", { basedir: __dirname });
97
+ const pkgPath = import_utils.resolve.sync("tsx/package.json", { basedir: __dirname });
98
98
  const pkgContent = require(pkgPath);
99
99
  return (0, import_path.join)((0, import_path.dirname)(pkgPath), pkgContent.bin);
100
100
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/plugin-run",
3
- "version": "4.6.66",
3
+ "version": "4.6.68",
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,8 @@
15
15
  "dist"
16
16
  ],
17
17
  "dependencies": {
18
- "tsx": "3.12.2"
18
+ "tsx": "3.12.2",
19
+ "@umijs/utils": "4.6.68"
19
20
  },
20
21
  "publishConfig": {
21
22
  "access": "public"