@tailor-platform/create-sdk 0.12.2 → 0.12.4

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,15 @@
1
1
  # @tailor-platform/create-sdk
2
2
 
3
+ ## 0.12.4
4
+
5
+ ## 0.12.3
6
+
7
+ ### Patch Changes
8
+
9
+ - [#101](https://github.com/tailor-platform/sdk/pull/101) [`029bd30`](https://github.com/tailor-platform/sdk/commit/029bd30b7c12ba9b69d7c61357da7bd312b72dad) Thanks [@remiposo](https://github.com/remiposo)! - Include .gitignore when running with npm
10
+
11
+ Fixed an issue where .gitignore was renamed to .npmignore when running with npm.
12
+
3
13
  ## 0.12.2
4
14
 
5
15
  ## 0.12.1
package/dist/index.js CHANGED
@@ -5,8 +5,8 @@ import { defineCommand, runMain } from "citty";
5
5
  import pc from "picocolors";
6
6
  import { readPackageJSON } from "pkg-types";
7
7
  import { existsSync } from "node:fs";
8
- import { cp, readdir } from "node:fs/promises";
9
- import { resolve } from "node:path";
8
+ import { cp, readdir, rename } from "node:fs/promises";
9
+ import { join, resolve } from "node:path";
10
10
  import { execa } from "execa";
11
11
 
12
12
  //#region src/context.ts
@@ -88,6 +88,8 @@ const copyProject = async (ctx) => {
88
88
  recursive: true,
89
89
  force: true
90
90
  });
91
+ const dotGitignorePath = join(ctx.projectDir, "__dot__gitignore");
92
+ if (existsSync(dotGitignorePath)) await rename(dotGitignorePath, join(ctx.projectDir, ".gitignore"));
91
93
  s.stop("✅ Template copied");
92
94
  };
93
95
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tailor-platform/create-sdk",
3
- "version": "0.12.2",
3
+ "version": "0.12.4",
4
4
  "description": "A CLI tool to quickly create a new Tailor Platform SDK project",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -13,7 +13,6 @@
13
13
  "files": [
14
14
  "dist",
15
15
  "templates",
16
- "templates/*/.gitignore",
17
16
  "README.md",
18
17
  "CHANGELOG.md",
19
18
  "LICENSE"
@@ -38,6 +37,6 @@
38
37
  "lint": "eslint --cache .",
39
38
  "lint:fix": "eslint --cache --fix .",
40
39
  "typecheck": "tsc --noEmit",
41
- "prepublish": "node scripts/set-sdk-version.js && pnpm run build"
40
+ "prepublish": "node scripts/prepare-templates.js && pnpm run build"
42
41
  }
43
42
  }
@@ -12,10 +12,10 @@
12
12
  },
13
13
  "devDependencies": {
14
14
  "@eslint/js": "9.39.1",
15
- "@tailor-platform/sdk": "0.12.2",
15
+ "@tailor-platform/sdk": "0.12.4",
16
16
  "@types/node": "22.19.1",
17
17
  "eslint": "9.39.1",
18
- "prettier": "3.7.1",
18
+ "prettier": "3.7.2",
19
19
  "typescript": "5.9.3",
20
20
  "typescript-eslint": "8.48.0"
21
21
  }
@@ -18,10 +18,10 @@
18
18
  "devDependencies": {
19
19
  "@eslint/js": "9.39.1",
20
20
  "@tailor-platform/function-types": "0.7.2",
21
- "@tailor-platform/sdk": "0.12.2",
21
+ "@tailor-platform/sdk": "0.12.4",
22
22
  "@types/node": "22.19.1",
23
23
  "eslint": "9.39.1",
24
- "prettier": "3.7.1",
24
+ "prettier": "3.7.2",
25
25
  "typescript": "5.9.3",
26
26
  "typescript-eslint": "8.48.0"
27
27
  }
@@ -14,10 +14,10 @@
14
14
  },
15
15
  "devDependencies": {
16
16
  "@eslint/js": "9.39.1",
17
- "@tailor-platform/sdk": "0.12.2",
17
+ "@tailor-platform/sdk": "0.12.4",
18
18
  "@types/node": "22.19.1",
19
19
  "eslint": "9.39.1",
20
- "prettier": "3.7.1",
20
+ "prettier": "3.7.2",
21
21
  "typescript": "5.9.3",
22
22
  "typescript-eslint": "8.48.0"
23
23
  }
@@ -21,11 +21,11 @@
21
21
  "devDependencies": {
22
22
  "@eslint/js": "9.39.1",
23
23
  "@tailor-platform/function-types": "0.7.2",
24
- "@tailor-platform/sdk": "0.12.2",
24
+ "@tailor-platform/sdk": "0.12.4",
25
25
  "@types/node": "22.19.1",
26
26
  "eslint": "9.39.1",
27
- "graphql-request": "7.3.4",
28
- "prettier": "3.7.1",
27
+ "graphql-request": "7.3.5",
28
+ "prettier": "3.7.2",
29
29
  "typescript": "5.9.3",
30
30
  "typescript-eslint": "8.48.0",
31
31
  "vitest": "4.0.14"