@empire-builder-kit/create 1.0.0-beta.10

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/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 Gupta-Leary Technology Consulting LLC
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/NOTICE ADDED
@@ -0,0 +1,5 @@
1
+ Empire Builder Kit
2
+ Copyright 2026 Gupta-Leary Technology Consulting LLC
3
+
4
+ This product includes software developed by Gupta-Leary Technology Consulting
5
+ LLC and its contributors.
package/README.md ADDED
@@ -0,0 +1,18 @@
1
+ # @empire-builder-kit/create
2
+
3
+ The source-only bootstrap CLI for Empire Builder Kit v1.
4
+
5
+ ```bash
6
+ pnpm dlx @empire-builder-kit/create@next my-product
7
+ ```
8
+
9
+ The CLI delegates workspace generation to the same-version
10
+ `@empire-builder-kit/nx` preset. It writes an Nx workspace and the Standard
11
+ Foundation source, installs dependencies, and optionally initializes Git. It
12
+ does not authenticate to AWS or create cloud resources.
13
+
14
+ Use `--dry-run` to inspect the normalized plan and `--skip-git` to leave Git
15
+ initialization to another tool.
16
+
17
+ See the [quickstart](../../docs/quickstart.md) and
18
+ [Standard Foundation contract](../../docs/foundation.md).
package/bin/index.d.ts ADDED
@@ -0,0 +1,38 @@
1
+ #!/usr/bin/env node
2
+ import { type CreateWorkspaceOptions } from 'create-nx-workspace';
3
+ export declare const CREATE_COMMAND_NAME: "create-empire-builder-kit";
4
+ export declare const DEPENDENCY_INSTALL_ARGS: readonly ["install", "--no-frozen-lockfile"];
5
+ export declare const WORKSPACE_FORMAT_ARGS: readonly ["exec", "nx", "format:write", "--all"];
6
+ export declare function dependencyInstallEnvironment(environment?: NodeJS.ProcessEnv): NodeJS.ProcessEnv;
7
+ export interface CreateWorkspacePlan {
8
+ directory: string;
9
+ frameworkVersion: string;
10
+ name: string;
11
+ packageManager: 'pnpm';
12
+ preset: string;
13
+ skipGit: boolean;
14
+ writesCloudResources: false;
15
+ }
16
+ export interface ParsedCreateArguments {
17
+ directory?: string;
18
+ dryRun: boolean;
19
+ help: boolean;
20
+ skipGit: boolean;
21
+ }
22
+ export interface CreateCommandIO {
23
+ cwd: string;
24
+ stderr: (message: string) => void;
25
+ stdout: (message: string) => void;
26
+ }
27
+ type WorkspaceCreator = (preset: string | undefined, options: CreateWorkspaceOptions) => Promise<{
28
+ directory: string;
29
+ }>;
30
+ type DependencyInstaller = (directory: string) => Promise<void>;
31
+ type WorkspaceFinalizer = (directory: string) => Promise<void>;
32
+ export declare function pnpmExecutable(platform?: NodeJS.Platform): string;
33
+ export declare function finalizeWorkspaceOwnership(directory: string): Promise<void>;
34
+ export declare const createHelp: string;
35
+ export declare function parseCreateArguments(args: string[]): ParsedCreateArguments;
36
+ export declare function createWorkspacePlan(directory: string, cwd?: string, frameworkVersion?: string, skipGit?: boolean): CreateWorkspacePlan;
37
+ export declare function runCreateCommand(args: string[], io: CreateCommandIO, workspaceCreator?: WorkspaceCreator, dependencyInstaller?: DependencyInstaller, workspaceFinalizer?: WorkspaceFinalizer): Promise<number>;
38
+ export {};
package/bin/index.js ADDED
@@ -0,0 +1,239 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.createHelp = exports.WORKSPACE_FORMAT_ARGS = exports.DEPENDENCY_INSTALL_ARGS = exports.CREATE_COMMAND_NAME = void 0;
5
+ exports.dependencyInstallEnvironment = dependencyInstallEnvironment;
6
+ exports.pnpmExecutable = pnpmExecutable;
7
+ exports.finalizeWorkspaceOwnership = finalizeWorkspaceOwnership;
8
+ exports.parseCreateArguments = parseCreateArguments;
9
+ exports.createWorkspacePlan = createWorkspacePlan;
10
+ exports.runCreateCommand = runCreateCommand;
11
+ const tslib_1 = require("tslib");
12
+ const node_child_process_1 = require("node:child_process");
13
+ const node_crypto_1 = require("node:crypto");
14
+ const promises_1 = require("node:fs/promises");
15
+ const node_path_1 = require("node:path");
16
+ const create_nx_workspace_1 = require("create-nx-workspace");
17
+ exports.CREATE_COMMAND_NAME = 'create-empire-builder-kit';
18
+ exports.DEPENDENCY_INSTALL_ARGS = [
19
+ 'install',
20
+ '--no-frozen-lockfile',
21
+ ];
22
+ exports.WORKSPACE_FORMAT_ARGS = [
23
+ 'exec',
24
+ 'nx',
25
+ 'format:write',
26
+ '--all',
27
+ ];
28
+ function dependencyInstallEnvironment(environment = process.env) {
29
+ return Object.assign(Object.assign({}, environment), { CI: 'true' });
30
+ }
31
+ function pnpmExecutable(platform = process.platform) {
32
+ return platform === 'win32' ? 'pnpm.cmd' : 'pnpm';
33
+ }
34
+ function pointerSegments(pointer) {
35
+ if (!/^(?:\/(?:[^~/]|~[01])*)+$/.test(pointer)) {
36
+ throw new Error(`Generated workspace ownership has invalid JSON pointer ${pointer}.`);
37
+ }
38
+ return pointer
39
+ .slice(1)
40
+ .split('/')
41
+ .map((segment) => segment.replace(/~1/g, '/').replace(/~0/g, '~'));
42
+ }
43
+ function stableValue(value) {
44
+ if (Array.isArray(value))
45
+ return value.map(stableValue);
46
+ if (typeof value !== 'object' || value === null)
47
+ return value;
48
+ const record = value;
49
+ return Object.fromEntries(Object.keys(record)
50
+ .sort()
51
+ .map((key) => [key, stableValue(record[key])]));
52
+ }
53
+ function hashFinalizedOwnership(contents, managedJsonPointers) {
54
+ let input = contents;
55
+ if (managedJsonPointers !== undefined) {
56
+ if (!Array.isArray(managedJsonPointers) ||
57
+ managedJsonPointers.length === 0 ||
58
+ managedJsonPointers.some((pointer) => typeof pointer !== 'string')) {
59
+ throw new Error('Generated workspace ownership has invalid managedJsonPointers.');
60
+ }
61
+ const document = JSON.parse(contents);
62
+ const projection = [...managedJsonPointers].sort().map((pointer) => {
63
+ let current = document;
64
+ let exists = true;
65
+ for (const segment of pointerSegments(pointer)) {
66
+ if (typeof current !== 'object' ||
67
+ current === null ||
68
+ !Object.prototype.hasOwnProperty.call(current, segment)) {
69
+ exists = false;
70
+ break;
71
+ }
72
+ current = current[segment];
73
+ }
74
+ if (!exists) {
75
+ throw new Error(`Generated workspace JSON does not contain owned pointer ${pointer}.`);
76
+ }
77
+ return { exists: true, pointer, value: current };
78
+ });
79
+ input = JSON.stringify(stableValue(projection));
80
+ }
81
+ return (0, node_crypto_1.createHash)('sha256').update(input, 'utf8').digest('hex');
82
+ }
83
+ function finalizeWorkspaceOwnership(directory) {
84
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
85
+ const ownershipPath = (0, node_path_1.resolve)(directory, '.ebk/ownership.json');
86
+ const ownership = JSON.parse(yield (0, promises_1.readFile)(ownershipPath, 'utf8'));
87
+ if (ownership.kind !== 'workspace' || !Array.isArray(ownership.paths)) {
88
+ throw new Error('Generated workspace ownership metadata is incompatible.');
89
+ }
90
+ for (const entry of ownership.paths) {
91
+ if (typeof entry.path !== 'string' ||
92
+ entry.path.trim() === '' ||
93
+ entry.path.startsWith('/') ||
94
+ entry.path.startsWith('\\') ||
95
+ entry.path.split(/[\\/]/).includes('..')) {
96
+ throw new Error('Generated workspace ownership contains an invalid path.');
97
+ }
98
+ const contents = yield (0, promises_1.readFile)((0, node_path_1.resolve)(directory, entry.path), 'utf8');
99
+ entry.sha256 = hashFinalizedOwnership(contents, entry.managedJsonPointers);
100
+ }
101
+ yield (0, promises_1.writeFile)(ownershipPath, `${JSON.stringify(ownership, null, 2)}\n`);
102
+ });
103
+ }
104
+ function runPnpm(directory, args) {
105
+ return new Promise((resolveInstall, rejectInstall) => {
106
+ const child = (0, node_child_process_1.spawn)(pnpmExecutable(), [...args], {
107
+ cwd: directory,
108
+ env: dependencyInstallEnvironment(),
109
+ stdio: 'inherit',
110
+ });
111
+ child.on('error', rejectInstall);
112
+ child.on('exit', (code) => {
113
+ if (code === 0) {
114
+ resolveInstall();
115
+ }
116
+ else {
117
+ rejectInstall(new Error(`pnpm ${args.join(' ')} exited with status ${code !== null && code !== void 0 ? code : 'unknown'} in ${directory}.`));
118
+ }
119
+ });
120
+ });
121
+ }
122
+ function installDependencies(directory) {
123
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
124
+ yield runPnpm(directory, exports.DEPENDENCY_INSTALL_ARGS);
125
+ yield runPnpm(directory, exports.WORKSPACE_FORMAT_ARGS);
126
+ });
127
+ }
128
+ exports.createHelp = `Usage: ${exports.CREATE_COMMAND_NAME} <directory> [options]
129
+
130
+ Create an Empire Builder Kit v1 workspace with the Standard Foundation.
131
+
132
+ Options:
133
+ --dry-run Print the normalized creation plan without writing files
134
+ --skip-git Do not initialize a Git repository
135
+ -h, --help Show this help
136
+ `;
137
+ function parseCreateArguments(args) {
138
+ let directory;
139
+ let dryRun = false;
140
+ let help = false;
141
+ let skipGit = false;
142
+ for (const argument of args) {
143
+ if (argument === '--dry-run') {
144
+ dryRun = true;
145
+ continue;
146
+ }
147
+ if (argument === '--help' || argument === '-h') {
148
+ help = true;
149
+ continue;
150
+ }
151
+ if (argument === '--skip-git') {
152
+ skipGit = true;
153
+ continue;
154
+ }
155
+ if (argument.startsWith('-')) {
156
+ throw new Error(`Unknown option: ${argument}`);
157
+ }
158
+ if (directory) {
159
+ throw new Error('Only one workspace directory may be provided.');
160
+ }
161
+ directory = argument;
162
+ }
163
+ return { directory, dryRun, help, skipGit };
164
+ }
165
+ function packageVersion() {
166
+ const manifest = require('../package.json');
167
+ if (typeof manifest.version !== 'string') {
168
+ throw new Error('Unable to resolve the Empire Builder Kit package version.');
169
+ }
170
+ return manifest.version;
171
+ }
172
+ function createWorkspacePlan(directory, cwd = process.cwd(), frameworkVersion = packageVersion(), skipGit = false) {
173
+ const normalizedDirectory = (0, node_path_1.resolve)(cwd, directory);
174
+ const name = (0, node_path_1.basename)(normalizedDirectory);
175
+ if (!/^[a-z0-9][a-z0-9-]*$/.test(name)) {
176
+ throw new Error('Workspace name must use lowercase letters, numbers, and hyphens.');
177
+ }
178
+ return {
179
+ directory: normalizedDirectory,
180
+ frameworkVersion,
181
+ name,
182
+ packageManager: 'pnpm',
183
+ preset: `@empire-builder-kit/nx@${frameworkVersion}`,
184
+ skipGit,
185
+ writesCloudResources: false,
186
+ };
187
+ }
188
+ function runCreateCommand(args_1, io_1) {
189
+ return tslib_1.__awaiter(this, arguments, void 0, function* (args, io, workspaceCreator = create_nx_workspace_1.createWorkspace, dependencyInstaller = installDependencies, workspaceFinalizer = finalizeWorkspaceOwnership) {
190
+ try {
191
+ const parsed = parseCreateArguments(args);
192
+ if (parsed.help) {
193
+ io.stdout(exports.createHelp);
194
+ return 0;
195
+ }
196
+ if (!parsed.directory) {
197
+ throw new Error(`A workspace directory is required.\n\n${exports.createHelp}`);
198
+ }
199
+ const plan = createWorkspacePlan(parsed.directory, io.cwd, packageVersion(), parsed.skipGit);
200
+ if (parsed.dryRun) {
201
+ io.stdout(`${JSON.stringify(plan, null, 2)}\n`);
202
+ return 0;
203
+ }
204
+ const result = yield workspaceCreator(plan.preset, {
205
+ analytics: false,
206
+ defaultBase: 'main',
207
+ interactive: false,
208
+ name: plan.name,
209
+ neverConnectToCloud: true,
210
+ nxCloud: 'skip',
211
+ packageManager: plan.packageManager,
212
+ skipGit: plan.skipGit,
213
+ trustThirdPartyPreset: true,
214
+ workingDir: (0, node_path_1.dirname)(plan.directory),
215
+ });
216
+ yield dependencyInstaller(result.directory);
217
+ yield workspaceFinalizer(result.directory);
218
+ io.stdout(`Created ${plan.name} at ${result.directory}.\n`);
219
+ return 0;
220
+ }
221
+ catch (error) {
222
+ io.stderr(`${error instanceof Error ? error.message : String(error)}\n`);
223
+ return 1;
224
+ }
225
+ });
226
+ }
227
+ function main() {
228
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
229
+ process.exitCode = yield runCreateCommand(process.argv.slice(2), {
230
+ cwd: process.cwd(),
231
+ stderr: (message) => process.stderr.write(message),
232
+ stdout: (message) => process.stdout.write(message),
233
+ });
234
+ });
235
+ }
236
+ if (require.main === module) {
237
+ void main();
238
+ }
239
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","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AAQ,GAAG,MAAM,gBAAgB,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE;YAC/D,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE;YAClB,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC;YAClD,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC;SACnD,CAAC,CAAC;IACL,CAAC;CAAA;AAED,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;IAC5B,KAAK,IAAI,EAAE,CAAC;AACd,CAAC"}
package/package.json ADDED
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "@empire-builder-kit/create",
3
+ "version": "1.0.0-beta.10",
4
+ "description": "Create an Empire Builder Kit workspace with the Standard Foundation",
5
+ "license": "Apache-2.0",
6
+ "type": "commonjs",
7
+ "dependencies": {
8
+ "create-nx-workspace": "23.1.0",
9
+ "tslib": "^2.3.0"
10
+ },
11
+ "bin": {
12
+ "create-empire-builder-kit": "./bin/index.js"
13
+ },
14
+ "publishConfig": {
15
+ "access": "public",
16
+ "provenance": false
17
+ },
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "https://github.com/empire-builder-kit/empire-builder-kit.git",
21
+ "directory": "packages/create"
22
+ },
23
+ "bugs": {
24
+ "url": "https://github.com/empire-builder-kit/empire-builder-kit/issues"
25
+ },
26
+ "homepage": "https://github.com/empire-builder-kit/empire-builder-kit#readme",
27
+ "engines": {
28
+ "node": ">=22.12.0"
29
+ },
30
+ "types": "./bin/index.d.ts",
31
+ "main": "./bin/index.js"
32
+ }