components-differ 1.0.4 → 1.0.6

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.
Files changed (2) hide show
  1. package/index.mjs +5 -5
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -25,8 +25,8 @@ const runCommand = (command) => {
25
25
  };
26
26
 
27
27
  const ensureGitignore = () => {
28
- const dockerignorePath = path.join(process.cwd(), ".dockerignore");
29
- if (!fs.existsSync(dockerignorePath)) {
28
+ const gitignorePath = path.join(process.cwd(), ".gitignore");
29
+ if (!fs.existsSync(gitignorePath)) {
30
30
  console.log(".gitignore file is missing. Creating one...");
31
31
  const content = `
32
32
  /node_modules
@@ -67,10 +67,10 @@ yarn-error.log*
67
67
  *.tsbuildinfo
68
68
  next-env.d.ts
69
69
  `;
70
- fs.writeFileSync(dockerignorePath, content, "utf8");
71
- console.log(".dockerignore file created with default rules.");
70
+ fs.writeFileSync(gitignorePath, content, "utf8");
71
+ console.log(".gitignore file created with default rules.");
72
72
  } else {
73
- console.log(".dockerignore file already exists.");
73
+ console.log(".gitignore file already exists.");
74
74
  }
75
75
  };
76
76
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "components-differ",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "Simple CLI to create Shadcn components from project",
5
5
  "main": "index.mjs",
6
6
  "bin": "index.mjs",