create-spfx-tailwind-app 1.0.14 โ†’ 1.0.16

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 (3) hide show
  1. package/Readme.md +4 -4
  2. package/index.js +10 -8
  3. package/package.json +2 -2
package/Readme.md CHANGED
@@ -5,9 +5,9 @@
5
5
 
6
6
  npx create-spfx-tailwind-app MyProject
7
7
 
8
- ![npm version](https://img.shields.io/npm/v/create-spfx-tailwind-app-v1)
9
- ![npm downloads](https://img.shields.io/npm/dt/create-spfx-tailwind-app-v1)
10
- ![license](https://img.shields.io/npm/l/create-spfx-tailwind-app-v1)
8
+ ![npm version](https://img.shields.io/npm/v/create-spfx-tailwind-app)
9
+ ![npm downloads](https://img.shields.io/npm/dt/create-spfx-tailwind-app)
10
+ ![license](https://img.shields.io/npm/l/create-spfx-tailwind-app)
11
11
  ![SPFx](https://img.shields.io/badge/SPFx-1.22+-green)
12
12
 
13
13
  A modern CLI tool to scaffold **SharePoint Framework (SPFx)** projects
@@ -40,7 +40,7 @@ npx create-spfx-tailwind-app MyProject
40
40
 
41
41
  ``` bash
42
42
  npm install -g create-spfx-tailwind-app
43
- create-spfx-app MyProject
43
+ create-spfx-tailwind-app MyProject
44
44
  ```
45
45
 
46
46
  ------------------------------------------------------------------------
package/index.js CHANGED
@@ -65,6 +65,15 @@ async function run() {
65
65
 
66
66
  spinner.succeed(chalk.green("โœ” Project setup complete"));
67
67
 
68
+ try {
69
+ if (fs.existsSync(setupPath)) {
70
+ fs.unlinkSync(setupPath);
71
+ // console.log(chalk.gray("๐Ÿงน setup.js removed"));
72
+ }
73
+ } catch (err) {
74
+ console.log(chalk.yellow("โš ๏ธ Could not remove setup.js"));
75
+ }
76
+
68
77
  // ๐Ÿ” detect Tailwind support
69
78
  let hasTailwind = false;
70
79
  try {
@@ -129,14 +138,7 @@ async function run() {
129
138
  }
130
139
 
131
140
  console.log("\n" + chalk.gray("Happy coding ๐Ÿš€\n"));
132
- try {
133
- if (fs.existsSync(setupPath)) {
134
- fs.unlinkSync(setupPath);
135
- // console.log(chalk.gray("๐Ÿงน setup.js removed"));
136
- }
137
- } catch (err) {
138
- console.log(chalk.yellow("โš ๏ธ Could not remove setup.js"));
139
- }
141
+
140
142
  } catch (err) {
141
143
  console.log(chalk.red("\nโŒ Something went wrong\n"));
142
144
  console.error(err);
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "engines": {
4
4
  "node": ">=22"
5
5
  },
6
- "version": "1.0.14",
6
+ "version": "1.0.16",
7
7
  "main": "index.js",
8
8
  "scripts": {
9
9
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "homepage": "https://github.com/deependrasingh002/create-spfx-tailwind-app.git",
32
32
  "bin": {
33
- "create-spfx-app": "./index.js"
33
+ "create-spfx-tailwind-app": "./index.js"
34
34
  },
35
35
  "dependencies": {
36
36
  "chalk": "^4.1.2",