1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-09-29 00:10:58 -04:00

Update Yarn config and handle macOS paths properly

This commit is contained in:
toast-ts 2024-02-28 20:16:11 +11:00
parent 14113009aa
commit af8cbb016c
4 changed files with 11 additions and 11 deletions

View File

@ -1,5 +1,6 @@
{
"recommendations": [
"arcanis.vscode-zipfs"
"arcanis.vscode-zipfs",
"usernamehw.errorlens"
]
}

View File

@ -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/

View File

@ -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",

View File

@ -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);
}