joist-codegen 1.0.721 → 1.0.722

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.
@@ -7,7 +7,12 @@ function generateInitialEntityFile(meta) {
7
7
  const entityName = meta.entity.name;
8
8
  const codegenClass = (0, ts_poet_1.imp)(`${entityName}Codegen@./entities`);
9
9
  return (0, ts_poet_1.code) `
10
+ import { ${meta.entity.configConst.symbol} as config } from "./entities";
11
+
10
12
  export class ${entityName} extends ${codegenClass} {}
13
+
14
+ // remove once you have actual rules/hooks
15
+ config.placeholder();
11
16
  `;
12
17
  }
13
18
  exports.generateInitialEntityFile = generateInitialEntityFile;
@@ -1 +1 @@
1
- {"version":3,"file":"generateInitialEntityFile.js","sourceRoot":"","sources":["../src/generateInitialEntityFile.ts"],"names":[],"mappings":";;;AAAA,qCAA0C;AAG1C,gFAAgF;AAChF,SAAgB,yBAAyB,CAAC,IAAsB;IAC9D,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;IACpC,MAAM,YAAY,GAAG,IAAA,aAAG,EAAC,GAAG,UAAU,oBAAoB,CAAC,CAAC;IAC5D,OAAO,IAAA,cAAI,EAAA;mBACM,UAAU,YAAY,YAAY;GAClD,CAAC;AACJ,CAAC;AAND,8DAMC"}
1
+ {"version":3,"file":"generateInitialEntityFile.js","sourceRoot":"","sources":["../src/generateInitialEntityFile.ts"],"names":[],"mappings":";;;AAAA,qCAA0C;AAG1C,gFAAgF;AAChF,SAAgB,yBAAyB,CAAC,IAAsB;IAC9D,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;IACpC,MAAM,YAAY,GAAG,IAAA,aAAG,EAAC,GAAG,UAAU,oBAAoB,CAAC,CAAC;IAC5D,OAAO,IAAA,cAAI,EAAA;eACE,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM;;mBAE1B,UAAU,YAAY,YAAY;;;;GAIlD,CAAC;AACJ,CAAC;AAXD,8DAWC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "joist-codegen",
3
- "version": "1.0.721",
3
+ "version": "1.0.722",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -19,7 +19,7 @@
19
19
  "@types/pluralize": "0.0.29",
20
20
  "change-case": "^4.1.1",
21
21
  "is-plain-object": "^3.0.1",
22
- "joist-utils": "1.0.721",
22
+ "joist-utils": "1.0.722",
23
23
  "knex": "^0.95.9",
24
24
  "pg": "^8.7.1",
25
25
  "pg-structure": "^7.13.0",