@tailor-platform/create-sdk 1.36.0 → 1.38.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 +3 -3
- package/templates/executor/package.json +3 -3
- package/templates/generators/package.json +3 -3
- package/templates/hello-world/package.json +2 -2
- package/templates/inventory-management/package.json +2 -2
- package/templates/inventory-management/tailor.d.ts +4 -0
- package/templates/multi-application/package.json +2 -2
- package/templates/resolver/package.json +3 -3
- package/templates/resolver/tailor.d.ts +3 -0
- package/templates/static-web-site/package.json +2 -2
- package/templates/tailordb/package.json +3 -3
- package/templates/tailordb/tailor.d.ts +4 -0
- package/templates/workflow/package.json +3 -3
- package/templates/workflow/tailor.d.ts +3 -0
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.38.0",
|
|
4
4
|
"description": "A CLI tool to quickly create a new Tailor Platform SDK project",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -31,9 +31,9 @@
|
|
|
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
|
-
"typescript-eslint": "8.58.
|
|
36
|
+
"typescript-eslint": "8.58.1"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build": "tsdown",
|
|
@@ -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.38.0",
|
|
19
19
|
"@types/node": "24.12.2",
|
|
20
20
|
"eslint": "10.2.0",
|
|
21
21
|
"eslint-plugin-oxlint": "1.59.0",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"oxlint": "1.59.0",
|
|
24
24
|
"oxlint-tsgolint": "0.20.0",
|
|
25
25
|
"typescript": "5.9.3",
|
|
26
|
-
"typescript-eslint": "8.58.
|
|
27
|
-
"vitest": "4.1.
|
|
26
|
+
"typescript-eslint": "8.58.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.38.0",
|
|
19
19
|
"@types/node": "24.12.2",
|
|
20
20
|
"eslint": "10.2.0",
|
|
21
21
|
"eslint-plugin-oxlint": "1.59.0",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"oxlint": "1.59.0",
|
|
24
24
|
"oxlint-tsgolint": "0.20.0",
|
|
25
25
|
"typescript": "5.9.3",
|
|
26
|
-
"typescript-eslint": "8.58.
|
|
27
|
-
"vitest": "4.1.
|
|
26
|
+
"typescript-eslint": "8.58.1",
|
|
27
|
+
"vitest": "4.1.4"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@eslint/js": "10.0.1",
|
|
16
|
-
"@tailor-platform/sdk": "1.
|
|
16
|
+
"@tailor-platform/sdk": "1.38.0",
|
|
17
17
|
"@types/node": "24.12.2",
|
|
18
18
|
"eslint": "10.2.0",
|
|
19
19
|
"eslint-plugin-oxlint": "1.59.0",
|
|
@@ -21,6 +21,6 @@
|
|
|
21
21
|
"oxlint": "1.59.0",
|
|
22
22
|
"oxlint-tsgolint": "0.20.0",
|
|
23
23
|
"typescript": "5.9.3",
|
|
24
|
-
"typescript-eslint": "8.58.
|
|
24
|
+
"typescript-eslint": "8.58.1"
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@eslint/js": "10.0.1",
|
|
16
|
-
"@tailor-platform/sdk": "1.
|
|
16
|
+
"@tailor-platform/sdk": "1.38.0",
|
|
17
17
|
"@types/node": "24.12.2",
|
|
18
18
|
"eslint": "10.2.0",
|
|
19
19
|
"eslint-plugin-oxlint": "1.59.0",
|
|
@@ -21,6 +21,6 @@
|
|
|
21
21
|
"oxlint": "1.59.0",
|
|
22
22
|
"oxlint-tsgolint": "0.20.0",
|
|
23
23
|
"typescript": "5.9.3",
|
|
24
|
-
"typescript-eslint": "8.58.
|
|
24
|
+
"typescript-eslint": "8.58.1"
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@eslint/js": "10.0.1",
|
|
17
|
-
"@tailor-platform/sdk": "1.
|
|
17
|
+
"@tailor-platform/sdk": "1.38.0",
|
|
18
18
|
"@types/node": "24.12.2",
|
|
19
19
|
"eslint": "10.2.0",
|
|
20
20
|
"eslint-plugin-oxlint": "1.59.0",
|
|
@@ -22,6 +22,6 @@
|
|
|
22
22
|
"oxlint": "1.59.0",
|
|
23
23
|
"oxlint-tsgolint": "0.20.0",
|
|
24
24
|
"typescript": "5.9.3",
|
|
25
|
-
"typescript-eslint": "8.58.
|
|
25
|
+
"typescript-eslint": "8.58.1"
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -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.38.0",
|
|
21
21
|
"@types/node": "24.12.2",
|
|
22
22
|
"eslint": "10.2.0",
|
|
23
23
|
"eslint-plugin-oxlint": "1.59.0",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"oxlint": "1.59.0",
|
|
26
26
|
"oxlint-tsgolint": "0.20.0",
|
|
27
27
|
"typescript": "5.9.3",
|
|
28
|
-
"typescript-eslint": "8.58.
|
|
29
|
-
"vitest": "4.1.
|
|
28
|
+
"typescript-eslint": "8.58.1",
|
|
29
|
+
"vitest": "4.1.4"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@eslint/js": "10.0.1",
|
|
16
|
-
"@tailor-platform/sdk": "1.
|
|
16
|
+
"@tailor-platform/sdk": "1.38.0",
|
|
17
17
|
"@types/node": "24.12.2",
|
|
18
18
|
"eslint": "10.2.0",
|
|
19
19
|
"eslint-plugin-oxlint": "1.59.0",
|
|
@@ -21,6 +21,6 @@
|
|
|
21
21
|
"oxlint": "1.59.0",
|
|
22
22
|
"oxlint-tsgolint": "0.20.0",
|
|
23
23
|
"typescript": "5.9.3",
|
|
24
|
-
"typescript-eslint": "8.58.
|
|
24
|
+
"typescript-eslint": "8.58.1"
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -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.38.0",
|
|
19
19
|
"@types/node": "24.12.2",
|
|
20
20
|
"eslint": "10.2.0",
|
|
21
21
|
"eslint-plugin-oxlint": "1.59.0",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"oxlint": "1.59.0",
|
|
24
24
|
"oxlint-tsgolint": "0.20.0",
|
|
25
25
|
"typescript": "5.9.3",
|
|
26
|
-
"typescript-eslint": "8.58.
|
|
27
|
-
"vitest": "4.1.
|
|
26
|
+
"typescript-eslint": "8.58.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.38.0",
|
|
22
22
|
"@types/node": "24.12.2",
|
|
23
23
|
"eslint": "10.2.0",
|
|
24
24
|
"eslint-plugin-oxlint": "1.59.0",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"oxlint": "1.59.0",
|
|
29
29
|
"oxlint-tsgolint": "0.20.0",
|
|
30
30
|
"typescript": "5.9.3",
|
|
31
|
-
"typescript-eslint": "8.58.
|
|
32
|
-
"vitest": "4.1.
|
|
31
|
+
"typescript-eslint": "8.58.1",
|
|
32
|
+
"vitest": "4.1.4"
|
|
33
33
|
}
|
|
34
34
|
}
|