@fullstackunicorn/root 1.0.9 → 1.0.11

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.dep.js CHANGED
@@ -1,8 +1,9 @@
1
+ // @FULLSTACKUNICORN
2
+ export { fss, fsa } from '@fullstackunicorn/filesystem'
3
+
1
4
  // NODE BUILD IN
2
5
  export { default as path } from 'path'
3
6
 
4
- // FULLSTACKUNICORN
5
- export { fss, fsa } from '@fullstackunicorn/filesystem'
6
-
7
- // NPM
8
- export { default as JSZip } from 'jszip'
7
+ // PACKAGES
8
+ export { default as JSZip } from 'jszip'
9
+ export { default as axios } from 'axios'
package/index.js CHANGED
@@ -1,5 +1,3 @@
1
-
2
-
3
1
  export { generate } from '#@/modules/generate.js'
4
2
  export { verify } from '#@/modules/verify.js'
5
3
  export { upgrade } from '#@/modules/upgrade.js'
@@ -1,4 +1,4 @@
1
- import { path, JSZip } from '#@/index.dep.js'
1
+ import { axios, path, fss, fsa, JSZip } from '#@/index.dep.js'
2
2
 
3
3
  class Generate {
4
4
 
@@ -12,14 +12,15 @@ class Generate {
12
12
 
13
13
  this.url = {}
14
14
  this.url.generate = `${this.basePath}/root/generate`
15
-
16
15
  }
17
16
 
18
17
  post = async ({ endpoint, data, config }) => {
19
18
  try {
20
19
  const response = await axios.post(endpoint, data, config)
21
20
  return response.data
22
- } catch (error) { return F3.err.handle(error) }
21
+ } catch (error) {
22
+ F3.log.arr(error)
23
+ return F3.err.handle(error) }
23
24
  }
24
25
 
25
26
  ensureFileDir = async filepath => await fsa.ensureDir(path.dirname(filepath))
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.9",
2
+ "version": "1.0.11",
3
3
  "name": "@fullstackunicorn/root",
4
4
  "author": "lucanigido (https://fullstackunicorn.dev/author/lucanigido)",
5
5
  "description": "Root CLI: init config, generate project, upgrade project",
@@ -32,10 +32,14 @@
32
32
  "#@": "./",
33
33
  "#@/*": "./*"
34
34
  },
35
- "scripts": {},
35
+ "scripts": {
36
+ "cmd": "chmod +x ./config.cmd.sh && ./config.cmd.sh",
37
+ "test": "exit 1"
38
+ },
36
39
  "dependencies": {
37
40
  "@fullstackunicorn/filesystem": "^1.0.4",
38
41
  "@fullstackunicorn/initialize": "^1.0.9",
42
+ "axios": "^1.13.4",
39
43
  "jszip": "^3.10.1"
40
44
  },
41
45
  "devDependencies": {