@tailor-platform/create-sdk 1.25.0 → 1.25.2
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 +8 -0
- package/dist/index.js +1 -6
- package/package.json +3 -3
- package/templates/executor/package.json +1 -1
- package/templates/generators/package.json +1 -1
- package/templates/generators/src/seed/exec.mjs +7 -3
- 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 +1 -1
- package/templates/static-web-site/package.json +1 -1
- package/templates/tailordb/package.json +1 -1
- package/templates/workflow/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @tailor-platform/create-sdk
|
|
2
2
|
|
|
3
|
+
## 1.25.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#719](https://github.com/tailor-platform/sdk/pull/719) [`60b882d`](https://github.com/tailor-platform/sdk/commit/60b882d631bd959f1b2e760430030edc68aa3dba) Thanks [@toiroakr](https://github.com/toiroakr)! - Upgrade politty to v0.4.9 and migrate to native globalArgs, cleanup, and arg effect patterns, eliminating the withCommonArgs wrapper
|
|
8
|
+
|
|
9
|
+
## 1.25.1
|
|
10
|
+
|
|
3
11
|
## 1.25.0
|
|
4
12
|
|
|
5
13
|
## 1.24.0
|
package/dist/index.js
CHANGED
|
@@ -9,7 +9,6 @@ import { existsSync } from "node:fs";
|
|
|
9
9
|
import { cp, readdir, rename } from "node:fs/promises";
|
|
10
10
|
import { join, resolve } from "node:path";
|
|
11
11
|
import { execa } from "execa";
|
|
12
|
-
|
|
13
12
|
//#region src/context.ts
|
|
14
13
|
const templatesDir = () => resolve(import.meta.dirname, "..", "templates");
|
|
15
14
|
const availableTemplates = async () => {
|
|
@@ -83,7 +82,6 @@ const collectContext = async ({ name, template }) => {
|
|
|
83
82
|
templateDir: resolve(templatesDir(), template)
|
|
84
83
|
};
|
|
85
84
|
};
|
|
86
|
-
|
|
87
85
|
//#endregion
|
|
88
86
|
//#region src/copy.ts
|
|
89
87
|
const copyProject = async (ctx) => {
|
|
@@ -97,7 +95,6 @@ const copyProject = async (ctx) => {
|
|
|
97
95
|
if (existsSync(dotGitignorePath)) await rename(dotGitignorePath, join(ctx.projectDir, ".gitignore"));
|
|
98
96
|
s.stop("✅ Template copied");
|
|
99
97
|
};
|
|
100
|
-
|
|
101
98
|
//#endregion
|
|
102
99
|
//#region src/init.ts
|
|
103
100
|
const detectPackageManager = () => {
|
|
@@ -141,7 +138,6 @@ const initProject = async () => {
|
|
|
141
138
|
s.stop("✅ Git initialized");
|
|
142
139
|
} else log.warn("⚠️ Already inside a git repository, skipping git initialization");
|
|
143
140
|
};
|
|
144
|
-
|
|
145
141
|
//#endregion
|
|
146
142
|
//#region src/index.ts
|
|
147
143
|
const main = async () => {
|
|
@@ -174,6 +170,5 @@ const main = async () => {
|
|
|
174
170
|
}), { version: packageJson.version });
|
|
175
171
|
};
|
|
176
172
|
await main();
|
|
177
|
-
|
|
178
173
|
//#endregion
|
|
179
|
-
export {
|
|
174
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tailor-platform/create-sdk",
|
|
3
|
-
"version": "1.25.
|
|
3
|
+
"version": "1.25.2",
|
|
4
4
|
"description": "A CLI tool to quickly create a new Tailor Platform SDK project",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"execa": "9.6.1",
|
|
23
23
|
"picocolors": "1.1.1",
|
|
24
24
|
"pkg-types": "2.3.0",
|
|
25
|
-
"politty": "0.
|
|
25
|
+
"politty": "0.4.9",
|
|
26
26
|
"zod": "4.3.6"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"eslint": "9.39.4",
|
|
32
32
|
"eslint-plugin-oxlint": "1.39.0",
|
|
33
33
|
"oxlint": "1.39.0",
|
|
34
|
-
"tsdown": "0.
|
|
34
|
+
"tsdown": "0.21.1",
|
|
35
35
|
"typescript": "5.9.3",
|
|
36
36
|
"typescript-eslint": "8.53.0"
|
|
37
37
|
},
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@eslint/js": "9.39.4",
|
|
18
18
|
"@tailor-platform/function-types": "0.8.2",
|
|
19
|
-
"@tailor-platform/sdk": "1.25.
|
|
19
|
+
"@tailor-platform/sdk": "1.25.2",
|
|
20
20
|
"@types/node": "24.10.9",
|
|
21
21
|
"eslint": "9.39.4",
|
|
22
22
|
"eslint-plugin-oxlint": "1.39.0",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@eslint/js": "9.39.4",
|
|
18
18
|
"@tailor-platform/function-types": "0.8.2",
|
|
19
|
-
"@tailor-platform/sdk": "1.25.
|
|
19
|
+
"@tailor-platform/sdk": "1.25.2",
|
|
20
20
|
"@types/node": "24.10.9",
|
|
21
21
|
"eslint": "9.39.4",
|
|
22
22
|
"eslint-plugin-oxlint": "1.39.0",
|
|
@@ -155,6 +155,9 @@ const namespaceDeps = {
|
|
|
155
155
|
"User": []
|
|
156
156
|
}
|
|
157
157
|
};
|
|
158
|
+
const namespaceSelfRefTypes = {
|
|
159
|
+
"main-db": ["Category"]
|
|
160
|
+
};
|
|
158
161
|
const entities = Object.values(namespaceEntities).flat();
|
|
159
162
|
const hasIdpUser = false;
|
|
160
163
|
|
|
@@ -332,7 +335,7 @@ const topologicalSort = (types, deps) => {
|
|
|
332
335
|
};
|
|
333
336
|
|
|
334
337
|
// Seed TailorDB types via testExecScript
|
|
335
|
-
const seedViaTestExecScript = async (namespace, typesToSeed, deps) => {
|
|
338
|
+
const seedViaTestExecScript = async (namespace, typesToSeed, deps, selfRefTypes) => {
|
|
336
339
|
const dataDir = join(configDir, "data");
|
|
337
340
|
const sortedTypes = topologicalSort(typesToSeed, deps);
|
|
338
341
|
const data = loadSeedData(dataDir, sortedTypes);
|
|
@@ -380,7 +383,7 @@ const seedViaTestExecScript = async (namespace, typesToSeed, deps) => {
|
|
|
380
383
|
workspaceId,
|
|
381
384
|
name: `seed-${namespace}.ts`,
|
|
382
385
|
code: bundled.bundledCode,
|
|
383
|
-
arg: JSON.stringify({ data: chunk.data, order: chunk.order }),
|
|
386
|
+
arg: JSON.stringify({ data: chunk.data, order: chunk.order, selfRefTypes }),
|
|
384
387
|
invoker: {
|
|
385
388
|
namespace: authNamespace,
|
|
386
389
|
machineUserName,
|
|
@@ -448,6 +451,7 @@ try {
|
|
|
448
451
|
for (const namespace of namespacesToProcess) {
|
|
449
452
|
const nsTypes = namespaceEntities[namespace] || [];
|
|
450
453
|
const nsDeps = namespaceDeps[namespace] || {};
|
|
454
|
+
const nsSelfRefTypes = namespaceSelfRefTypes[namespace] || [];
|
|
451
455
|
|
|
452
456
|
// Filter types if specific types requested
|
|
453
457
|
let typesToSeed = entitiesToProcess
|
|
@@ -456,7 +460,7 @@ try {
|
|
|
456
460
|
|
|
457
461
|
if (typesToSeed.length === 0) continue;
|
|
458
462
|
|
|
459
|
-
const result = await seedViaTestExecScript(namespace, typesToSeed, nsDeps);
|
|
463
|
+
const result = await seedViaTestExecScript(namespace, typesToSeed, nsDeps, nsSelfRefTypes);
|
|
460
464
|
if (!result.success) {
|
|
461
465
|
allSuccess = false;
|
|
462
466
|
}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@eslint/js": "9.39.4",
|
|
16
16
|
"@tailor-platform/function-types": "0.8.2",
|
|
17
|
-
"@tailor-platform/sdk": "1.25.
|
|
17
|
+
"@tailor-platform/sdk": "1.25.2",
|
|
18
18
|
"@types/node": "24.10.9",
|
|
19
19
|
"eslint": "9.39.4",
|
|
20
20
|
"eslint-plugin-oxlint": "1.39.0",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@eslint/js": "9.39.4",
|
|
20
20
|
"@tailor-platform/function-types": "0.8.2",
|
|
21
|
-
"@tailor-platform/sdk": "1.25.
|
|
21
|
+
"@tailor-platform/sdk": "1.25.2",
|
|
22
22
|
"@types/node": "24.10.9",
|
|
23
23
|
"eslint": "9.39.4",
|
|
24
24
|
"eslint-plugin-oxlint": "1.39.0",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@eslint/js": "9.39.4",
|
|
16
16
|
"@tailor-platform/function-types": "0.8.2",
|
|
17
|
-
"@tailor-platform/sdk": "1.25.
|
|
17
|
+
"@tailor-platform/sdk": "1.25.2",
|
|
18
18
|
"@types/node": "24.10.9",
|
|
19
19
|
"eslint": "9.39.4",
|
|
20
20
|
"eslint-plugin-oxlint": "1.39.0",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@eslint/js": "9.39.4",
|
|
18
18
|
"@tailor-platform/function-types": "0.8.2",
|
|
19
|
-
"@tailor-platform/sdk": "1.25.
|
|
19
|
+
"@tailor-platform/sdk": "1.25.2",
|
|
20
20
|
"@types/node": "24.10.9",
|
|
21
21
|
"eslint": "9.39.4",
|
|
22
22
|
"eslint-plugin-oxlint": "1.39.0",
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@eslint/js": "9.39.4",
|
|
21
21
|
"@tailor-platform/function-types": "0.8.2",
|
|
22
|
-
"@tailor-platform/sdk": "1.25.
|
|
22
|
+
"@tailor-platform/sdk": "1.25.2",
|
|
23
23
|
"@types/node": "24.10.9",
|
|
24
24
|
"eslint": "9.39.4",
|
|
25
25
|
"eslint-plugin-oxlint": "1.39.0",
|
|
26
|
-
"graphql": "16.
|
|
26
|
+
"graphql": "16.13.1",
|
|
27
27
|
"graphql-request": "7.4.0",
|
|
28
28
|
"oxfmt": "0.24.0",
|
|
29
29
|
"oxlint": "1.39.0",
|