Skip to content

Commit

Permalink
fix(core): chalk navigator is not define
Browse files Browse the repository at this point in the history
Due to rollup not support `imports` in package.json

Relate issues:

chalk: [#113](chalk/supports-color#113)
chalk: [#578](chalk/chalk#578)
rollup: [#3514](rollup/rollup#3514)
  • Loading branch information
nemo-shen committed Oct 31, 2024
1 parent 2adc910 commit b5562ea
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 98 deletions.
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
"ink": "^5.0.1",
"react": "^18.3.1",
"terminal-kit": "^3.1.1",
"vuiter": "workspace:*",
"yoga-layout": "^3.1.0",
"yoga-layout-prebuilt": "^1.10.0",
"vuiter": "workspace:*"
"yoga-layout-prebuilt": "^1.10.0"
},
"devDependencies": {
"@types/blessed": "^0.1.25",
Expand All @@ -34,5 +34,10 @@
"tslib": "^2.6.3",
"typescript": "^5.5.4",
"vite": "^5.3.5"
},
"pnpm": {
"patchedDependencies": {
"chalk@5.3.0": "patches/chalk@5.3.0.patch"
}
}
}
14 changes: 14 additions & 0 deletions patches/chalk@5.3.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/package.json b/package.json
index 3c500105bcbf25bf2f7f6790b9db67b993f65459..d835c83fab7062912c256b64dcaae940cd82168a 100644
--- a/package.json
+++ b/package.json
@@ -11,8 +11,7 @@
"imports": {
"#ansi-styles": "./source/vendor/ansi-styles/index.js",
"#supports-color": {
- "node": "./source/vendor/supports-color/index.js",
- "default": "./source/vendor/supports-color/browser.js"
+ "default": "./source/vendor/supports-color/index.js"
}
},
"types": "./source/index.d.ts",
105 changes: 9 additions & 96 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 b5562ea

Please sign in to comment.