@baseplate-dev/create-project 0.4.4 → 0.5.1
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getLatestMigrationVersion } from '@baseplate-dev/project-builder-lib';
|
|
2
|
-
import { generateProjectId, SyncMetadataController, syncProject, } from '@baseplate-dev/project-builder-server';
|
|
2
|
+
import { generateProjectId, SERVER_CORE_MODULES, SyncMetadataController, syncProject, } from '@baseplate-dev/project-builder-server';
|
|
3
3
|
import { createConsoleLogger } from '@baseplate-dev/sync';
|
|
4
4
|
import { stringifyPrettyStable } from '@baseplate-dev/utils';
|
|
5
5
|
import fs from 'node:fs/promises';
|
|
@@ -23,6 +23,7 @@ export function createInitialProjectDefinition(config) {
|
|
|
23
23
|
features: [],
|
|
24
24
|
cliVersion: config.cliVersion,
|
|
25
25
|
apps: [],
|
|
26
|
+
libraries: [],
|
|
26
27
|
models: [],
|
|
27
28
|
isInitialized: false,
|
|
28
29
|
schemaVersion: getLatestMigrationVersion(),
|
|
@@ -44,7 +45,10 @@ export async function generateRootPackage(config) {
|
|
|
44
45
|
await fs.mkdir(baseplateDir, { recursive: true });
|
|
45
46
|
await fs.writeFile(path.join(baseplateDir, 'project-definition.json'), stringifyPrettyStable(definition));
|
|
46
47
|
// Create minimal plugin store (no plugins for initial project)
|
|
47
|
-
const pluginStore = {
|
|
48
|
+
const pluginStore = {
|
|
49
|
+
availablePlugins: [],
|
|
50
|
+
coreModules: SERVER_CORE_MODULES,
|
|
51
|
+
};
|
|
48
52
|
// Create parser context
|
|
49
53
|
const context = {
|
|
50
54
|
pluginStore,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baseplate-dev/create-project",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "CLI starter kit for creating a new Baseplate project",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"chalk": "5.3.0",
|
|
39
39
|
"commander": "^12.1.0",
|
|
40
40
|
"ora": "^8.0.1",
|
|
41
|
-
"@baseplate-dev/project-builder-cli": "0.
|
|
42
|
-
"@baseplate-dev/project-builder-lib": "0.
|
|
43
|
-
"@baseplate-dev/project-builder-server": "0.
|
|
44
|
-
"@baseplate-dev/sync": "0.
|
|
45
|
-
"@baseplate-dev/utils": "0.
|
|
41
|
+
"@baseplate-dev/project-builder-cli": "0.5.1",
|
|
42
|
+
"@baseplate-dev/project-builder-lib": "0.5.1",
|
|
43
|
+
"@baseplate-dev/project-builder-server": "0.5.1",
|
|
44
|
+
"@baseplate-dev/sync": "0.5.1",
|
|
45
|
+
"@baseplate-dev/utils": "0.5.1"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/node": "^22.17.2",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"prettier": "3.6.2",
|
|
52
52
|
"tsx": "4.20.6",
|
|
53
53
|
"typescript": "5.8.3",
|
|
54
|
-
"vitest": "
|
|
55
|
-
"@baseplate-dev/tools": "0.
|
|
54
|
+
"vitest": "4.0.16",
|
|
55
|
+
"@baseplate-dev/tools": "0.5.1"
|
|
56
56
|
},
|
|
57
57
|
"engines": {
|
|
58
58
|
"node": "^22.0.0"
|