@cedarjs/record 2.2.0 → 2.2.1-next.21

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.
@@ -30,7 +30,7 @@ __export(parse_exports, {
30
30
  parseDatamodel: () => parseDatamodel
31
31
  });
32
32
  module.exports = __toCommonJS(parse_exports);
33
- var import_fs = __toESM(require("fs"), 1);
33
+ var import_node_fs = __toESM(require("node:fs"), 1);
34
34
  var import_path = __toESM(require("path"), 1);
35
35
  var import_internals = require("@prisma/internals");
36
36
  var esbuild = __toESM(require("esbuild"), 1);
@@ -58,10 +58,10 @@ const parseDatamodel = async () => {
58
58
  const datamodel = schema.datamodel;
59
59
  try {
60
60
  const dir = import_path.default.dirname(DATAMODEL_PATH);
61
- if (!import_fs.default.existsSync(dir)) {
62
- import_fs.default.mkdirSync(dir, { recursive: true });
61
+ if (!import_node_fs.default.existsSync(dir)) {
62
+ import_node_fs.default.mkdirSync(dir, { recursive: true });
63
63
  }
64
- import_fs.default.writeFileSync(
64
+ import_node_fs.default.writeFileSync(
65
65
  DATAMODEL_PATH,
66
66
  esbuild.transformSync(JSON.stringify(datamodel, null, 2), {
67
67
  loader: "json",
@@ -73,7 +73,7 @@ const parseDatamodel = async () => {
73
73
  } catch (e) {
74
74
  console.error("Error writing datamodel to", DATAMODEL_PATH);
75
75
  }
76
- const modelNames = import_fs.default.readdirSync(MODELS_PATH).map((file) => {
76
+ const modelNames = import_node_fs.default.readdirSync(MODELS_PATH).map((file) => {
77
77
  if (file !== "index.js" && file !== "datamodel.js") {
78
78
  return file.split(".")[0];
79
79
  }
@@ -110,7 +110,7 @@ const parseDatamodel = async () => {
110
110
  indexLines.push("");
111
111
  indexLines.push(`export { ${modelNames.join(", ")} }`);
112
112
  indexLines.push("");
113
- import_fs.default.writeFileSync(MODELS_INDEX_PATH, indexLines.join("\n"));
113
+ import_node_fs.default.writeFileSync(MODELS_INDEX_PATH, indexLines.join("\n"));
114
114
  console.info(` Wrote ${MODELS_INDEX_PATH}
115
115
  `);
116
116
  });
@@ -1,4 +1,4 @@
1
- import fs from "fs";
1
+ import fs from "node:fs";
2
2
  import path from "path";
3
3
  import { getDMMF, getSchemaWithPath } from "@prisma/internals";
4
4
  import * as esbuild from "esbuild";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/record",
3
- "version": "2.2.0",
3
+ "version": "2.2.1-next.21+014660ad1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/cedarjs/cedar.git",
@@ -29,13 +29,13 @@
29
29
  "test:watch": "vitest watch"
30
30
  },
31
31
  "dependencies": {
32
- "@cedarjs/api": "2.2.0",
33
- "@cedarjs/project-config": "2.2.0",
32
+ "@cedarjs/api": "2.2.1-next.21+014660ad1",
33
+ "@cedarjs/project-config": "2.2.1-next.21+014660ad1",
34
34
  "@prisma/client": "6.19.1",
35
35
  "camelcase": "6.3.0"
36
36
  },
37
37
  "devDependencies": {
38
- "@cedarjs/framework-tools": "2.2.0",
38
+ "@cedarjs/framework-tools": "2.2.1-next.21",
39
39
  "@prisma/internals": "6.19.1",
40
40
  "esbuild": "0.27.2",
41
41
  "publint": "0.3.16",
@@ -45,5 +45,5 @@
45
45
  "publishConfig": {
46
46
  "access": "public"
47
47
  },
48
- "gitHead": "9a8306e575225c25573303a8c80c57b2ab09fbd5"
48
+ "gitHead": "014660ad1d93c58cd848e67a370bf4856cd64a11"
49
49
  }