@tachybase/utils 1.2.14 → 1.2.16-alpha.0

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/lib/fs-exists.js CHANGED
@@ -21,7 +21,7 @@ __export(fs_exists_exports, {
21
21
  fsExists: () => fsExists
22
22
  });
23
23
  module.exports = __toCommonJS(fs_exists_exports);
24
- var import_promises = require("fs/promises");
24
+ var import_promises = require("node:fs/promises");
25
25
  async function fsExists(path) {
26
26
  try {
27
27
  await (0, import_promises.stat)(path);
@@ -58,7 +58,7 @@ async function getStoragePluginNames(target) {
58
58
  __name(getStoragePluginNames, "getStoragePluginNames");
59
59
  async function createStoragePluginSymLink(pluginName) {
60
60
  const storagePluginsPath = (0, import_node_path.resolve)(process.cwd(), "storage/plugins");
61
- const nodeModulesPath = process.env.NODE_MODULES_PATH;
61
+ const nodeModulesPath = (0, import_node_path.resolve)(process.cwd(), "storage", ".plugins");
62
62
  try {
63
63
  if (pluginName.startsWith("@")) {
64
64
  const [orgName] = pluginName.split("/");
@@ -87,7 +87,7 @@ async function createStoragePluginsSymlink() {
87
87
  __name(createStoragePluginsSymlink, "createStoragePluginsSymlink");
88
88
  async function createDevPluginSymLink(pluginName) {
89
89
  const packagePluginsPath = (0, import_node_path.resolve)(process.cwd(), "packages");
90
- const nodeModulesPath = process.env.NODE_MODULES_PATH;
90
+ const nodeModulesPath = (0, import_node_path.resolve)(process.cwd(), "storage", ".packages");
91
91
  try {
92
92
  const packageJson = JSON.parse(
93
93
  (0, import_node_fs.readFileSync)((0, import_node_path.join)(packagePluginsPath, pluginName, "package.json"), { encoding: "utf-8" })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tachybase/utils",
3
- "version": "1.2.14",
3
+ "version": "1.2.16-alpha.0",
4
4
  "license": "Apache-2.0",
5
5
  "exports": {
6
6
  ".": {