Skip to content

Commit

Permalink
fix: vite incompatibility, fixes jotaijs#82
Browse files Browse the repository at this point in the history
  • Loading branch information
aroman committed Jun 28, 2023
1 parent 0928374 commit 6a666e0
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,5 +169,10 @@
"react-error-boundary": "^3.1.4",
"react-json-tree": "^0.18.0",
"react-resizable-panels": "^0.0.53"
},
"pnpm": {
"patchedDependencies": {
"chalk@2.4.2": "patches/chalk@2.4.2.patch"
}
}
}
13 changes: 13 additions & 0 deletions patches/chalk@2.4.2.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/index.js b/index.js
index 1cc5fa89a951596647e711d84cf88b1410e4d3ea..c9a2dc12634d0fd68ebf8ba5c1276e03e169409b 100644
--- a/index.js
+++ b/index.js
@@ -5,7 +5,7 @@ const stdoutColor = require('supports-color').stdout;

const template = require('./templates.js');

-const isSimpleWindowsTerm = process.platform === 'win32' && !(process.env.TERM || '').toLowerCase().startsWith('xterm');
+const isSimpleWindowsTerm = false;

// `supportsColor.level` → `ansiStyles.color[name]` mapping
const levelMapping = ['ansi', 'ansi', 'ansi256', 'ansi16m'];
12 changes: 9 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6a666e0

Please sign in to comment.