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

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.js +10 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -8,6 +8,8 @@ const ora = require("ora");
8
8
  const inquirer = require("inquirer");
9
9
  const figlet = require("figlet");
10
10
  const gradient = require("gradient-string").default;
11
+ const setupPath = path.join(targetDir, "setup.js");
12
+
11
13
 
12
14
  // ๐ŸŽจ Banner
13
15
 
@@ -127,6 +129,14 @@ async function run() {
127
129
  }
128
130
 
129
131
  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
+ }
130
140
  } catch (err) {
131
141
  console.log(chalk.red("\nโŒ Something went wrong\n"));
132
142
  console.error(err);
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "engines": {
4
4
  "node": ">=22"
5
5
  },
6
- "version": "1.0.13",
6
+ "version": "1.0.14",
7
7
  "main": "index.js",
8
8
  "scripts": {
9
9
  "test": "echo \"Error: no test specified\" && exit 1"