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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "publish-microfrontend",
3
- "version": "1.8.0-beta.7667",
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.16.1",
45
- "@types/glob": "^7.1.1",
46
- "@types/inquirer": "^6.0.0",
47
- "@types/jju": "^1.4.2",
48
- "@types/mime": "^2.0.0",
49
- "@types/node": "18.0.1",
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": "^4.0.0",
56
- "enhanced-resolve": "^5.10.0",
57
- "form-data": "^3.0.0",
58
- "get-port": "^5.0.0",
59
- "glob": "^7.1.3",
60
- "inquirer": "^6.2.2",
61
- "is-interactive": "^2.0.0",
62
- "jju": "^1.4.0",
63
- "mime": "^2.5.2",
64
- "open": "^7.1.0",
65
- "ora": "^6.1.2",
66
- "rc": "^1.2.8",
67
- "rimraf": "^3.0.0",
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": "658a8503fdf62c503e4d7cbe86cb3f6da0b2d76d"
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 { cert, source, from, url, 'api-key': apiKey, 'allow-self-signed': allowSelfSigned, headers, fields, interactive, mode } = args;
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 });