@tailor-platform/create-sdk 0.19.0 → 0.21.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 CHANGED
@@ -1,5 +1,9 @@
1
1
  # @tailor-platform/create-sdk
2
2
 
3
+ ## 0.21.0
4
+
5
+ ## 0.20.0
6
+
3
7
  ## 0.19.0
4
8
 
5
9
  ## 0.18.2
package/dist/index.js CHANGED
@@ -57,13 +57,12 @@ const collectContext = async ({ name, template }) => {
57
57
  name = ret;
58
58
  } else log.info(`📦 Project: ${name}`);
59
59
  if (!template) {
60
- const options = (await availableTemplates()).map((value) => ({
61
- value,
62
- hint: templateHints[value]
63
- }));
64
60
  const ret = await select({
65
61
  message: "🎨 Choose your template",
66
- options
62
+ options: (await availableTemplates()).map((value) => ({
63
+ value,
64
+ hint: templateHints[value]
65
+ }))
67
66
  });
68
67
  if (isCancel(ret)) {
69
68
  cancel("Operation cancelled");
@@ -141,7 +140,7 @@ const initProject = async () => {
141
140
  //#region src/index.ts
142
141
  const main = async () => {
143
142
  const packageJson = await readPackageJSON(import.meta.url);
144
- const cmd = defineCommand({
143
+ await runMain(defineCommand({
145
144
  meta: {
146
145
  name: packageJson.name,
147
146
  version: packageJson.version,
@@ -174,8 +173,7 @@ const main = async () => {
174
173
 
175
174
  ` + pc.dim("Learn more: https://docs.tailor.tech"));
176
175
  }
177
- });
178
- await runMain(cmd);
176
+ }));
179
177
  };
180
178
  await main();
181
179
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tailor-platform/create-sdk",
3
- "version": "0.19.0",
3
+ "version": "0.21.0",
4
4
  "description": "A CLI tool to quickly create a new Tailor Platform SDK project",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -28,9 +28,9 @@
28
28
  "@eslint/js": "9.39.2",
29
29
  "@types/node": "22.19.3",
30
30
  "eslint": "9.39.2",
31
- "tsdown": "0.15.6",
31
+ "tsdown": "0.18.0",
32
32
  "typescript": "5.9.3",
33
- "typescript-eslint": "8.49.0"
33
+ "typescript-eslint": "8.50.0"
34
34
  },
35
35
  "scripts": {
36
36
  "build": "tsdown",
@@ -12,11 +12,11 @@
12
12
  },
13
13
  "devDependencies": {
14
14
  "@eslint/js": "9.39.2",
15
- "@tailor-platform/sdk": "0.19.0",
15
+ "@tailor-platform/sdk": "0.21.0",
16
16
  "@types/node": "22.19.3",
17
17
  "eslint": "9.39.2",
18
18
  "prettier": "3.7.4",
19
19
  "typescript": "5.9.3",
20
- "typescript-eslint": "8.49.0"
20
+ "typescript-eslint": "8.50.0"
21
21
  }
22
22
  }
@@ -13,16 +13,16 @@
13
13
  },
14
14
  "dependencies": {
15
15
  "@tailor-platform/function-kysely-tailordb": "0.1.3",
16
- "kysely": "0.28.8"
16
+ "kysely": "0.28.9"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@eslint/js": "9.39.2",
20
20
  "@tailor-platform/function-types": "0.8.0",
21
- "@tailor-platform/sdk": "0.19.0",
21
+ "@tailor-platform/sdk": "0.21.0",
22
22
  "@types/node": "22.19.3",
23
23
  "eslint": "9.39.2",
24
24
  "prettier": "3.7.4",
25
25
  "typescript": "5.9.3",
26
- "typescript-eslint": "8.49.0"
26
+ "typescript-eslint": "8.50.0"
27
27
  }
28
28
  }
@@ -14,11 +14,11 @@
14
14
  },
15
15
  "devDependencies": {
16
16
  "@eslint/js": "9.39.2",
17
- "@tailor-platform/sdk": "0.19.0",
17
+ "@tailor-platform/sdk": "0.21.0",
18
18
  "@types/node": "22.19.3",
19
19
  "eslint": "9.39.2",
20
20
  "prettier": "3.7.4",
21
21
  "typescript": "5.9.3",
22
- "typescript-eslint": "8.49.0"
22
+ "typescript-eslint": "8.50.0"
23
23
  }
24
24
  }
@@ -8,7 +8,7 @@ describe.concurrent("workflow", () => {
8
8
  { timeout: 120000 },
9
9
  async () => {
10
10
  const { executionId, wait } = await startWorkflow({
11
- nameOrId: "simple-calculation",
11
+ name: "simple-calculation",
12
12
  machineUser: "admin",
13
13
  arg: { a: 2, b: 3 },
14
14
  });
@@ -31,7 +31,7 @@ describe.concurrent("workflow", () => {
31
31
  const testEmail = `workflow-test-${uuid}@example.com`;
32
32
 
33
33
  const { executionId, wait } = await startWorkflow({
34
- nameOrId: "user-profile-sync",
34
+ name: "user-profile-sync",
35
35
  machineUser: "admin",
36
36
  arg: {
37
37
  name: "workflow-test-user",
@@ -16,18 +16,18 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "@tailor-platform/function-kysely-tailordb": "0.1.3",
19
- "kysely": "0.28.8"
19
+ "kysely": "0.28.9"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@eslint/js": "9.39.2",
23
23
  "@tailor-platform/function-types": "0.8.0",
24
- "@tailor-platform/sdk": "0.19.0",
24
+ "@tailor-platform/sdk": "0.21.0",
25
25
  "@types/node": "22.19.3",
26
26
  "eslint": "9.39.2",
27
27
  "graphql-request": "7.4.0",
28
28
  "prettier": "3.7.4",
29
29
  "typescript": "5.9.3",
30
- "typescript-eslint": "8.49.0",
30
+ "typescript-eslint": "8.50.0",
31
31
  "vitest": "4.0.15"
32
32
  }
33
33
  }