publish-microfrontend 1.8.0-beta.7667 → 1.8.0-beta.7668
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/lib/index.js +2268 -6807
- package/package.json +25 -26
- package/src/browser.ts +2 -1
- package/src/index.ts +12 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "publish-microfrontend",
|
|
3
|
-
"version": "1.8.0-beta.
|
|
3
|
+
"version": "1.8.0-beta.7668",
|
|
4
4
|
"description": "A CLI for publishing micro frontends to a feed service.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"modules",
|
|
@@ -37,37 +37,36 @@
|
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"cleanup": "rimraf lib",
|
|
40
|
-
"build": "esbuild src/index.ts --bundle --outfile=lib/index.js --format=cjs --platform=node",
|
|
40
|
+
"build": "esbuild src/index.ts --bundle --outfile=lib/index.js --format=cjs --external:open --platform=node",
|
|
41
41
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
|
42
42
|
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"open": "^10"
|
|
45
|
+
},
|
|
43
46
|
"devDependencies": {
|
|
44
|
-
"@types/express": "^4
|
|
45
|
-
"@types/glob": "^
|
|
46
|
-
"@types/
|
|
47
|
-
"@types/
|
|
48
|
-
"@types/
|
|
49
|
-
"@types/
|
|
50
|
-
"@types/rc": "^1.1.0",
|
|
51
|
-
"@types/rimraf": "^2.0.2",
|
|
52
|
-
"@types/tar": "^4.0.0",
|
|
47
|
+
"@types/express": "^4",
|
|
48
|
+
"@types/glob": "^8",
|
|
49
|
+
"@types/jju": "^1",
|
|
50
|
+
"@types/mime": "^4",
|
|
51
|
+
"@types/node": "^18",
|
|
52
|
+
"@types/rc": "^1",
|
|
53
53
|
"@types/yargs": "^17",
|
|
54
54
|
"axios": "^1.7.7",
|
|
55
|
-
"chalk": "^
|
|
56
|
-
"enhanced-resolve": "^5
|
|
57
|
-
"form-data": "^
|
|
58
|
-
"get-port": "^
|
|
59
|
-
"glob": "^
|
|
60
|
-
"inquirer": "^
|
|
61
|
-
"is-interactive": "^2
|
|
62
|
-
"jju": "^1
|
|
63
|
-
"mime": "^
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"tar": "^6.2.0",
|
|
55
|
+
"chalk": "^5",
|
|
56
|
+
"enhanced-resolve": "^5",
|
|
57
|
+
"form-data": "^4",
|
|
58
|
+
"get-port": "^7",
|
|
59
|
+
"glob": "^8",
|
|
60
|
+
"inquirer": "^12",
|
|
61
|
+
"is-interactive": "^2",
|
|
62
|
+
"jju": "^1",
|
|
63
|
+
"mime": "^4",
|
|
64
|
+
"ora": "^8",
|
|
65
|
+
"rc": "^1",
|
|
66
|
+
"rimraf": "^6",
|
|
67
|
+
"tar": "^7",
|
|
69
68
|
"typescript": "^5",
|
|
70
69
|
"yargs": "^17"
|
|
71
70
|
},
|
|
72
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "1b32d52d4d57363bed8af9105dd41a0635075721"
|
|
73
72
|
}
|
package/src/browser.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import open from 'open';
|
|
2
1
|
import { logFail } from './log';
|
|
3
2
|
|
|
4
3
|
export async function openBrowserAt(address: string) {
|
|
5
4
|
try {
|
|
5
|
+
const name = 'open';
|
|
6
|
+
const open = await import(name).then((c) => c.default);
|
|
6
7
|
await open(address, undefined);
|
|
7
8
|
} catch (err) {
|
|
8
9
|
logFail('Failed to open the browser: %s', err);
|
package/src/index.ts
CHANGED
|
@@ -56,7 +56,18 @@ const args = yargs
|
|
|
56
56
|
.default('interactive', defaultArgs.interactive).argv;
|
|
57
57
|
|
|
58
58
|
async function run() {
|
|
59
|
-
const {
|
|
59
|
+
const {
|
|
60
|
+
cert,
|
|
61
|
+
source,
|
|
62
|
+
from,
|
|
63
|
+
url,
|
|
64
|
+
'api-key': apiKey,
|
|
65
|
+
'allow-self-signed': allowSelfSigned,
|
|
66
|
+
headers,
|
|
67
|
+
fields,
|
|
68
|
+
interactive,
|
|
69
|
+
mode,
|
|
70
|
+
} = args;
|
|
60
71
|
const sources = Array.isArray(source) ? source : [source];
|
|
61
72
|
const ca = await getCa(cert);
|
|
62
73
|
const agent = getAgent({ ca, allowSelfSigned });
|