@uni_toolkit/shared 0.0.5 → 0.0.7

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.cjs CHANGED
@@ -35,11 +35,11 @@ __export(src_exports, {
35
35
  isString: () => isString
36
36
  });
37
37
  module.exports = __toCommonJS(src_exports);
38
- var import_path = __toESM(require("path"), 1);
38
+ var import_node_path = __toESM(require("path"), 1);
39
39
  function getOutputJsonPath(filePath) {
40
- const relativePath = import_path.default.relative(process.env.UNI_INPUT_DIR, filePath);
41
- const { name, dir } = import_path.default.parse(relativePath);
42
- return import_path.default.join(process.env.UNI_OUTPUT_DIR, dir, name + ".json");
40
+ const relativePath = import_node_path.default.relative(process.env.UNI_INPUT_DIR, filePath);
41
+ const { name, dir } = import_node_path.default.parse(relativePath);
42
+ return import_node_path.default.join(process.env.UNI_OUTPUT_DIR, dir, `${name}.json`);
43
43
  }
44
44
  function isMiniProgram() {
45
45
  return process.env.UNI_PLATFORM?.startsWith("mp-");
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  // src/index.ts
2
- import path from "path";
2
+ import path from "node:path";
3
3
  function getOutputJsonPath(filePath) {
4
4
  const relativePath = path.relative(process.env.UNI_INPUT_DIR, filePath);
5
5
  const { name, dir } = path.parse(relativePath);
6
- return path.join(process.env.UNI_OUTPUT_DIR, dir, name + ".json");
6
+ return path.join(process.env.UNI_OUTPUT_DIR, dir, `${name}.json`);
7
7
  }
8
8
  function isMiniProgram() {
9
9
  return process.env.UNI_PLATFORM?.startsWith("mp-");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uni_toolkit/shared",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "license": "MIT",
5
5
  "author": "chouchouji <1305974212@qq.com>",
6
6
  "type": "module",