mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
fix(vite) (#4208)
* fix(vite) * Fix * Update package.yml * try to fix * Update package.yml * try * fix * Update package.yml * Update package.yml * Update package.yml * Update package.yml * try fix * debug * try * Update package.yml * fix typo * fix * remove debug * try again * Update package.yml * try * fix * let's see * try again * Update package.yml * Update package.yml * Update package.yml * Update package.yml * Update package.yml * Update package.yml * Update package.yml * Update package.yml * Update package.yml * Update package.yml * Update package.yml * Update package.yml * Update package.yml * Update package.yml * Update package.yml * Update package.yml * Update package.yml * Update package.yml * Update package.yml * Update package.yml * clean up scripts --------- Co-authored-by: Jacob Heider <jacob@pkgx.dev>
This commit is contained in:
parent
506a249b68
commit
fbab28bd5f
1 changed files with 31 additions and 11 deletions
|
@ -1,4 +1,6 @@
|
|||
distributable: ~
|
||||
distributable:
|
||||
url: https://github.com/vitejs/vite/archive/refs/tags/v{{version.raw}}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
github: vitejs/vite/tags
|
||||
|
@ -6,19 +8,37 @@ versions:
|
|||
|
||||
build:
|
||||
dependencies:
|
||||
deno.land: "*"
|
||||
script: |
|
||||
{{pkgx.prefix}}/pkgx.sh/brewkit/v0/bin/pkg --version
|
||||
mkdir -p "{{prefix}}"/bin
|
||||
deno compile -Ar npm:vite@{{version.raw}} -o vite
|
||||
mv vite "{{prefix}}"/bin/vite # If the binay doesn't get built, the build will fail, not the tests. So, we'll know.
|
||||
# Required. Else, wouldn't work.
|
||||
pnpm.io: "*"
|
||||
nodejs.org: ^16 || ^18 || ^20
|
||||
deno.land: ^1.39 # Required
|
||||
script:
|
||||
- mkdir -p {{prefix}}/bin
|
||||
# prevent pnpm from using symlinks
|
||||
- echo "node-linker=hoisted" >> .npmrc
|
||||
- echo "node-linker=hoisted" >> packages/vite/.npmrc
|
||||
|
||||
- pnpm i
|
||||
- rm -rf node_modules
|
||||
|
||||
- run: |
|
||||
pnpm i
|
||||
sed -i 's/163/200/g' rollup.config.ts
|
||||
|
||||
# Required because it'll fail but still generate the required files
|
||||
pnpm build || true
|
||||
working-directory: packages/vite
|
||||
|
||||
- rm -rf node_modules
|
||||
- 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:
|
||||
script: |
|
||||
vite --version
|
||||
test "$(vite --version | grep -o 'vite/[^ ]*')" = "vite/{{version.raw}}"
|
||||
- vite --version
|
||||
- test "$(vite --version | grep -o 'vite/[^ ]*')" = "vite/{{version.raw}}"
|
||||
|
||||
provides:
|
||||
- bin/vite
|
||||
|
|
Loading…
Reference in a new issue