@powerhousedao/codegen 6.0.0-dev.26 → 6.0.0-dev.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/src/file-builders/boilerplate/package.json.js +1 -1
- package/dist/src/file-builders/boilerplate/package.json.js.map +1 -1
- package/dist/src/templates/boilerplate/powerhouse.config.json.js +2 -2
- package/dist/src/templates/boilerplate/powerhouse.config.json.js.map +1 -1
- package/dist/src/utils/constants.d.ts +0 -2
- package/dist/src/utils/constants.d.ts.map +1 -1
- package/dist/src/utils/constants.js +0 -18
- package/dist/src/utils/constants.js.map +1 -1
- package/dist/src/utils/format-with-prettier.d.ts.map +1 -1
- package/dist/src/utils/format-with-prettier.js +1 -1
- package/dist/src/utils/format-with-prettier.js.map +1 -1
- package/dist/src/utils/index.d.ts +0 -2
- package/dist/src/utils/index.d.ts.map +1 -1
- package/dist/src/utils/index.js +0 -2
- package/dist/src/utils/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -7
- package/dist/src/file-builders/boilerplate/package-json-versions.test.d.ts +0 -2
- package/dist/src/file-builders/boilerplate/package-json-versions.test.d.ts.map +0 -1
- package/dist/src/file-builders/boilerplate/package-json-versions.test.js +0 -34
- package/dist/src/file-builders/boilerplate/package-json-versions.test.js.map +0 -1
- package/dist/src/utils/dependencies.d.ts +0 -33
- package/dist/src/utils/dependencies.d.ts.map +0 -1
- package/dist/src/utils/dependencies.js +0 -97
- package/dist/src/utils/dependencies.js.map +0 -1
- package/dist/src/utils/spawn-async.d.ts +0 -5
- package/dist/src/utils/spawn-async.d.ts.map +0 -1
- package/dist/src/utils/spawn-async.js +0 -29
- package/dist/src/utils/spawn-async.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { packageJsonTemplate } from "@powerhousedao/codegen/templates";
|
|
2
|
-
import { makeVersionedDependencies, VERSIONED_DEPENDENCIES, VERSIONED_DEV_DEPENDENCIES, } from "@powerhousedao/
|
|
2
|
+
import { makeVersionedDependencies, VERSIONED_DEPENDENCIES, VERSIONED_DEV_DEPENDENCIES, } from "@powerhousedao/common/clis";
|
|
3
3
|
export async function buildBoilerplatePackageJson(args) {
|
|
4
4
|
const { name, tag, version } = args;
|
|
5
5
|
const versionedDependencies = await makeVersionedDependencies({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package.json.js","sourceRoot":"","sources":["../../../../src/file-builders/boilerplate/package.json.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EACL,yBAAyB,EACzB,sBAAsB,EACtB,0BAA0B,GAC3B,MAAM,
|
|
1
|
+
{"version":3,"file":"package.json.js","sourceRoot":"","sources":["../../../../src/file-builders/boilerplate/package.json.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EACL,yBAAyB,EACzB,sBAAsB,EACtB,0BAA0B,GAC3B,MAAM,4BAA4B,CAAC;AAEpC,MAAM,CAAC,KAAK,UAAU,2BAA2B,CAAC,IAIjD;IACC,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;IACpC,MAAM,qBAAqB,GAAG,MAAM,yBAAyB,CAAC;QAC5D,KAAK,EAAE,sBAAsB;QAC7B,GAAG;QACH,OAAO;KACR,CAAC,CAAC;IACH,MAAM,wBAAwB,GAAG,MAAM,yBAAyB,CAAC;QAC/D,KAAK,EAAE,0BAA0B;QACjC,GAAG;QACH,OAAO;KACR,CAAC,CAAC;IAEH,MAAM,QAAQ,GAAG,mBAAmB,CAClC,IAAI,EACJ,qBAAqB,EACrB,wBAAwB,CACzB,CAAC;IAEF,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { parsePackageVersion } from "@powerhousedao/common/clis";
|
|
1
2
|
import { json } from "@tmpl/core";
|
|
2
|
-
import { getPackageVersion } from "@powerhousedao/codegen/utils";
|
|
3
3
|
const vetraPackageTemplate = (packageVersion) => json `
|
|
4
4
|
{
|
|
5
5
|
"packageName": "@powerhousedao/vetra",
|
|
@@ -20,7 +20,7 @@ function makeVetraConfigField(vetraDriveUrl) {
|
|
|
20
20
|
`.raw;
|
|
21
21
|
}
|
|
22
22
|
export async function buildPowerhouseConfigTemplate(args) {
|
|
23
|
-
const vetraPackageVersion = await
|
|
23
|
+
const vetraPackageVersion = await parsePackageVersion({
|
|
24
24
|
name: "@powerhousedao/vetra",
|
|
25
25
|
...args,
|
|
26
26
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"powerhouse.config.json.js","sourceRoot":"","sources":["../../../../src/templates/boilerplate/powerhouse.config.json.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"powerhouse.config.json.js","sourceRoot":"","sources":["../../../../src/templates/boilerplate/powerhouse.config.json.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC,MAAM,oBAAoB,GAAG,CAAC,cAAsB,EAAE,EAAE,CACtD,IAAI,CAAA;;;gBAGU,cAAc;;;CAG7B,CAAC,GAAG,CAAC;AAEN,SAAS,oBAAoB,CAAC,aAAiC;IAC7D,IAAI,CAAC,aAAa;QAAE,OAAO,EAAE,CAAC;IAC9B,MAAM,OAAO,GAAG,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC;IACrD,OAAO,IAAI,CAAA;;;kBAGK,OAAO;mBACN,aAAa;;CAE/B,CAAC,GAAG,CAAC;AACN,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,6BAA6B,CAAC,IAInD;IACC,MAAM,mBAAmB,GAAG,MAAM,mBAAmB,CAAC;QACpD,IAAI,EAAE,sBAAsB;QAC5B,GAAG,IAAI;KACR,CAAC,CAAC;IACH,MAAM,gBAAgB,GAAG,oBAAoB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAChE,OAAO,IAAI,CAAA;;;;;;;;;;;;;MAaP,oBAAoB,CAAC,mBAAmB,CAAC;KAC1C,gBAAgB;;CAEpB,CAAC,GAAG,CAAC;AACN,CAAC"}
|
|
@@ -8,6 +8,4 @@ export declare const documentModelDocumentTypeMetadata: {
|
|
|
8
8
|
readonly documentModelDirName: "document-model";
|
|
9
9
|
readonly documentModelImportPath: "document-model";
|
|
10
10
|
};
|
|
11
|
-
export declare const VERSIONED_DEPENDENCIES: string[];
|
|
12
|
-
export declare const VERSIONED_DEV_DEPENDENCIES: string[];
|
|
13
11
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/utils/constants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,iCAAiC;;;;;CAKpC,CAAC
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/utils/constants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,iCAAiC;;;;;CAKpC,CAAC"}
|
|
@@ -8,22 +8,4 @@ export const documentModelDocumentTypeMetadata = {
|
|
|
8
8
|
documentModelDirName: "document-model",
|
|
9
9
|
documentModelImportPath: "document-model",
|
|
10
10
|
};
|
|
11
|
-
export const VERSIONED_DEPENDENCIES = [
|
|
12
|
-
"@powerhousedao/common",
|
|
13
|
-
"@powerhousedao/design-system",
|
|
14
|
-
"@powerhousedao/vetra",
|
|
15
|
-
"@powerhousedao/builder-tools",
|
|
16
|
-
"document-model",
|
|
17
|
-
];
|
|
18
|
-
export const VERSIONED_DEV_DEPENDENCIES = [
|
|
19
|
-
"@powerhousedao/codegen",
|
|
20
|
-
"@powerhousedao/config",
|
|
21
|
-
"@powerhousedao/ph-cli",
|
|
22
|
-
"@powerhousedao/reactor-api",
|
|
23
|
-
"@powerhousedao/reactor-browser",
|
|
24
|
-
"@powerhousedao/reactor-local",
|
|
25
|
-
"@powerhousedao/switchboard",
|
|
26
|
-
"@powerhousedao/connect",
|
|
27
|
-
"document-drive",
|
|
28
|
-
];
|
|
29
11
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/utils/constants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAG;IAC/C,eAAe,EAAE,2BAA2B;IAC5C,6BAA6B,EAAE,uBAAuB;IACtD,oBAAoB,EAAE,gBAAgB;IACtC,uBAAuB,EAAE,gBAAgB;CACjC,CAAC
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/utils/constants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAG;IAC/C,eAAe,EAAE,2BAA2B;IAC5C,6BAA6B,EAAE,uBAAuB;IACtD,oBAAoB,EAAE,gBAAgB;IACtC,uBAAuB,EAAE,gBAAgB;CACjC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format-with-prettier.d.ts","sourceRoot":"","sources":["../../../src/utils/format-with-prettier.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"format-with-prettier.d.ts","sourceRoot":"","sources":["../../../src/utils/format-with-prettier.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,iGAAiG;AACjG,wBAAgB,4BAA4B,CAAC,UAAU,EAAE,UAAU,QAalE;AAED,wBAAsB,WAAW,kBAEhC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { spawnAsync } from "@powerhousedao/common/clis";
|
|
1
2
|
import { format } from "prettier";
|
|
2
|
-
import { spawnAsync } from "./spawn-async.js";
|
|
3
3
|
/** Formats the text of a ts-morph source file with prettier before writing the text to memory */
|
|
4
4
|
export function formatSourceFileWithPrettier(sourceFile) {
|
|
5
5
|
const sourceText = sourceFile.getFullText();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format-with-prettier.js","sourceRoot":"","sources":["../../../src/utils/format-with-prettier.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"format-with-prettier.js","sourceRoot":"","sources":["../../../src/utils/format-with-prettier.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,iGAAiG;AACjG,MAAM,UAAU,4BAA4B,CAAC,UAAsB;IACjE,MAAM,UAAU,GAAG,UAAU,CAAC,WAAW,EAAE,CAAC;IAE5C,MAAM,CAAC,UAAU,EAAE;QACjB,MAAM,EAAE,YAAY;KACrB,CAAC;SACC,IAAI,CAAC,CAAC,aAAa,EAAE,EAAE;QACtB,UAAU,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC;QAC1C,UAAU,CAAC,QAAQ,EAAE,CAAC;IACxB,CAAC,CAAC;SACD,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;QACf,OAAO,CAAC,KAAK,CAAC,+BAA+B,EAAE,KAAK,CAAC,CAAC;IACxD,CAAC,CAAC,CAAC;AACP,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,WAAW;IAC/B,MAAM,UAAU,CAAC,UAAU,EAAE,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC,CAAC;AACjD,CAAC"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
export * from "./cli.js";
|
|
2
2
|
export * from "./constants.js";
|
|
3
|
-
export * from "./dependencies.js";
|
|
4
3
|
export * from "./document-type-metadata.js";
|
|
5
4
|
export * from "./format-with-prettier.js";
|
|
6
5
|
export * from "./mock.js";
|
|
7
6
|
export * from "./source-files.js";
|
|
8
|
-
export * from "./spawn-async.js";
|
|
9
7
|
export * from "./syntax-builders.js";
|
|
10
8
|
export * from "./syntax-getters.js";
|
|
11
9
|
export * from "./ts-morph-project.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC"}
|
package/dist/src/utils/index.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
export * from "./cli.js";
|
|
2
2
|
export * from "./constants.js";
|
|
3
|
-
export * from "./dependencies.js";
|
|
4
3
|
export * from "./document-type-metadata.js";
|
|
5
4
|
export * from "./format-with-prettier.js";
|
|
6
5
|
export * from "./mock.js";
|
|
7
6
|
export * from "./source-files.js";
|
|
8
|
-
export * from "./spawn-async.js";
|
|
9
7
|
export * from "./syntax-builders.js";
|
|
10
8
|
export * from "./syntax-getters.js";
|
|
11
9
|
export * from "./ts-morph-project.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC"}
|