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.
- package/index.js +10 -0
- 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);
|