structured-fw 0.7.9 → 0.8.0
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,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { resolve } from 'path';
|
|
3
3
|
import { cpSync, existsSync, mkdirSync, readFileSync, writeFileSync } from 'fs';
|
|
4
|
-
const cwd = resolve(import.meta.dirname, '
|
|
4
|
+
const cwd = resolve(import.meta.dirname, '../../../');
|
|
5
5
|
const projectRoot = resolve('.');
|
|
6
6
|
if (process.argv.length < 3) {
|
|
7
7
|
console.log('Thanks for using the Structured framework.');
|
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"type": "module",
|
|
16
16
|
"main": "build/index",
|
|
17
|
-
"version": "0.
|
|
17
|
+
"version": "0.8.0",
|
|
18
18
|
"scripts": {
|
|
19
19
|
"develop": "tsc --watch",
|
|
20
20
|
"startDev": "cd build && nodemon --watch '../app/**/*' --watch '../build/**/*' -e js,html,css index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"postinstall": "echo \"Run npx structured init\" to create application boilerplate"
|
|
24
24
|
},
|
|
25
25
|
"bin": {
|
|
26
|
-
"structured": "./build/system/bin/structured"
|
|
26
|
+
"structured": "./build/system/bin/structured.js"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/mime-types": "^2.1.4",
|
package/system/bin/structured.ts
CHANGED
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
import { resolve } from 'path';
|
|
6
6
|
import { cpSync, existsSync, mkdirSync, readFileSync, writeFileSync } from 'fs';
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
// we are in /build/system/bin when this runs, go up 3 levels so cwd points to project root
|
|
9
|
+
const cwd = resolve(import.meta.dirname, '../../../');
|
|
9
10
|
const projectRoot = resolve('.');
|
|
10
11
|
|
|
11
12
|
if (process.argv.length < 3) {
|