create-moost 0.3.11 → 0.3.12
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/dist/index.cjs +1 -4
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +1 -4
- package/package.json +5 -4
package/dist/index.cjs
CHANGED
|
@@ -247,12 +247,10 @@ function emptyDirectorySync(directory) {
|
|
|
247
247
|
fs.readdirSync(directory).forEach((file) => {
|
|
248
248
|
const currentPath = path.join(directory, file);
|
|
249
249
|
if (fs.lstatSync(currentPath).isDirectory()) {
|
|
250
|
-
// Recurse if the current path is a directory
|
|
251
250
|
emptyDirectorySync(currentPath);
|
|
252
|
-
fs.rmdirSync(currentPath);
|
|
251
|
+
fs.rmdirSync(currentPath);
|
|
253
252
|
}
|
|
254
253
|
else {
|
|
255
|
-
// Delete file
|
|
256
254
|
fs.unlinkSync(currentPath);
|
|
257
255
|
}
|
|
258
256
|
});
|
|
@@ -323,7 +321,6 @@ function run() {
|
|
|
323
321
|
const app = new CliController();
|
|
324
322
|
app.adapter(new eventCli.MoostCli({
|
|
325
323
|
globalCliOptions: [
|
|
326
|
-
// { keys: ['ts'], description: '' },
|
|
327
324
|
{ keys: ['http'], description: 'Use Moost HTTP', type: Boolean },
|
|
328
325
|
{ keys: ['cli'], description: 'Use Moost CLI', type: Boolean },
|
|
329
326
|
{ keys: ['eslint'], description: 'Add ESLint', type: Boolean },
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { }
|
|
1
|
+
declare function run(): void;
|
|
2
|
+
|
|
3
|
+
export { run };
|
package/dist/index.mjs
CHANGED
|
@@ -245,12 +245,10 @@ function emptyDirectorySync(directory) {
|
|
|
245
245
|
readdirSync(directory).forEach((file) => {
|
|
246
246
|
const currentPath = join(directory, file);
|
|
247
247
|
if (lstatSync(currentPath).isDirectory()) {
|
|
248
|
-
// Recurse if the current path is a directory
|
|
249
248
|
emptyDirectorySync(currentPath);
|
|
250
|
-
rmdirSync(currentPath);
|
|
249
|
+
rmdirSync(currentPath);
|
|
251
250
|
}
|
|
252
251
|
else {
|
|
253
|
-
// Delete file
|
|
254
252
|
unlinkSync(currentPath);
|
|
255
253
|
}
|
|
256
254
|
});
|
|
@@ -321,7 +319,6 @@ function run() {
|
|
|
321
319
|
const app = new CliController();
|
|
322
320
|
app.adapter(new MoostCli({
|
|
323
321
|
globalCliOptions: [
|
|
324
|
-
// { keys: ['ts'], description: '' },
|
|
325
322
|
{ keys: ['http'], description: 'Use Moost HTTP', type: Boolean },
|
|
326
323
|
{ keys: ['cli'], description: 'Use Moost CLI', type: Boolean },
|
|
327
324
|
{ keys: ['eslint'], description: 'Add ESLint', type: Boolean },
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-moost",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.12",
|
|
4
4
|
"description": "create-moost",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"exports": {
|
|
10
|
+
"./package.json": "./package.json",
|
|
10
11
|
".": {
|
|
11
12
|
"import": "./dist/index.mjs",
|
|
12
13
|
"require": "./dist/index.cjs",
|
|
@@ -41,10 +42,10 @@
|
|
|
41
42
|
},
|
|
42
43
|
"homepage": "https://github.com/moostjs/moostjs/tree/main/packages/create-moost#readme",
|
|
43
44
|
"dependencies": {
|
|
44
|
-
"@moostjs/event-cli": "0.3.
|
|
45
|
-
"@wooksjs/event-cli": "^0.4.
|
|
45
|
+
"@moostjs/event-cli": "0.3.12",
|
|
46
|
+
"@wooksjs/event-cli": "^0.4.13",
|
|
46
47
|
"@prostojs/rewrite": "^0.0.4",
|
|
47
|
-
"moost": "0.3.
|
|
48
|
+
"moost": "0.3.12",
|
|
48
49
|
"prompts": "^2.4.2"
|
|
49
50
|
}
|
|
50
51
|
}
|