@anthonylzq/simba.js 2.0.2 → 2.0.3
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.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
const os = require('os')
|
|
1
2
|
const util = require('util')
|
|
2
3
|
const exec = util.promisify(require('child_process').exec)
|
|
3
4
|
const writeFile = require('../utils/writeFile')
|
|
@@ -1219,7 +1220,7 @@ Server.start()
|
|
|
1219
1220
|
}
|
|
1220
1221
|
}
|
|
1221
1222
|
|
|
1222
|
-
|
|
1223
|
+
const createFoldersCommands = `mkdir ${projectName}/src \
|
|
1223
1224
|
${projectName}/src/@types \
|
|
1224
1225
|
${projectName}/src/@types/dto \
|
|
1225
1226
|
${projectName}/src/@types/custom \
|
|
@@ -1236,7 +1237,11 @@ ${projectName}/src/network/routes \
|
|
|
1236
1237
|
${projectName}/src/network/routes/schemas \
|
|
1237
1238
|
${projectName}/src/test \
|
|
1238
1239
|
${projectName}/src/utils
|
|
1239
|
-
`
|
|
1240
|
+
`
|
|
1241
|
+
|
|
1242
|
+
if (os.platform() === 'win32')
|
|
1243
|
+
await exec(createFoldersCommands.replaceAll('/', '\\'))
|
|
1244
|
+
else await exec(createFoldersCommands)
|
|
1240
1245
|
|
|
1241
1246
|
// /@types
|
|
1242
1247
|
await writeFile(data['@types'].index.file, data['@types'].index.content)
|