@multiplatform.one/cli 1.0.24 → 1.0.26
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/bin/multiplatformOne.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// src/multiplatformOne.ts
|
|
1
|
+
// src/bin/multiplatformOne.ts
|
|
2
2
|
import path from "path";
|
|
3
3
|
import { execa } from "execa";
|
|
4
4
|
import { fileURLToPath } from "url";
|
|
@@ -6,7 +6,7 @@ import { program } from "commander";
|
|
|
6
6
|
program.name("multiplatform.one");
|
|
7
7
|
program.command("init").argument("[remote]", "the remote to use", "https://gitlab.com/bitspur/multiplatform.one/cookiecutter").description("init multiplatform.one").action(async (remote) => {
|
|
8
8
|
await execa("sh", [
|
|
9
|
-
path.resolve(path.dirname(fileURLToPath(import.meta.url)), "
|
|
9
|
+
path.resolve(path.dirname(fileURLToPath(import.meta.url)), "../../scripts/init.sh"),
|
|
10
10
|
remote
|
|
11
11
|
], {
|
|
12
12
|
stdio: "inherit"
|
|
@@ -14,7 +14,7 @@ program.command("init").argument("[remote]", "the remote to use", "https://gitla
|
|
|
14
14
|
});
|
|
15
15
|
program.command("update").argument("[remote]", "the remote to use", "https://gitlab.com/bitspur/multiplatform.one/cookiecutter").description("update multiplatform.one").action(async (remote) => {
|
|
16
16
|
await execa("sh", [
|
|
17
|
-
path.resolve(path.dirname(fileURLToPath(import.meta.url)), "
|
|
17
|
+
path.resolve(path.dirname(fileURLToPath(import.meta.url)), "../../scripts/update.sh"),
|
|
18
18
|
remote
|
|
19
19
|
], {
|
|
20
20
|
stdio: "inherit"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@multiplatform.one/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.26",
|
|
4
4
|
"author": "BitSpur <support@bitspur.com> (https://bitspur.com)",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -17,14 +17,14 @@
|
|
|
17
17
|
"import": "./lib/index.mjs",
|
|
18
18
|
"types": "./lib/index.d.mts"
|
|
19
19
|
},
|
|
20
|
-
"./multiplatformOne": {
|
|
21
|
-
"import": "./lib/multiplatformOne.mjs",
|
|
22
|
-
"types": "./lib/multiplatformOne.d.mts"
|
|
20
|
+
"./bin/multiplatformOne": {
|
|
21
|
+
"import": "./lib/bin/multiplatformOne.mjs",
|
|
22
|
+
"types": "./lib/bin/multiplatformOne.d.mts"
|
|
23
23
|
},
|
|
24
24
|
"./package.json": "./package.json"
|
|
25
25
|
},
|
|
26
26
|
"bin": {
|
|
27
|
-
"multiplatform.one": "./multiplatformOne"
|
|
27
|
+
"multiplatform.one": "./bin/multiplatformOne.mjs"
|
|
28
28
|
},
|
|
29
29
|
"files": [
|
|
30
30
|
"bin",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@types/node": "~20.12.13",
|
|
52
52
|
"tsup": "^8.1.0",
|
|
53
53
|
"typescript": "~5.3.3",
|
|
54
|
-
"@multiplatform.one/utils": "^0.0.
|
|
54
|
+
"@multiplatform.one/utils": "^0.0.11"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"commander": "^9.5.0",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* File: /src/multiplatformOne.ts
|
|
2
|
+
* File: /src/bin/multiplatformOne.ts
|
|
3
3
|
* Project: @multiplatform.one/cli
|
|
4
4
|
* File Created: 22-06-2024 14:17:12
|
|
5
5
|
* Author: Clay Risser
|
|
@@ -31,7 +31,7 @@ program
|
|
|
31
31
|
.argument('[remote]', 'the remote to use', 'https://gitlab.com/bitspur/multiplatform.one/cookiecutter')
|
|
32
32
|
.description('init multiplatform.one')
|
|
33
33
|
.action(async (remote) => {
|
|
34
|
-
await execa('sh', [path.resolve(path.dirname(fileURLToPath(import.meta.url)), '
|
|
34
|
+
await execa('sh', [path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../../scripts/init.sh'), remote], {
|
|
35
35
|
stdio: 'inherit',
|
|
36
36
|
});
|
|
37
37
|
});
|
|
@@ -41,7 +41,7 @@ program
|
|
|
41
41
|
.argument('[remote]', 'the remote to use', 'https://gitlab.com/bitspur/multiplatform.one/cookiecutter')
|
|
42
42
|
.description('update multiplatform.one')
|
|
43
43
|
.action(async (remote) => {
|
|
44
|
-
await execa('sh', [path.resolve(path.dirname(fileURLToPath(import.meta.url)), '
|
|
44
|
+
await execa('sh', [path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../../scripts/update.sh'), remote], {
|
|
45
45
|
stdio: 'inherit',
|
|
46
46
|
});
|
|
47
47
|
});
|
|
File without changes
|