Skip to content

Commit

Permalink
Merge tag v13.1.1 into v13.x to re-bundle version 13.0.4 to CLI v13.1…
Browse files Browse the repository at this point in the history
….1 using the latest bundled `webpack` v5
  • Loading branch information
thachnn committed May 27, 2023
2 parents 45cf8f0 + 30bb396 commit 3475e85
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 15 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nthachus/serve",
"version": "13.1.0",
"version": "13.1.1",
"description": "CLI bundle of vercel/serve, static file serving and directory listing",
"keywords": [
"vercel",
Expand Down
8 changes: 0 additions & 8 deletions webpack-deps.patch
Original file line number Diff line number Diff line change
Expand Up @@ -168,14 +168,6 @@
+ if (args['--virtual-path']) args['--virtual-path'] = args['--virtual-path'].replace(/^\/|\/$/g, '');
+
if (args._.length > 1) {
--- a/node_modules/signal-exit/index.js
+++ b/node_modules/signal-exit/index.js
@@ -5,3 +5,4 @@
+'use strict'
var process = global.process

-const processOk = function (process) {
+function processOk(process) {
--- a/node_modules/strip-ansi/index.js
+++ b/node_modules/strip-ansi/index.js
@@ -2 +2 @@
Expand Down
5 changes: 2 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ module.exports = {
/node_modules[\\/](boxen|camelcase|string|term|widest)\b/,
/node_modules[\\/](arg|clipboardy|is-(wsl|docker)|serve|update)\b/,
],
// exclude: /node_modules[\\/](ajv|color|debug|isexe|negotiator|signal)\b/,
loader: 'babel-loader',
options: {
cacheDirectory: true,
Expand Down Expand Up @@ -79,9 +78,9 @@ module.exports = {
options: { search: /\brequire\('minimist'\)\(process\.argv\b([\w.]|\(\w*\))*\)/, replace: '{}' },
},
{
test: /node_modules[\\/](ini.ini|content-disposition.index)\.js$/i,
test: /node_modules[\\/](ini.ini|(mime-types|content-disposition).index)\.js$/i,
loader: 'webpack/lib/replace-loader',
options: { search: /^(exports\.(stringify|safe)|module\.exports\.parse) *=/gm, replace: '//$&' },
options: { search: /^(exports\.(stringify|safe|extension)|module\.exports\.parse) *=/gm, replace: '//$&' },
},*/
],
},
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -486,9 +486,9 @@ shebang-regex@^1.0.0:
integrity sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==

signal-exit@^3.0.0:
version "3.0.7"
resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9"
integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==
version "3.0.5"
resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.5.tgz#9e3e8cc0c75a99472b44321033a7702e7738252f"
integrity sha512-KWcOiKeQj6ZyXx7zq4YxSMgHRlod4czeBQZrPb8OKcohcqAXShm7E20kEMle9WBt26hFcAf0qLOcp5zmY7kOqQ==

string-width@^4.0.0, string-width@^4.1.0:
version "4.2.3"
Expand Down

0 comments on commit 3475e85

Please sign in to comment.