saturn-core-cli 0.0.6 → 0.0.8
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/commands/publish.js +3 -9
- package/package.json +4 -4
package/commands/publish.js
CHANGED
|
@@ -22,15 +22,14 @@ try {
|
|
|
22
22
|
exemptions = [];
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
async function action(options) {
|
|
25
|
+
async function action(release = "patch", options) {
|
|
26
26
|
try {
|
|
27
|
-
let version_raw = options["version"];
|
|
28
27
|
let message = options["message"];
|
|
29
28
|
const packageObj = await fs.readJson(`package.json`);
|
|
30
29
|
//if (version == undefined) {
|
|
31
30
|
//let version = packageObj.version;
|
|
32
31
|
//}
|
|
33
|
-
let version = semverInc(packageObj.version,
|
|
32
|
+
let version = semverInc(packageObj.version, release);
|
|
34
33
|
packageObj.version = version;
|
|
35
34
|
await fs.writeJson(`package.json`, packageObj, { spaces: 2 });
|
|
36
35
|
let map = await new mapper({ exemptions: exemptions }).createMap("./");
|
|
@@ -217,12 +216,7 @@ function command(prog) {
|
|
|
217
216
|
program
|
|
218
217
|
.command("publish [release]", { isDefault: true })
|
|
219
218
|
.option("-d, --dry <template>", "Dry Run", false)
|
|
220
|
-
.option(
|
|
221
|
-
"-v, --version",
|
|
222
|
-
"Version, options are major, minor, patch",
|
|
223
|
-
"patch"
|
|
224
|
-
)
|
|
225
|
-
.option("-m, --description", "Description of the update", "")
|
|
219
|
+
.option("-m, --message", "Description of the update", "")
|
|
226
220
|
.description("Publish Saturn Version")
|
|
227
221
|
.action(action);
|
|
228
222
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "saturn-core-cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"description": "Saturn Core CLI",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
"author": "Chad Fraser <chad@sonover.com> (http://sonover.com)",
|
|
15
15
|
"license": "ISC",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"axios": "^
|
|
17
|
+
"axios": "^1.6.2",
|
|
18
18
|
"babel-polyfill": "^6.26.0",
|
|
19
19
|
"child-process-promise": "^2.2.1",
|
|
20
20
|
"chokidar": "^3.5.2",
|
|
21
21
|
"colors": "^1.4.0",
|
|
22
|
-
"commander": "^
|
|
23
|
-
"fs-extra": "^
|
|
22
|
+
"commander": "^11.1.0",
|
|
23
|
+
"fs-extra": "^11.1.1",
|
|
24
24
|
"klaw-sync": "^6.0.0",
|
|
25
25
|
"lodash": "^4.17.21",
|
|
26
26
|
"pluralize": "^8.0.0",
|