mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-12-25 10:55:37 -05:00
Update Yarn config and handle macOS paths properly
This commit is contained in:
parent
14113009aa
commit
af8cbb016c
3
.vscode/extensions.json
vendored
3
.vscode/extensions.json
vendored
@ -1,5 +1,6 @@
|
||||
{
|
||||
"recommendations": [
|
||||
"arcanis.vscode-zipfs"
|
||||
"arcanis.vscode-zipfs",
|
||||
"usernamehw.errorlens"
|
||||
]
|
||||
}
|
||||
|
10
.yarnrc.yml
10
.yarnrc.yml
@ -1,9 +1,13 @@
|
||||
compressionLevel: mixed
|
||||
|
||||
enableGlobalCache: false
|
||||
|
||||
progressBarStyle: "simba"
|
||||
|
||||
defaultSemverRangePrefix: ""
|
||||
supportedArchitectures:
|
||||
os:
|
||||
- "linux"
|
||||
- "darwin"
|
||||
cpu:
|
||||
- "x64"
|
||||
npmScopes:
|
||||
toast:
|
||||
npmRegistryServer: https://git.toast-server.net/api/packages/toast/npm/
|
||||
|
@ -12,17 +12,12 @@
|
||||
"sdk": "yarn dlx @yarnpkg/sdks vscode"
|
||||
},
|
||||
"author": "Toast",
|
||||
"license": "ISC",
|
||||
"os": [
|
||||
"win32",
|
||||
"linux",
|
||||
"darwin"
|
||||
],
|
||||
"cpu": [
|
||||
"x64",
|
||||
"!arm64",
|
||||
"!mips",
|
||||
"!ia32"
|
||||
"x64"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=18.18.0, <19 || >=20",
|
||||
|
@ -1,4 +1,4 @@
|
||||
export default (text:string)=>{
|
||||
const dirSlash = process.platform === 'linux' ? '\/' : '\\';
|
||||
const dirSlash = (process.platform === 'linux' || process.platform === 'darwin') ? '\/' : '\\';
|
||||
return text?.replace(/(?<=\/Users\/|\/home\/|\/media\/)[^/]+/g, match=>'・'.repeat(match.length)).split(dirSlash).join(dirSlash);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user