mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
parent
5aab62f2fc
commit
b50951f4da
1 changed files with 20 additions and 28 deletions
|
@ -1,40 +1,32 @@
|
||||||
distributable:
|
distributable:
|
||||||
url: https://github.com/vitejs/vite/archive/refs/tags/v{{version.raw}}.tar.gz
|
url: https://registry.npmjs.org/vite/-/vite-{{version}}.tgz
|
||||||
strip-components: 1
|
strip-components: 1
|
||||||
|
|
||||||
versions:
|
versions:
|
||||||
github: vitejs/vite/tags
|
github: vitejs/vite/tags
|
||||||
strip: /v/
|
strip: /v/
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
nodejs.org: ^16 || ^18 || ^20
|
||||||
|
|
||||||
build:
|
build:
|
||||||
dependencies:
|
- npm install .
|
||||||
pnpm.io: '*'
|
--global
|
||||||
nodejs.org: ^16 || ^18 || ^20
|
--install-links
|
||||||
deno.land: ^1.39 # Required
|
--prefix="{{prefix}}"
|
||||||
script:
|
|
||||||
- mkdir -p {{prefix}}/bin
|
|
||||||
# prevent pnpm from using symlinks
|
|
||||||
- echo "node-linker=hoisted" >> .npmrc
|
|
||||||
- echo "node-linker=hoisted" >> packages/vite/.npmrc
|
|
||||||
|
|
||||||
- pnpm i
|
# minimize universal binaries
|
||||||
- rm -rf node_modules
|
#TODO should probs be a general step we perform in CI/CD
|
||||||
|
- run:
|
||||||
- run: |
|
- for x in $(pkgx fd --type x); do
|
||||||
pnpm i
|
# not all are unix binaries and I couldn’t find a command to filter
|
||||||
sed -i 's/163/200/g' rollup.config.ts
|
# for those properly
|
||||||
|
- |
|
||||||
# Required because it'll fail but still generate the required files
|
if lipo $x -thin $(uname -m) -output $x.new; then
|
||||||
pnpm build || true
|
mv $x.new $x
|
||||||
working-directory: packages/vite
|
fi
|
||||||
|
- done
|
||||||
- rm -rf node_modules
|
working-directory: ${{prefix}}/lib
|
||||||
- pnpm i
|
|
||||||
|
|
||||||
- deno compile -o vite -Ar --unstable --unstable-byonm --node-modules-dir node_modules/vite/bin/vite.js
|
|
||||||
- cp vite {{prefix}}/bin/vite
|
|
||||||
# deno binaries are destroyed if patchelfed
|
|
||||||
skip: fix-patchelf
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|
Loading…
Reference in a new issue