upgrade yarn to pnpm because why not

This commit is contained in:
proddy
2025-05-18 15:53:38 +02:00
parent 2a50701107
commit d69f26acac
26 changed files with 6132 additions and 9379 deletions

View File

@@ -8,15 +8,15 @@ def buildWeb():
os.chdir("interface")
print("Building web interface...")
try:
env.Execute("yarn")
env.Execute("yarn typesafe-i18n --no-watch")
env.Execute("pnpm install")
env.Execute("pnpm typesafe-i18n --no-watch")
with open("./src/i18n/i18n-util.ts") as r:
text = r.read().replace("Locales = 'pl'", "Locales = 'en'")
with open("./src/i18n/i18n-util.ts", "w") as w:
w.write(text)
print("Setting WebUI locale to 'en'")
env.Execute("yarn build")
env.Execute("yarn webUI")
env.Execute("pnpm build")
env.Execute("pnpm webUI")
finally:
os.chdir("..")

View File

@@ -3,7 +3,7 @@
# and https://github.com/streetsidesoftware/vscode-spell-checker/blob/main/FAQ.md
# go to root top level directory
# install cpsell with yarn add --dev cspell@latest
# install cpsell with pnpm add --dev cspell@latest
# first time installation
# 1) run `npx cspell "**" --no-progress --unique > words-found-verbose.txt`

View File

@@ -5,27 +5,24 @@
# as well as GNUMake (make) and python3
cd interface
rm -rf yarn.lock node_modules
touch yarn.lock
rm -rf node_modules
ncu -u
yarn set version stable
yarn
yarn format
yarn lint
pnpm install
pnpm format
pnpm lint
cd ../mock-api
rm -rf yarn.lock node_modules
touch yarn.lock
rm -rf node_modules
ncu -u
yarn set version stable
yarn
yarn format
pnpm install
pnpm format
cd ..
cd interface
yarn build; yarn webUI
pnpm build
pnpm webUI
cd ..
npx cspell "**"
npx cspell "**"
sh ./scripts/generate_csv_and_headers.sh