@redmix/api 9.0.0-canary.535 → 9.0.0-canary.538

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.
@@ -1,3 +1,9 @@
1
1
  #!/usr/bin/env node
2
+ /**
3
+ * This file lets users run the Redmix CLI commands inside the /api directory
4
+ * in their projects.
5
+ * This works because of the "bin" field in the @redmix/api package.json file
6
+ * that points to this file.
7
+ */
2
8
  export {};
3
9
  //# sourceMappingURL=redwood.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"redwood.d.ts","sourceRoot":"","sources":["../../src/bins/redwood.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"redwood.d.ts","sourceRoot":"","sources":["../../src/bins/redwood.ts"],"names":[],"mappings":";AAEA;;;;;GAKG"}
@@ -22,12 +22,15 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
22
22
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
23
23
  mod
24
24
  ));
25
- var import_module = require("module");
26
- const requireFromCli = (0, import_module.createRequire)(
25
+ var import_node_module = require("node:module");
26
+ var import_node_url = require("node:url");
27
+ const cliPackageJsonFileUrl = (0, import_node_url.pathToFileURL)(
27
28
  require.resolve("@redmix/cli/package.json")
28
29
  );
30
+ const requireFromCli = (0, import_node_module.createRequire)(cliPackageJsonFileUrl);
29
31
  const bins = requireFromCli("./package.json")["bin"];
32
+ const cliEntryPointUrl = new URL(bins["redwood"], cliPackageJsonFileUrl);
30
33
  if (process.env.PROJECT_CWD) {
31
34
  process.chdir(process.env.PROJECT_CWD);
32
35
  }
33
- requireFromCli(bins["redwood"]);
36
+ import(cliEntryPointUrl.toString());
package/dist/bins/rwfw.js CHANGED
@@ -22,12 +22,15 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
22
22
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
23
23
  mod
24
24
  ));
25
- var import_module = require("module");
26
- const requireFromCli = (0, import_module.createRequire)(
25
+ var import_node_module = require("node:module");
26
+ var import_node_url = require("node:url");
27
+ const cliPackageJsonFileUrl = (0, import_node_url.pathToFileURL)(
27
28
  require.resolve("@redmix/cli/package.json")
28
29
  );
30
+ const requireFromCli = (0, import_node_module.createRequire)(cliPackageJsonFileUrl);
29
31
  const bins = requireFromCli("./package.json")["bin"];
32
+ const cliEntryPointUrl = new URL(bins["rwfw"], cliPackageJsonFileUrl);
30
33
  if (process.env.PROJECT_CWD) {
31
34
  process.chdir(process.env.PROJECT_CWD);
32
35
  }
33
- requireFromCli(bins["rwfw"]);
36
+ import(cliEntryPointUrl.toString());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redmix/api",
3
- "version": "9.0.0-canary.535+bcac5a445",
3
+ "version": "9.0.0-canary.538+cb9389c1f",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/redmix-run/redmix.git",
@@ -60,7 +60,7 @@
60
60
  "title-case": "3.0.3"
61
61
  },
62
62
  "devDependencies": {
63
- "@redmix/framework-tools": "9.0.0-canary.535",
63
+ "@redmix/framework-tools": "9.0.0-canary.538",
64
64
  "@types/aws-lambda": "8.10.145",
65
65
  "@types/jsonwebtoken": "9.0.8",
66
66
  "@types/memjs": "1",
@@ -88,5 +88,5 @@
88
88
  "optional": true
89
89
  }
90
90
  },
91
- "gitHead": "bcac5a4450d48abebc55b1c5d5fa84603407462a"
91
+ "gitHead": "cb9389c1f85287aa2769d90bd94de53a6a0adf87"
92
92
  }