Unverified Commit 0338dcdf authored by Tobias Koppers's avatar Tobias Koppers Committed by GitHub

fix next.js own build on windows (#55544)

### What

allow to build next.js on windows

Closes WEB-1597

---------
Co-authored-by: 's avatarJJ Kasper <jj@jjsweb.site>
parent 4f98dc6f
...@@ -191,7 +191,7 @@ module.exports = ({ dev, turbo, bundleType, experimental }) => { ...@@ -191,7 +191,7 @@ module.exports = ({ dev, turbo, bundleType, experimental }) => {
module: { module: {
rules: [ rules: [
{ {
include: /vendored\/rsc\/entrypoints/, include: /vendored[\\/]rsc[\\/]entrypoints/,
resolve: { resolve: {
conditionNames: ['react-server', '...'], conditionNames: ['react-server', '...'],
alias: { alias: {
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
], ],
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"build": "rm -rf dist && tsc -d -p tsconfig.json", "build": "rimraf dist && tsc -d -p tsconfig.json",
"prepublishOnly": "cd ../../ && turbo run build", "prepublishOnly": "cd ../../ && turbo run build",
"dev": "tsc -d -w -p tsconfig.json", "dev": "tsc -d -w -p tsconfig.json",
"typescript": "tsec --noEmit -p tsconfig.json" "typescript": "tsec --noEmit -p tsconfig.json"
...@@ -25,7 +25,8 @@ ...@@ -25,7 +25,8 @@
"devDependencies": { "devDependencies": {
"next": "13.4.20-canary.38", "next": "13.4.20-canary.38",
"outdent": "0.8.0", "outdent": "0.8.0",
"prettier": "2.5.1" "prettier": "2.5.1",
"rimraf": "^3.0.2"
}, },
"peerDependencies": { "peerDependencies": {
"next": "^13.0.0", "next": "^13.0.0",
......
...@@ -1699,6 +1699,9 @@ importers: ...@@ -1699,6 +1699,9 @@ importers:
prettier: prettier:
specifier: 2.5.1 specifier: 2.5.1
version: 2.5.1 version: 2.5.1
rimraf:
specifier: ^3.0.2
version: 3.0.2
packages: packages:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment