@powerhousedao/codegen 6.0.0-dev.104 → 6.0.0-dev.106
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/src/codegen/__tests__/generate-drive-editor.test.js +1 -1
- package/dist/src/codegen/__tests__/generate-drive-editor.test.js.map +1 -1
- package/dist/src/codegen/__tests__/generate-editor.test.js +1 -1
- package/dist/src/codegen/__tests__/generate-editor.test.js.map +1 -1
- package/dist/src/codegen/__tests__/generate-manifest.test.js +2 -2
- package/dist/src/codegen/__tests__/generate-manifest.test.js.map +1 -1
- package/dist/src/codegen/generate.d.ts +1 -1
- package/dist/src/codegen/generate.d.ts.map +1 -1
- package/dist/src/codegen/generate.js +1 -1
- package/dist/src/codegen/generate.js.map +1 -1
- package/dist/src/codegen/graphql.d.ts +1 -1
- package/dist/src/codegen/graphql.d.ts.map +1 -1
- package/dist/src/codegen/hygen.d.ts +1 -1
- package/dist/src/codegen/hygen.d.ts.map +1 -1
- package/dist/src/codegen/utils.d.ts +1 -1
- package/dist/src/codegen/utils.d.ts.map +1 -1
- package/dist/src/codegen/utils.js +1 -1
- package/dist/src/codegen/utils.js.map +1 -1
- package/dist/src/file-builders/boilerplate/package.json.js +1 -1
- package/dist/src/file-builders/document-model/document-model.js +1 -1
- package/dist/src/file-builders/document-model/document-model.js.map +1 -1
- package/dist/src/file-builders/document-model/migrate-legacy.js +1 -1
- package/dist/src/file-builders/document-model/upgrades-dir.js +2 -2
- package/dist/src/file-builders/document-model/upgrades-dir.js.map +1 -1
- package/dist/src/file-builders/types.d.ts +1 -1
- package/dist/src/file-builders/types.d.ts.map +1 -1
- package/dist/src/name-builders/get-variable-names.d.ts +3 -3
- package/dist/src/name-builders/get-variable-names.d.ts.map +1 -1
- package/dist/src/name-builders/get-variable-names.js.map +1 -1
- package/dist/src/templates/boilerplate/AGENTS.md.js +1 -1
- package/dist/src/templates/boilerplate/document-models/document-models.js +1 -1
- package/dist/src/templates/boilerplate/document-models/upgrade-manifests.js +1 -1
- package/dist/src/templates/boilerplate/editors/editors.js +1 -1
- package/dist/src/templates/boilerplate/index.js +1 -1
- package/dist/src/templates/boilerplate/powerhouse.config.json.js +1 -1
- package/dist/src/templates/document-editor/module.js +1 -1
- package/dist/src/templates/document-model/actions.js +1 -1
- package/dist/src/templates/document-model/gen/controller.js +1 -1
- package/dist/src/templates/document-model/gen/document-schema.js +1 -1
- package/dist/src/templates/document-model/gen/modules/creators.js +1 -1
- package/dist/src/templates/document-model/gen/ph-factories.js +4 -4
- package/dist/src/templates/document-model/gen/reducer.js +2 -2
- package/dist/src/templates/document-model/gen/utils.d.ts.map +1 -1
- package/dist/src/templates/document-model/gen/utils.js +2 -10
- package/dist/src/templates/document-model/gen/utils.js.map +1 -1
- package/dist/src/templates/document-model/module.d.ts.map +1 -1
- package/dist/src/templates/document-model/module.js +2 -3
- package/dist/src/templates/document-model/module.js.map +1 -1
- package/dist/src/templates/document-model/upgrades/upgrade-manifest.js +1 -1
- package/dist/src/templates/document-model/upgrades/upgrade-transition.js +1 -1
- package/dist/src/templates/document-model/utils.js +1 -1
- package/dist/src/templates/drive-editor/components/DriveExplorer.js +1 -1
- package/dist/src/templates/drive-editor/components/FolderTree.js +1 -1
- package/dist/src/templates/drive-editor/editor.js +1 -1
- package/dist/src/templates/processors/analytics/factory.js +1 -1
- package/dist/src/templates/processors/factory.js +1 -1
- package/dist/src/templates/processors/relational-db/factory.js +1 -1
- package/dist/src/templates/processors/relational-db/index.js +1 -1
- package/dist/src/ts-morph-generator/core/GenerationContext.d.ts +1 -1
- package/dist/src/ts-morph-generator/core/GenerationContext.d.ts.map +1 -1
- package/dist/src/ts-morph-generator/core/TSMorphCodeGenerator.d.ts +1 -1
- package/dist/src/ts-morph-generator/core/TSMorphCodeGenerator.d.ts.map +1 -1
- package/dist/src/utils/format-with-prettier.js +1 -1
- package/dist/src/utils/validation.d.ts +1 -1
- package/dist/src/utils/validation.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/vitest.config.d.ts.map +1 -1
- package/dist/vitest.config.js +2 -0
- package/dist/vitest.config.js.map +1 -1
- package/package.json +10 -9
|
@@ -7,18 +7,18 @@ import type {
|
|
|
7
7
|
PHAuthState,
|
|
8
8
|
PHDocumentState,
|
|
9
9
|
PHBaseState,
|
|
10
|
-
} from "document-model";
|
|
10
|
+
} from "@powerhousedao/shared/document-model";
|
|
11
11
|
import {
|
|
12
12
|
createBaseState,
|
|
13
13
|
defaultBaseState,
|
|
14
|
-
} from "document-model
|
|
14
|
+
} from "@powerhousedao/shared/document-model";
|
|
15
15
|
import type {
|
|
16
16
|
${v.phDocumentTypeName},
|
|
17
17
|
${v.localStateName},
|
|
18
18
|
${v.globalStateName},
|
|
19
19
|
${v.phStateName},
|
|
20
20
|
} from "./types.js";
|
|
21
|
-
import {
|
|
21
|
+
import { utils } from "./utils.js";
|
|
22
22
|
|
|
23
23
|
export function defaultGlobalState(): ${v.globalStateName} {
|
|
24
24
|
return ${v.initialGlobalState};
|
|
@@ -79,7 +79,7 @@ export function create${v.phDocumentTypeName}(
|
|
|
79
79
|
local?: Partial<${v.localStateName}>;
|
|
80
80
|
}>,
|
|
81
81
|
): ${v.phDocumentTypeName} {
|
|
82
|
-
const document = createDocument(
|
|
82
|
+
const document = utils.createDocument(
|
|
83
83
|
state ? createState(
|
|
84
84
|
createBaseState(state.auth, state.document),
|
|
85
85
|
state.global,
|
|
@@ -81,8 +81,8 @@ export const documentModelGenReducerFileTemplate = (v) => ts `
|
|
|
81
81
|
// TODO: remove eslint-disable rules once refactor is done
|
|
82
82
|
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
|
83
83
|
/* eslint-disable @typescript-eslint/no-unsafe-argument */
|
|
84
|
-
import type { StateReducer } from "document-model";
|
|
85
|
-
import { isDocumentAction, createReducer } from "document-model
|
|
84
|
+
import type { StateReducer } from "@powerhousedao/shared/document-model";
|
|
85
|
+
import { isDocumentAction, createReducer } from "@powerhousedao/shared/document-model";
|
|
86
86
|
import type { ${v.phStateName} } from "${v.versionedDocumentModelPackageImportPath}";
|
|
87
87
|
|
|
88
88
|
${makeModulesOperationsImports(v.modules, v.camelCaseDocumentType)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/templates/document-model/gen/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AAGxF,eAAO,MAAM,6BAA6B,GAAI,GAAG,2BAA2B,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/templates/document-model/gen/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AAGxF,eAAO,MAAM,6BAA6B,GAAI,GAAG,2BAA2B,WAmEvE,CAAC"}
|
|
@@ -2,14 +2,14 @@ import { ts } from "@tmpl/core";
|
|
|
2
2
|
export const documentModelGenUtilsTemplate = (v) => ts `
|
|
3
3
|
import type {
|
|
4
4
|
DocumentModelUtils,
|
|
5
|
-
} from "document-model";
|
|
5
|
+
} from "@powerhousedao/shared/document-model";
|
|
6
6
|
import {
|
|
7
7
|
baseCreateDocument,
|
|
8
8
|
baseSaveToFileHandle,
|
|
9
9
|
baseLoadFromInput,
|
|
10
10
|
defaultBaseState,
|
|
11
11
|
generateId,
|
|
12
|
-
} from
|
|
12
|
+
} from "document-model";
|
|
13
13
|
import type {
|
|
14
14
|
${v.globalStateName},
|
|
15
15
|
${v.localStateName}
|
|
@@ -65,13 +65,5 @@ export const utils: DocumentModelUtils<${v.phStateName}> = {
|
|
|
65
65
|
},
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
-
export const createDocument = utils.createDocument;
|
|
69
|
-
export const createState = utils.createState;
|
|
70
|
-
export const saveToFileHandle = utils.saveToFileHandle;
|
|
71
|
-
export const loadFromInput = utils.loadFromInput;
|
|
72
|
-
export const isStateOfType = utils.isStateOfType;
|
|
73
|
-
export const assertIsStateOfType = utils.assertIsStateOfType;
|
|
74
|
-
export const isDocumentOfType = utils.isDocumentOfType;
|
|
75
|
-
export const assertIsDocumentOfType = utils.assertIsDocumentOfType;
|
|
76
68
|
`.raw;
|
|
77
69
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../src/templates/document-model/gen/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,YAAY,CAAC;AAEhC,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAA8B,EAAE,EAAE,CAC9E,EAAE,CAAA;;;;;;;;;;;;IAYA,CAAC,CAAC,eAAe;IACjB,CAAC,CAAC,cAAc;;gBAEJ,CAAC,CAAC,WAAW;;WAElB,CAAC,CAAC,wBAAwB;;IAEjC,CAAC,CAAC,8BAA8B;IAChC,CAAC,CAAC,oCAAoC;IACtC,CAAC,CAAC,2BAA2B;IAC7B,CAAC,CAAC,iCAAiC;;;mCAGJ,CAAC,CAAC,eAAe,MAAM,CAAC,CAAC,kBAAkB;kCAC5C,CAAC,CAAC,cAAc,MAAM,CAAC,CAAC,iBAAiB;;yCAElC,CAAC,CAAC,WAAW;sBAChC,CAAC,CAAC,aAAa;;;;;;;;;;yCAUI,CAAC,CAAC,wBAAwB;;;;;;;;;;;;;;iBAclD,CAAC,CAAC,2BAA2B;;;iBAG7B,CAAC,CAAC,iCAAiC;;;iBAGnC,CAAC,CAAC,8BAA8B;;;iBAGhC,CAAC,CAAC,oCAAoC
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../src/templates/document-model/gen/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,YAAY,CAAC;AAEhC,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAA8B,EAAE,EAAE,CAC9E,EAAE,CAAA;;;;;;;;;;;;IAYA,CAAC,CAAC,eAAe;IACjB,CAAC,CAAC,cAAc;;gBAEJ,CAAC,CAAC,WAAW;;WAElB,CAAC,CAAC,wBAAwB;;IAEjC,CAAC,CAAC,8BAA8B;IAChC,CAAC,CAAC,oCAAoC;IACtC,CAAC,CAAC,2BAA2B;IAC7B,CAAC,CAAC,iCAAiC;;;mCAGJ,CAAC,CAAC,eAAe,MAAM,CAAC,CAAC,kBAAkB;kCAC5C,CAAC,CAAC,cAAc,MAAM,CAAC,CAAC,iBAAiB;;yCAElC,CAAC,CAAC,WAAW;sBAChC,CAAC,CAAC,aAAa;;;;;;;;;;yCAUI,CAAC,CAAC,wBAAwB;;;;;;;;;;;;;;iBAclD,CAAC,CAAC,2BAA2B;;;iBAG7B,CAAC,CAAC,iCAAiC;;;iBAGnC,CAAC,CAAC,8BAA8B;;;iBAGhC,CAAC,CAAC,oCAAoC;;;;CAItD,CAAC,GAAG,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../src/templates/document-model/module.ts"],"names":[],"mappings":"AAEA,KAAK,mCAAmC,GAAG;IACzC,WAAW,EAAE,MAAM,CAAC;IACpB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AACF,wBAAgB,+BAA+B,CAAC,EAC9C,WAAW,EACX,sBAAsB,EACtB,OAAO,GACR,EAAE,mCAAmC,
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../src/templates/document-model/module.ts"],"names":[],"mappings":"AAEA,KAAK,mCAAmC,GAAG;IACzC,WAAW,EAAE,MAAM,CAAC;IACpB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AACF,wBAAgB,+BAA+B,CAAC,EAC9C,WAAW,EACX,sBAAsB,EACtB,OAAO,GACR,EAAE,mCAAmC,UAqBrC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ts } from "@tmpl/core";
|
|
2
2
|
export function documentModelModuleFileTemplate({ phStateName, pascalCaseDocumentType, version, }) {
|
|
3
3
|
const template = ts `
|
|
4
|
-
import type { DocumentModelModule } from "document-model";
|
|
5
|
-
import { createState } from "document-model";
|
|
6
|
-
import { defaultBaseState } from "document-model/core";
|
|
4
|
+
import type { DocumentModelModule } from "@powerhousedao/shared/document-model";
|
|
5
|
+
import { createState, defaultBaseState } from "@powerhousedao/shared/document-model";
|
|
7
6
|
import type { ${phStateName} } from "./gen/types.js";
|
|
8
7
|
import { documentModel } from "./gen/document-model.js";
|
|
9
8
|
import { reducer } from "./gen/reducer.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","sourceRoot":"","sources":["../../../../src/templates/document-model/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,YAAY,CAAC;AAOhC,MAAM,UAAU,+BAA+B,CAAC,EAC9C,WAAW,EACX,sBAAsB,EACtB,OAAO,GAC6B;IACpC,MAAM,QAAQ,GAAG,EAAE,CAAA
|
|
1
|
+
{"version":3,"file":"module.js","sourceRoot":"","sources":["../../../../src/templates/document-model/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,YAAY,CAAC;AAOhC,MAAM,UAAU,+BAA+B,CAAC,EAC9C,WAAW,EACX,sBAAsB,EACtB,OAAO,GAC6B;IACpC,MAAM,QAAQ,GAAG,EAAE,CAAA;;;kBAGH,WAAW;;;;;;sCAMS,sBAAsB;iBAC3C,sBAAsB,yBAAyB,WAAW;eAC5D,OAAO;;;;;;CAMrB,CAAC;IAEA,OAAO,QAAQ,CAAC,GAAG,CAAC;AACtB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ts } from "@tmpl/core";
|
|
2
2
|
export const upgradeManifestTemplate = (v) => ts `
|
|
3
|
-
import type { UpgradeManifest } from "document-model";
|
|
3
|
+
import type { UpgradeManifest } from "@powerhousedao/shared/document-model";
|
|
4
4
|
import { latestVersion, supportedVersions } from "./versions.js";
|
|
5
5
|
|
|
6
6
|
export const ${v.upgradeManifestName}: UpgradeManifest<typeof supportedVersions> = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ts } from "@tmpl/core";
|
|
2
2
|
export const upgradeTransitionTemplate = (v) => ts `
|
|
3
|
-
import type { Action, PHDocument, UpgradeTransition } from "document-model";
|
|
3
|
+
import type { Action, PHDocument, UpgradeTransition } from "@powerhousedao/shared/document-model";
|
|
4
4
|
import type { ${v.phStateName} as StateV${v.previousVersion} } from "${v.documentModelPackageImportPath}/v${v.previousVersion}";
|
|
5
5
|
import type { ${v.phStateName} as StateV${v.version} } from "${v.documentModelPackageImportPath}/v${v.version}";
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ts } from "@tmpl/core";
|
|
2
2
|
export const documentModelUtilsTemplate = ({ phStateName, pascalCaseDocumentType, }) => ts `
|
|
3
|
-
import type { DocumentModelUtils } from "document-model";
|
|
3
|
+
import type { DocumentModelUtils } from "@powerhousedao/shared/document-model";
|
|
4
4
|
import type { ${phStateName} } from "./gen/types.js";
|
|
5
5
|
import { utils as genUtils } from "./gen/utils.js";
|
|
6
6
|
import * as customUtils from "./src/utils.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { tsx } from "@tmpl/core";
|
|
2
2
|
export const driveExplorerFileTemplate = tsx `
|
|
3
|
-
import type { EditorProps } from "document-model";
|
|
3
|
+
import type { EditorProps } from "@powerhousedao/shared/document-model";
|
|
4
4
|
import { FolderTree } from "./FolderTree.js";
|
|
5
5
|
import { DriveContents } from "./DriveContents.js";
|
|
6
6
|
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
useSelectedDrive,
|
|
12
12
|
useSelectedNode,
|
|
13
13
|
} from "@powerhousedao/reactor-browser";
|
|
14
|
-
import type { Node } from "document-drive";
|
|
14
|
+
import type { Node } from "@powerhousedao/shared/document-drive";
|
|
15
15
|
import { useMemo } from "react";
|
|
16
16
|
|
|
17
17
|
function buildSidebarNodes(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { tsx } from "@tmpl/core";
|
|
2
2
|
export const driveEditorEditorFileTemplate = () => tsx `
|
|
3
3
|
import { useSetPHDriveEditorConfig } from "@powerhousedao/reactor-browser";
|
|
4
|
-
import type { EditorProps } from "document-model";
|
|
4
|
+
import type { EditorProps } from "@powerhousedao/shared/document-model";
|
|
5
5
|
import { DriveExplorer } from "./components/DriveExplorer.js";
|
|
6
6
|
import { editorConfig } from "./config.js";
|
|
7
7
|
|
|
@@ -5,7 +5,7 @@ import type {
|
|
|
5
5
|
ProcessorRecord,
|
|
6
6
|
IProcessorHostModule
|
|
7
7
|
} from "@powerhousedao/reactor-browser";
|
|
8
|
-
import { type PHDocumentHeader } from "document-model";
|
|
8
|
+
import { type PHDocumentHeader } from "@powerhousedao/shared/document-model";
|
|
9
9
|
import type { ProcessorApp } from "@powerhousedao/common";
|
|
10
10
|
import { ${v.pascalCaseName}Processor } from "./index.js";
|
|
11
11
|
|
|
@@ -10,7 +10,7 @@ import type {
|
|
|
10
10
|
IProcessorHostModule,
|
|
11
11
|
ProcessorFactory,
|
|
12
12
|
} from "@powerhousedao/reactor-browser";
|
|
13
|
-
import type { PHDocumentHeader } from "document-model";
|
|
13
|
+
import type { PHDocumentHeader } from "@powerhousedao/shared/document-model";
|
|
14
14
|
|
|
15
15
|
export const processorFactory = async (module: IProcessorHostModule) => {
|
|
16
16
|
const factories: ProcessorFactory[] = [];
|
|
@@ -6,7 +6,7 @@ import type {
|
|
|
6
6
|
IProcessorHostModule,
|
|
7
7
|
ProcessorFilter
|
|
8
8
|
} from "@powerhousedao/reactor-browser"
|
|
9
|
-
import type { PHDocumentHeader } from "document-model";
|
|
9
|
+
import type { PHDocumentHeader } from "@powerhousedao/shared/document-model";
|
|
10
10
|
import type { ProcessorApp } from "@powerhousedao/common";
|
|
11
11
|
import { ${v.pascalCaseName}Processor } from "./index.js";
|
|
12
12
|
|
|
@@ -2,7 +2,7 @@ import { ts } from "@tmpl/core";
|
|
|
2
2
|
const defaultNamespaceComment = '// Default namespace: `${this.name}_${driveId.replaceAll("-", "_")}`';
|
|
3
3
|
export const relationalDbIndexTemplate = (v) => ts `
|
|
4
4
|
import { RelationalDbProcessor } from "@powerhousedao/reactor-browser";
|
|
5
|
-
import type { OperationWithContext } from "document-model";
|
|
5
|
+
import type { OperationWithContext } from "@powerhousedao/shared/document-model";
|
|
6
6
|
import { up } from "./migrations.js";
|
|
7
7
|
import type { DB } from "./schema.js";
|
|
8
8
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DocumentModelGlobalState, ModuleSpecification, OperationErrorSpecification } from "document-model";
|
|
1
|
+
import type { DocumentModelGlobalState, ModuleSpecification, OperationErrorSpecification } from "@powerhousedao/shared/document-model";
|
|
2
2
|
import type { Project } from "ts-morph";
|
|
3
3
|
export type CodegenOperation = {
|
|
4
4
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenerationContext.d.ts","sourceRoot":"","sources":["../../../../src/ts-morph-generator/core/GenerationContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EACxB,mBAAmB,EACnB,2BAA2B,EAC5B,MAAM,
|
|
1
|
+
{"version":3,"file":"GenerationContext.d.ts","sourceRoot":"","sources":["../../../../src/ts-morph-generator/core/GenerationContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EACxB,mBAAmB,EACnB,2BAA2B,EAC5B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAExC,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,QAAQ,EAAE;QACR,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,EAAE,MAAM,CAAC;KACf,EAAE,CAAC;IACJ,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,OAAO,GAAG,SAAS,CAAC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,2BAA2B,EAAE,CAAC;CACxC,CAAC;AAEF,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,wBAAwB,CAAC;IACnC,MAAM,EAAE,mBAAmB,CAAC;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,gBAAgB,EAAE,CAAC;IAC/B,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,WAAW,CAAC,EAAE,oBAAoB,CAAC;IACnC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DocumentModelGlobalState } from "document-model";
|
|
1
|
+
import type { DocumentModelGlobalState } from "@powerhousedao/shared/document-model";
|
|
2
2
|
import type { CodeGeneratorOptions } from "./GenerationContext.js";
|
|
3
3
|
export declare class TSMorphCodeGenerator {
|
|
4
4
|
private rootDir;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TSMorphCodeGenerator.d.ts","sourceRoot":"","sources":["../../../../src/ts-morph-generator/core/TSMorphCodeGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EAEzB,MAAM,
|
|
1
|
+
{"version":3,"file":"TSMorphCodeGenerator.d.ts","sourceRoot":"","sources":["../../../../src/ts-morph-generator/core/TSMorphCodeGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EAEzB,MAAM,sCAAsC,CAAC;AAO9C,OAAO,KAAK,EACV,oBAAoB,EAIrB,MAAM,wBAAwB,CAAC;AAGhC,qBAAa,oBAAoB;IAY7B,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,SAAS;IACjB,OAAO,CAAC,WAAW;IAbrB,OAAO,CAAC,OAAO,CAAiB;IAChC,OAAO,CAAC,UAAU,CAAoC;IACtD,OAAO,CAAC,WAAW,CAKjB;IACF,OAAO,CAAC,WAAW,CAAS;gBAGlB,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,wBAAwB,EAAE,EACrC,WAAW,EAAE,MAAM,EAC3B,OAAO,GAAE,oBAA8D;IAYzE,OAAO,CAAC,eAAe;IAYjB,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;IAKjC,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;YAMpB,gBAAgB;YAwBhB,YAAY;IAiC1B,OAAO,CAAC,uBAAuB;YAwBjB,qBAAqB;CAQpC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { spawnAsync } from "@powerhousedao/
|
|
1
|
+
import { spawnAsync } from "@powerhousedao/shared/clis";
|
|
2
2
|
import { format } from "prettier";
|
|
3
3
|
/** Formats the text of a ts-morph source file with prettier before writing the text to memory */
|
|
4
4
|
export async function formatSourceFileWithPrettier(sourceFile) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../src/utils/validation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../src/utils/validation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAErF;;GAEG;AACH,MAAM,WAAW,kCAAkC;IACjD,wEAAwE;IACxE,OAAO,EAAE,OAAO,CAAC;IACjB,6DAA6D;IAC7D,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,kBAAkB,EAAE,wBAAwB,GAC3C,kCAAkC,CAiMpC"}
|