@tailor-platform/create-sdk 1.37.0 → 1.39.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/CHANGELOG.md +4 -0
- package/dist/index.js +11 -1
- package/package.json +2 -2
- package/templates/executor/package.json +2 -2
- package/templates/generators/package.json +2 -2
- package/templates/hello-world/package.json +1 -1
- package/templates/inventory-management/package.json +1 -1
- package/templates/multi-application/package.json +1 -1
- package/templates/resolver/package.json +2 -2
- package/templates/static-web-site/package.json +1 -1
- package/templates/tailordb/package.json +2 -2
- package/templates/workflow/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { readPackageJSON } from "pkg-types";
|
|
|
6
6
|
import { arg, defineCommand, runMain } from "politty";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
import { existsSync } from "node:fs";
|
|
9
|
-
import { cp, readdir, rename } from "node:fs/promises";
|
|
9
|
+
import { cp, readdir, rename, writeFile } from "node:fs/promises";
|
|
10
10
|
import { join, resolve } from "node:path";
|
|
11
11
|
import { execa } from "execa";
|
|
12
12
|
//#region src/context.ts
|
|
@@ -85,6 +85,15 @@ const collectContext = async ({ name, template }) => {
|
|
|
85
85
|
};
|
|
86
86
|
//#endregion
|
|
87
87
|
//#region src/copy.ts
|
|
88
|
+
const PNPM_WORKSPACE_YAML = `\
|
|
89
|
+
allowBuilds:
|
|
90
|
+
"@prisma/engines": true
|
|
91
|
+
"@swc/core": true
|
|
92
|
+
"@tailor-platform/sdk": true
|
|
93
|
+
esbuild: true
|
|
94
|
+
multiline-ts: true
|
|
95
|
+
protobufjs: true
|
|
96
|
+
`;
|
|
88
97
|
const copyProject = async (ctx) => {
|
|
89
98
|
const s = spinner();
|
|
90
99
|
s.start("📋 Copying template files...");
|
|
@@ -94,6 +103,7 @@ const copyProject = async (ctx) => {
|
|
|
94
103
|
});
|
|
95
104
|
const dotGitignorePath = join(ctx.projectDir, "__dot__gitignore");
|
|
96
105
|
if (existsSync(dotGitignorePath)) await rename(dotGitignorePath, join(ctx.projectDir, ".gitignore"));
|
|
106
|
+
await writeFile(join(ctx.projectDir, "pnpm-workspace.yaml"), PNPM_WORKSPACE_YAML);
|
|
97
107
|
s.stop("✅ Template copied");
|
|
98
108
|
};
|
|
99
109
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tailor-platform/create-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.39.0",
|
|
4
4
|
"description": "A CLI tool to quickly create a new Tailor Platform SDK project",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"eslint": "10.2.0",
|
|
32
32
|
"eslint-plugin-oxlint": "1.59.0",
|
|
33
33
|
"oxlint": "1.59.0",
|
|
34
|
-
"tsdown": "0.21.
|
|
34
|
+
"tsdown": "0.21.8",
|
|
35
35
|
"typescript": "5.9.3",
|
|
36
36
|
"typescript-eslint": "8.58.1"
|
|
37
37
|
},
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@eslint/js": "10.0.1",
|
|
18
|
-
"@tailor-platform/sdk": "1.
|
|
18
|
+
"@tailor-platform/sdk": "1.39.0",
|
|
19
19
|
"@types/node": "24.12.2",
|
|
20
20
|
"eslint": "10.2.0",
|
|
21
21
|
"eslint-plugin-oxlint": "1.59.0",
|
|
@@ -24,6 +24,6 @@
|
|
|
24
24
|
"oxlint-tsgolint": "0.20.0",
|
|
25
25
|
"typescript": "5.9.3",
|
|
26
26
|
"typescript-eslint": "8.58.1",
|
|
27
|
-
"vitest": "4.1.
|
|
27
|
+
"vitest": "4.1.4"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@eslint/js": "10.0.1",
|
|
18
|
-
"@tailor-platform/sdk": "1.
|
|
18
|
+
"@tailor-platform/sdk": "1.39.0",
|
|
19
19
|
"@types/node": "24.12.2",
|
|
20
20
|
"eslint": "10.2.0",
|
|
21
21
|
"eslint-plugin-oxlint": "1.59.0",
|
|
@@ -24,6 +24,6 @@
|
|
|
24
24
|
"oxlint-tsgolint": "0.20.0",
|
|
25
25
|
"typescript": "5.9.3",
|
|
26
26
|
"typescript-eslint": "8.58.1",
|
|
27
|
-
"vitest": "4.1.
|
|
27
|
+
"vitest": "4.1.4"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@eslint/js": "10.0.1",
|
|
20
|
-
"@tailor-platform/sdk": "1.
|
|
20
|
+
"@tailor-platform/sdk": "1.39.0",
|
|
21
21
|
"@types/node": "24.12.2",
|
|
22
22
|
"eslint": "10.2.0",
|
|
23
23
|
"eslint-plugin-oxlint": "1.59.0",
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
"oxlint-tsgolint": "0.20.0",
|
|
27
27
|
"typescript": "5.9.3",
|
|
28
28
|
"typescript-eslint": "8.58.1",
|
|
29
|
-
"vitest": "4.1.
|
|
29
|
+
"vitest": "4.1.4"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@eslint/js": "10.0.1",
|
|
18
|
-
"@tailor-platform/sdk": "1.
|
|
18
|
+
"@tailor-platform/sdk": "1.39.0",
|
|
19
19
|
"@types/node": "24.12.2",
|
|
20
20
|
"eslint": "10.2.0",
|
|
21
21
|
"eslint-plugin-oxlint": "1.59.0",
|
|
@@ -24,6 +24,6 @@
|
|
|
24
24
|
"oxlint-tsgolint": "0.20.0",
|
|
25
25
|
"typescript": "5.9.3",
|
|
26
26
|
"typescript-eslint": "8.58.1",
|
|
27
|
-
"vitest": "4.1.
|
|
27
|
+
"vitest": "4.1.4"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@eslint/js": "10.0.1",
|
|
21
|
-
"@tailor-platform/sdk": "1.
|
|
21
|
+
"@tailor-platform/sdk": "1.39.0",
|
|
22
22
|
"@types/node": "24.12.2",
|
|
23
23
|
"eslint": "10.2.0",
|
|
24
24
|
"eslint-plugin-oxlint": "1.59.0",
|
|
@@ -29,6 +29,6 @@
|
|
|
29
29
|
"oxlint-tsgolint": "0.20.0",
|
|
30
30
|
"typescript": "5.9.3",
|
|
31
31
|
"typescript-eslint": "8.58.1",
|
|
32
|
-
"vitest": "4.1.
|
|
32
|
+
"vitest": "4.1.4"
|
|
33
33
|
}
|
|
34
34
|
}
|