@cedarjs/internal 2.5.0 → 2.5.1-next.27

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/build/api.js CHANGED
@@ -20,18 +20,18 @@ const rebuildApi = async () => {
20
20
  return BUILD_CTX.rebuild();
21
21
  };
22
22
  const cleanApiBuild = async () => {
23
- const rwjsPaths = getPaths();
24
- return fs.promises.rm(rwjsPaths.api.dist, { recursive: true, force: true });
23
+ const cedarPaths = getPaths();
24
+ return fs.promises.rm(cedarPaths.api.dist, { recursive: true, force: true });
25
25
  };
26
- const runRwBabelTransformsPlugin = {
27
- name: "rw-esbuild-babel-transform",
26
+ const runCedarBabelTransformsPlugin = {
27
+ name: "cedar-esbuild-babel-transform",
28
28
  setup(build2) {
29
- const rwjsConfig = getConfig();
29
+ const cedarConfig = getConfig();
30
30
  build2.onLoad({ filter: /\.(js|ts|tsx|jsx)$/ }, async (args) => {
31
31
  const transformedCode = await transformWithBabel(
32
32
  args.path,
33
33
  getApiSideBabelPlugins({
34
- openTelemetry: rwjsConfig.experimental.opentelemetry.enabled && rwjsConfig.experimental.opentelemetry.wrapApi,
34
+ openTelemetry: cedarConfig.experimental.opentelemetry.enabled && cedarConfig.experimental.opentelemetry.wrapApi,
35
35
  projectIsEsm: projectSideIsEsm("api")
36
36
  })
37
37
  );
@@ -49,18 +49,18 @@ const transpileApi = async (files) => {
49
49
  return build(getEsbuildOptions(files));
50
50
  };
51
51
  function getEsbuildOptions(files) {
52
- const rwjsPaths = getPaths();
52
+ const cedarPaths = getPaths();
53
53
  const format = projectSideIsEsm("api") ? "esm" : "cjs";
54
54
  return {
55
- absWorkingDir: rwjsPaths.api.base,
55
+ absWorkingDir: cedarPaths.api.base,
56
56
  entryPoints: files,
57
57
  platform: "node",
58
58
  target: "node20",
59
59
  format,
60
60
  allowOverwrite: true,
61
61
  bundle: false,
62
- plugins: [runRwBabelTransformsPlugin],
63
- outdir: rwjsPaths.api.dist,
62
+ plugins: [runCedarBabelTransformsPlugin],
63
+ outdir: cedarPaths.api.dist,
64
64
  // setting this to 'true' will generate an external sourcemap x.js.map
65
65
  // AND set the sourceMappingURL comment
66
66
  // (setting it to 'external' will ONLY generate the file, but won't add the comment)
@@ -53,18 +53,18 @@ const rebuildApi = async () => {
53
53
  return BUILD_CTX.rebuild();
54
54
  };
55
55
  const cleanApiBuild = async () => {
56
- const rwjsPaths = (0, import_project_config.getPaths)();
57
- return import_node_fs.default.promises.rm(rwjsPaths.api.dist, { recursive: true, force: true });
56
+ const cedarPaths = (0, import_project_config.getPaths)();
57
+ return import_node_fs.default.promises.rm(cedarPaths.api.dist, { recursive: true, force: true });
58
58
  };
59
- const runRwBabelTransformsPlugin = {
60
- name: "rw-esbuild-babel-transform",
59
+ const runCedarBabelTransformsPlugin = {
60
+ name: "cedar-esbuild-babel-transform",
61
61
  setup(build2) {
62
- const rwjsConfig = (0, import_project_config.getConfig)();
62
+ const cedarConfig = (0, import_project_config.getConfig)();
63
63
  build2.onLoad({ filter: /\.(js|ts|tsx|jsx)$/ }, async (args) => {
64
64
  const transformedCode = await (0, import_babel_config.transformWithBabel)(
65
65
  args.path,
66
66
  (0, import_babel_config.getApiSideBabelPlugins)({
67
- openTelemetry: rwjsConfig.experimental.opentelemetry.enabled && rwjsConfig.experimental.opentelemetry.wrapApi,
67
+ openTelemetry: cedarConfig.experimental.opentelemetry.enabled && cedarConfig.experimental.opentelemetry.wrapApi,
68
68
  projectIsEsm: (0, import_project_config.projectSideIsEsm)("api")
69
69
  })
70
70
  );
@@ -82,18 +82,18 @@ const transpileApi = async (files) => {
82
82
  return (0, import_esbuild.build)(getEsbuildOptions(files));
83
83
  };
84
84
  function getEsbuildOptions(files) {
85
- const rwjsPaths = (0, import_project_config.getPaths)();
85
+ const cedarPaths = (0, import_project_config.getPaths)();
86
86
  const format = (0, import_project_config.projectSideIsEsm)("api") ? "esm" : "cjs";
87
87
  return {
88
- absWorkingDir: rwjsPaths.api.base,
88
+ absWorkingDir: cedarPaths.api.base,
89
89
  entryPoints: files,
90
90
  platform: "node",
91
91
  target: "node20",
92
92
  format,
93
93
  allowOverwrite: true,
94
94
  bundle: false,
95
- plugins: [runRwBabelTransformsPlugin],
96
- outdir: rwjsPaths.api.dist,
95
+ plugins: [runCedarBabelTransformsPlugin],
96
+ outdir: cedarPaths.api.dist,
97
97
  // setting this to 'true' will generate an external sourcemap x.js.map
98
98
  // AND set the sourceMappingURL comment
99
99
  // (setting it to 'external' will ONLY generate the file, but won't add the comment)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/internal",
3
- "version": "2.5.0",
3
+ "version": "2.5.1-next.27+4a00a5632",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/cedarjs/cedar.git",
@@ -135,15 +135,15 @@
135
135
  },
136
136
  "dependencies": {
137
137
  "@babel/core": "^7.26.10",
138
- "@babel/parser": "7.28.6",
138
+ "@babel/parser": "7.29.0",
139
139
  "@babel/plugin-transform-react-jsx": "7.28.6",
140
140
  "@babel/plugin-transform-typescript": "^7.26.8",
141
- "@babel/runtime-corejs3": "7.28.6",
142
- "@babel/traverse": "7.28.6",
143
- "@cedarjs/babel-config": "2.5.0",
144
- "@cedarjs/graphql-server": "2.5.0",
145
- "@cedarjs/project-config": "2.5.0",
146
- "@cedarjs/router": "2.5.0",
141
+ "@babel/runtime-corejs3": "7.29.0",
142
+ "@babel/traverse": "7.29.0",
143
+ "@cedarjs/babel-config": "2.5.1-next.27+4a00a5632",
144
+ "@cedarjs/graphql-server": "2.5.1-next.27+4a00a5632",
145
+ "@cedarjs/project-config": "2.5.1-next.27+4a00a5632",
146
+ "@cedarjs/router": "2.5.1-next.27+4a00a5632",
147
147
  "@graphql-codegen/add": "4.0.1",
148
148
  "@graphql-codegen/cli": "3.3.1",
149
149
  "@graphql-codegen/client-preset": "4.8.3",
@@ -168,14 +168,14 @@
168
168
  "rimraf": "6.1.2",
169
169
  "source-map": "0.7.6",
170
170
  "string-env-interpolation": "1.0.1",
171
- "systeminformation": "5.30.6",
171
+ "systeminformation": "5.30.7",
172
172
  "termi-link": "1.1.0",
173
173
  "ts-node": "10.9.2",
174
174
  "typescript": "5.9.3"
175
175
  },
176
176
  "devDependencies": {
177
177
  "@arethetypeswrong/cli": "0.18.2",
178
- "@cedarjs/framework-tools": "0.0.0",
178
+ "@cedarjs/framework-tools": "2.5.1-next.27",
179
179
  "concurrently": "9.2.1",
180
180
  "graphql-tag": "2.12.6",
181
181
  "publint": "0.3.17",
@@ -185,5 +185,5 @@
185
185
  "publishConfig": {
186
186
  "access": "public"
187
187
  },
188
- "gitHead": "42e3c32b60325fcab386d1816401a8451f910121"
188
+ "gitHead": "4a00a56324db4db5db1559e21850f4d9b5856b52"
189
189
  }