mirror of
https://github.com/encounter/yarn.git
synced 2026-03-30 11:43:44 -07:00
23 lines
287 B
Bash
Executable File
23 lines
287 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
DIR="TEMP_LOCKFILE_CHECK"
|
|
|
|
# build yarn
|
|
npm run build
|
|
|
|
# create temp directory
|
|
rm -rf $DIR
|
|
mkdir $DIR
|
|
cp package.json yarn.lock $DIR
|
|
cd $DIR
|
|
|
|
# install with yarn and run check
|
|
../bin/yarn.js install --pure-lockfile
|
|
../bin/yarn.js check
|
|
|
|
# cleanup
|
|
cd ..
|
|
rm -rf $DIR
|