@sequenceholdings/orm 0.1.3 → 2.0.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.
- package/README.md +53 -38
- package/dist/authoring.cjs +6 -1
- package/dist/authoring.cjs.map +1 -1
- package/dist/authoring.d.cts +2 -2
- package/dist/authoring.d.ts +2 -2
- package/dist/authoring.js +6 -1
- package/dist/authoring.js.map +1 -1
- package/dist/cli.cjs +96 -3
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +96 -3
- package/dist/cli.js.map +1 -1
- package/dist/compiler.cjs +6 -0
- package/dist/compiler.cjs.map +1 -1
- package/dist/compiler.js +6 -0
- package/dist/compiler.js.map +1 -1
- package/dist/index.cjs +6 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/predicate-v2.cjs +6 -0
- package/dist/predicate-v2.cjs.map +1 -1
- package/dist/predicate-v2.d.cts +3 -0
- package/dist/predicate-v2.d.ts +3 -0
- package/dist/predicate-v2.js +6 -0
- package/dist/predicate-v2.js.map +1 -1
- package/package.json +5 -3
- package/src/codegen-gql/preset.cjs +64 -0
- package/src/codegen-gql/server-fns.cjs +11 -6
- package/templates/orm-namespace/codegen.preset.cjs +17 -0
- package/templates/orm-namespace/codegen.ts +1 -1
- package/templates/orm-namespace/package.json +3 -0
- package/templates/orm-namespace/schema/tables.ts +1 -1
- package/templates/orm-namespace/sequence.config.ts +1 -1
package/dist/authoring.d.cts
CHANGED
|
@@ -491,8 +491,8 @@ declare const NAMESPACE_CONFIG_FILE = "sequence.config.ts";
|
|
|
491
491
|
declare const SCHEMA_DIR = "schema";
|
|
492
492
|
interface LoadNamespaceOptions {
|
|
493
493
|
/**
|
|
494
|
-
* Test/dev hook: absolute path that
|
|
495
|
-
* in consumer files resolve to (jiti
|
|
494
|
+
* Test/dev hook: absolute path that package-root and `/authoring` imports
|
|
495
|
+
* in consumer files resolve to (jiti aliases). Leave unset in production —
|
|
496
496
|
* the consumer's own installed package resolves naturally.
|
|
497
497
|
*/
|
|
498
498
|
ormModulePath?: string;
|
package/dist/authoring.d.ts
CHANGED
|
@@ -491,8 +491,8 @@ declare const NAMESPACE_CONFIG_FILE = "sequence.config.ts";
|
|
|
491
491
|
declare const SCHEMA_DIR = "schema";
|
|
492
492
|
interface LoadNamespaceOptions {
|
|
493
493
|
/**
|
|
494
|
-
* Test/dev hook: absolute path that
|
|
495
|
-
* in consumer files resolve to (jiti
|
|
494
|
+
* Test/dev hook: absolute path that package-root and `/authoring` imports
|
|
495
|
+
* in consumer files resolve to (jiti aliases). Leave unset in production —
|
|
496
496
|
* the consumer's own installed package resolves naturally.
|
|
497
497
|
*/
|
|
498
498
|
ormModulePath?: string;
|
package/dist/authoring.js
CHANGED
|
@@ -1682,7 +1682,12 @@ async function loadNamespaceFromDir(dir, options = {}) {
|
|
|
1682
1682
|
const jiti = createJiti(import.meta.url, {
|
|
1683
1683
|
interopDefault: true,
|
|
1684
1684
|
fsCache: false,
|
|
1685
|
-
...options.ormModulePath !== void 0 ? {
|
|
1685
|
+
...options.ormModulePath !== void 0 ? {
|
|
1686
|
+
alias: {
|
|
1687
|
+
"@sequenceholdings/orm": options.ormModulePath,
|
|
1688
|
+
"@sequenceholdings/orm/authoring": options.ormModulePath
|
|
1689
|
+
}
|
|
1690
|
+
} : {}
|
|
1686
1691
|
});
|
|
1687
1692
|
const context = beginAuthoringContext();
|
|
1688
1693
|
try {
|