2
0
mirror of https://github.com/moebooru/moebooru synced 2025-08-22 01:47:48 +00:00

More yarn removal

This commit is contained in:
nanaya 2022-02-12 07:19:10 +09:00
parent 6af4829c4c
commit fff02aebfc
3 changed files with 2 additions and 22 deletions

View File

@ -29,9 +29,9 @@ jobs:
- uses: actions/setup-node@v2 - uses: actions/setup-node@v2
with: with:
cache: yarn cache: npm
- run: yarn install - run: npm install
- uses: ruby/setup-ruby@v1 - uses: ruby/setup-ruby@v1
with: with:

3
.gitignore vendored
View File

@ -16,9 +16,6 @@
/public/packs /public/packs
/public/packs-test /public/packs-test
/node_modules /node_modules
/yarn-error.log
yarn-debug.log*
.yarn-integrity
/app/assets/builds/* /app/assets/builds/*
!/app/assets/builds/.keep !/app/assets/builds/.keep

View File

@ -1,17 +0,0 @@
#!/usr/bin/env ruby
APP_ROOT = File.expand_path('..', __dir__)
Dir.chdir(APP_ROOT) do
yarn = ENV["PATH"].split(File::PATH_SEPARATOR).
select { |dir| File.expand_path(dir) != __dir__ }.
product(["yarn", "yarn.cmd", "yarn.ps1"]).
map { |dir, file| File.expand_path(file, dir) }.
find { |file| File.executable?(file) }
if yarn
exec yarn, *ARGV
else
$stderr.puts "Yarn executable was not detected in the system."
$stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install"
exit 1
end
end