@promte/app-upload 0.1.3 → 0.1.5
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/README.md +2 -2
- package/bin/promte-app-upload.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,9 +11,9 @@ npx promte-app-upload push
|
|
|
11
11
|
## Commands
|
|
12
12
|
```
|
|
13
13
|
promte-app-upload config
|
|
14
|
-
- interactive setup for host/workspaceId/dist (stored in
|
|
14
|
+
- interactive setup for host/workspaceId/dist (stored in ./promte-app-upload.config.json)
|
|
15
15
|
|
|
16
|
-
promte-app-upload push [--host ...] [--workspaceId ...] [--dist ...] [--serviceKey ...]
|
|
16
|
+
promte-app-upload push [--host ...] [--workspaceId ...] [--dist ...] [--zip ...] [--serviceKey ...]
|
|
17
17
|
- uploads ./dist by default
|
|
18
18
|
- host defaults to https://app.promte.dk
|
|
19
19
|
- use --zip <file> to upload an existing zip
|
package/bin/promte-app-upload.js
CHANGED
|
@@ -10,7 +10,7 @@ const { FormData, File } = undici;
|
|
|
10
10
|
|
|
11
11
|
const DEFAULT_HOST = "https://app.promte.dk";
|
|
12
12
|
const DEFAULT_DIST = "./dist";
|
|
13
|
-
const CONFIG_PATH = path.
|
|
13
|
+
const CONFIG_PATH = path.resolve(process.cwd(), "promte-app-upload.config.json");
|
|
14
14
|
|
|
15
15
|
function usage() {
|
|
16
16
|
console.log(
|