@cedarjs/web 0.3.1-next.0 → 0.4.1-next.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.
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * This file lets users run the Cedar CLI commands inside the /web directory
4
+ * in their projects.
5
+ * This works because of the "bin" field in the @cedarjs/web package.json file
6
+ * that points to this file.
7
+ */
8
+ export {};
9
+ //# sourceMappingURL=cedarjs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cedarjs.d.ts","sourceRoot":"","sources":["../../src/bins/cedarjs.ts"],"names":[],"mappings":";AAEA;;;;;GAKG"}
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * This file lets users run the Cedar CLI commands inside the /web directory
4
+ * in their projects.
5
+ * This works because of the "bin" field in the @cedarjs/web package.json file
6
+ * that points to this file.
7
+ */
8
+ export {};
9
+ //# sourceMappingURL=cedarjs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cedarjs.d.ts","sourceRoot":"","sources":["../../../src/bins/cedarjs.ts"],"names":[],"mappings":";AAEA;;;;;GAKG"}
@@ -0,0 +1,36 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
18
+ // If the importer is in node compatibility mode or this is not an ESM
19
+ // file that has been converted to a CommonJS file using a Babel-
20
+ // compatible transform (i.e. "__esModule" has not been set), then set
21
+ // "default" to the CommonJS "module.exports" for node compatibility.
22
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
23
+ mod
24
+ ));
25
+ var import_node_module = require("node:module");
26
+ var import_node_url = require("node:url");
27
+ const cliPackageJsonFileUrl = (0, import_node_url.pathToFileURL)(
28
+ require.resolve("@cedarjs/cli/package.json")
29
+ );
30
+ const requireFromCli = (0, import_node_module.createRequire)(cliPackageJsonFileUrl);
31
+ const bins = requireFromCli("./package.json")["bin"];
32
+ const cliEntryPointUrl = new URL(bins["cedarjs"], cliPackageJsonFileUrl);
33
+ if (process.env.PROJECT_CWD) {
34
+ process.chdir(process.env.PROJECT_CWD);
35
+ }
36
+ import(cliEntryPointUrl.toString());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/web",
3
- "version": "0.3.1-next.0+80dae4601",
3
+ "version": "0.4.1-next.0+0d6e5314d",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/cedarjs/cedar.git",
@@ -114,6 +114,8 @@
114
114
  "main": "./dist/index.js",
115
115
  "types": "dist/index.d.ts",
116
116
  "bin": {
117
+ "cedarjs": "./dist/cjs/bins/cedarjs.js",
118
+ "cj": "./dist/cjs/bins/cedarjs.js",
117
119
  "cross-env": "./dist/cjs/bins/cross-env.js",
118
120
  "msw": "./dist/cjs/bins/msw.js",
119
121
  "redwood": "./dist/cjs/bins/redwood.js",
@@ -143,8 +145,8 @@
143
145
  "dependencies": {
144
146
  "@apollo/client": "3.13.8",
145
147
  "@babel/runtime-corejs3": "7.27.6",
146
- "@cedarjs/auth": "0.3.1-next.0+80dae4601",
147
- "@cedarjs/server-store": "0.3.1-next.0+80dae4601",
148
+ "@cedarjs/auth": "0.4.1-next.0+0d6e5314d",
149
+ "@cedarjs/server-store": "0.4.1-next.0+0d6e5314d",
148
150
  "@whatwg-node/fetch": "0.9.21",
149
151
  "apollo-upload-client": "18.0.1",
150
152
  "cookie": "0.7.2",
@@ -164,8 +166,8 @@
164
166
  "@babel/core": "^7.26.10",
165
167
  "@babel/plugin-transform-runtime": "7.27.4",
166
168
  "@babel/runtime": "7.27.6",
167
- "@cedarjs/framework-tools": "0.3.1-next.1",
168
- "@cedarjs/internal": "0.3.1-next.0+80dae4601",
169
+ "@cedarjs/framework-tools": "0.4.1-next.1",
170
+ "@cedarjs/internal": "0.4.1-next.0+0d6e5314d",
169
171
  "@rollup/plugin-babel": "6.0.4",
170
172
  "@testing-library/jest-dom": "6.5.0",
171
173
  "@testing-library/react": "14.3.1",
@@ -189,5 +191,5 @@
189
191
  "publishConfig": {
190
192
  "access": "public"
191
193
  },
192
- "gitHead": "80dae4601b6ceb1c13d5477e2664ec1926d0052e"
194
+ "gitHead": "0d6e5314d1a9f176ffe38b32431b1b50e905c97d"
193
195
  }