@bluenyang/create-tistory-skin 1.0.1 โ†’ 1.0.5

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/index.js CHANGED
@@ -11,8 +11,7 @@ const __dirname = path.dirname(__filename);
11
11
  async function init() {
12
12
  console.log(pc.cyan("๐Ÿš€ Tistory Skin ํ”„๋กœ์ ํŠธ๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.\n"));
13
13
 
14
- // ํ”„๋กœ์ ํŠธ ์ด๋ฆ„ ์ž…๋ ฅ๋ฐ›๊ธฐ
15
- const response = await prompts(
14
+ const response = await prompts([
16
15
  {
17
16
  type: "text",
18
17
  name: "projectName",
@@ -25,7 +24,7 @@ async function init() {
25
24
  message: "Tailwind CSS๋ฅผ ์‚ฌ์šฉํ•˜์‹œ๊ฒ ์Šต๋‹ˆ๊นŒ?",
26
25
  initial: true,
27
26
  },
28
- );
27
+ ]);
29
28
 
30
29
  if (!response.projectName) {
31
30
  console.log(pc.red("ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ์ด ์ทจ์†Œ๋˜์—ˆ์Šต๋‹ˆ๋‹ค."));
@@ -34,7 +33,7 @@ async function init() {
34
33
 
35
34
  const targetDir = path.join(process.cwd(), response.projectName);
36
35
 
37
- // ๋””๋ ‰ํ† ๋ฆฌ ์ƒ์„ฑ
36
+ // ๋Œ€์ƒ ๋””๋ ‰ํ† ๋ฆฌ ์ตœ์ดˆ ์ƒ์„ฑ
38
37
  if (!fs.existsSync(targetDir)) {
39
38
  fs.mkdirSync(targetDir, { recursive: true });
40
39
  } else {
@@ -42,7 +41,6 @@ async function init() {
42
41
  process.exit(1);
43
42
  }
44
43
 
45
- // ํ…œํ”Œ๋ฆฟ ๋ณต์‚ฌ
46
44
  const templateDir = path.join(__dirname, "template");
47
45
 
48
46
  function copyRecursiveSync(src, dest) {
@@ -51,7 +49,11 @@ async function init() {
51
49
  const isDirectory = exists && stats.isDirectory();
52
50
 
53
51
  if (isDirectory) {
54
- fs.mkdirSync(dest);
52
+ // fixed: ํด๋”๊ฐ€ ์—†์„ ๋•Œ๋งŒ ์ƒ์„ฑํ•˜๊ฑฐ๋‚˜ recursive: true๋ฅผ ์ค˜์„œ EEXIST ์—๋Ÿฌ ๋ฐฉ์ง€
53
+ if (!fs.existsSync(dest)) {
54
+ fs.mkdirSync(dest, { recursive: true });
55
+ }
56
+
55
57
  fs.readdirSync(src).forEach((childItemName) => {
56
58
  // npm ๋ฐœ๋งค ์‹œ .gitignore๊ฐ€ ๋ˆ„๋ฝ๋˜๋Š” ์ด์Šˆ ๋ฐฉ์ง€์šฉ ํŠธ๋ฆญ (gitignore -> .gitignore๋กœ ๋ณต์‚ฌ)
57
59
  const destName = childItemName === "gitignore" ? ".gitignore" : childItemName;
@@ -62,7 +64,7 @@ async function init() {
62
64
  }
63
65
  }
64
66
 
65
- console.log(pc.blue("ํ…œํ”Œ๋ฆฟ ํŒŒ์ผ๋“ค์„ ๋ณต์‚ฌํ•˜๋Š” ์ค‘..."));
67
+ console.log(pc.blue("\nํ…œํ”Œ๋ฆฟ ํŒŒ์ผ๋“ค์„ ๋ณต์‚ฌํ•˜๋Š” ์ค‘..."));
66
68
  copyRecursiveSync(templateDir, targetDir);
67
69
 
68
70
  // Tailwind CSS ์‚ฌ์šฉํ•˜์ง€ ์•Š๋Š” ๊ฒฝ์šฐ
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluenyang/create-tistory-skin",
3
- "version": "1.0.1",
3
+ "version": "1.0.5",
4
4
  "description": "Tistory Skin Previewer ํ…œํ”Œ๋ฆฟ ์ƒ์„ฑ๊ธฐ",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -14,13 +14,13 @@
14
14
  "devDependencies": {
15
15
  "@tailwindcss/postcss": "^4.1.11",
16
16
  "@tailwindcss/vite": "^4.1.11",
17
- "@tistory-skin-previewer/astro": "^0.7.0",
17
+ "@tistory-skin-previewer/astro": "^1.0.1",
18
18
  "@typescript-eslint/parser": "^8.36.0",
19
19
  "eslint": "^9.30.1",
20
20
  "eslint-config-prettier": "^10.1.5",
21
21
  "eslint-plugin-astro": "^1.3.1",
22
22
  "eslint-plugin-prettier": "^5.5.1",
23
- "prettier": "^3.6.2",
23
+ "prettier": "^3.8.1",
24
24
  "prettier-plugin-astro": "^0.14.1",
25
25
  "prettier-plugin-tailwindcss": "^0.6.14",
26
26
  "tailwindcss": "^4.1.11",
@@ -5,7 +5,7 @@
5
5
  "baseUrl": ".",
6
6
  "target": "ESNext",
7
7
  "module": "ESNext",
8
- "moduleResolution": "node",
8
+ "moduleResolution": "bundler",
9
9
  "sourceMap": false,
10
10
  "inlineSources": false,
11
11
  "strict": true,