diff --git a/.gitignore b/.gitignore index a98bb0c2..c2f3e3fc 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ /lib/packages /.env /scripts/mock/demo/dist/ +/packages/*/node_modules diff --git a/.npmrc b/.npmrc new file mode 100644 index 00000000..a76cc31d --- /dev/null +++ b/.npmrc @@ -0,0 +1,3 @@ +#loglevel=verbose +audit=false +logs-max=0 \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index c485c2e0..f457865d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +* 2.3.4 + - fixed dependency `open` to support Node 16 + * 2.3.3 - updated dependencies diff --git a/lib/cli.js b/lib/cli.js index b7b94d8f..8b9b19de 100644 --- a/lib/cli.js +++ b/lib/cli.js @@ -11,7 +11,7 @@ const KSR = require('koa-static-resolver'); const Koa = require('koa'); const CG = require('console-grid'); -const { program } = require('./packages/monocart-vendor.js'); +const { program, open } = require('./packages/monocart-vendor.js'); const defaultOptions = require('./default/options.js'); const version = require('../package.json').version; @@ -81,8 +81,7 @@ const showIpInfo = (protocol, port) => { }; const openUrl = async (p) => { - const open = await import('open'); - await open.default(p); + await open(p); }; const createServer = (app, options) => { diff --git a/package.json b/package.json index 13f1c13b..186de092 100644 --- a/package.json +++ b/package.json @@ -47,22 +47,22 @@ "koa": "~2.15.0", "koa-static-resolver": "~1.0.5", "lz-utils": "~2.0.2", - "monocart-coverage-reports": "~2.5.3", - "monocart-formatter": "~2.3.1", - "nodemailer": "~6.9.9", - "open": "~10.0.3", + "monocart-coverage-reports": "~2.5.7", + "monocart-formatter": "~2.3.2", + "nodemailer": "~6.9.10", "turbogrid": "~3.0.13" }, "devDependencies": { "@playwright/test": "^1.41.2", "axios": "^1.6.7", "dotenv": "^16.4.5", - "eslint": "^8.56.0", + "eslint": "^8.57.0", "eslint-config-plus": "^1.0.6", "eslint-plugin-html": "^8.0.0", - "eslint-plugin-vue": "^9.21.1", + "eslint-plugin-vue": "^9.22.0", + "open": "8.4.2", "stylelint": "^15.11.0", "stylelint-config-plus": "^1.0.4", "vine-ui": "^3.1.13" } -} +} \ No newline at end of file diff --git a/packages/network/package.json b/packages/network/package.json index f2f013ab..c122e80c 100644 --- a/packages/network/package.json +++ b/packages/network/package.json @@ -7,9 +7,9 @@ ], "license": "MIT", "dependencies": { - "monocart-code-viewer": "~1.1.0", + "monocart-code-viewer": "~1.1.1", "monocart-common": "~2.3.3", - "monocart-formatter": "~2.3.1", + "monocart-formatter": "~2.3.2", "turbogrid": "~3.0.13" }, "devDependencies": {} diff --git a/packages/vendor/src/index.js b/packages/vendor/src/index.js index a6098aeb..5cbb9163 100644 --- a/packages/vendor/src/index.js +++ b/packages/vendor/src/index.js @@ -3,6 +3,7 @@ import { codeFrameColumns } from '@babel/code-frame'; import WebSocket, { WebSocketServer } from 'ws'; import sanitize from 'sanitize-filename'; import { program } from 'commander'; +import open from 'open'; export { StackUtils, @@ -10,5 +11,6 @@ export { WebSocket, WebSocketServer, sanitize, - program + program, + open }; diff --git a/scripts/conf.cli.js b/scripts/conf.cli.js index effa0059..565ae387 100644 --- a/scripts/conf.cli.js +++ b/scripts/conf.cli.js @@ -118,6 +118,13 @@ module.exports = { enable: 'lint + build' }, + outdate: { + exclude: [ + 'stylelint', + 'open' + ] + }, + build: { vendors: ['common', 'app', 'network'],