Skip to content

Commit 14fb2a8

Browse files
author
Raushan Kumar Raman
committed
[#6164] move from yarn to plain npm
1 parent eb2201e commit 14fb2a8

File tree

5 files changed

+18633
-6368
lines changed

5 files changed

+18633
-6368
lines changed

.github/workflows/yarn_lint_and_test.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

bin/npm

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env ruby
2+
APP_ROOT = File.expand_path('..', __dir__)
3+
Dir.chdir(APP_ROOT) do
4+
npm = ENV["PATH"].split(File::PATH_SEPARATOR).
5+
select { |dir| File.expand_path(dir) != __dir__ }.
6+
product(["npm", "npm.cmd", "npm.ps1"]).
7+
map { |dir, file| File.expand_path(file, dir) }.
8+
find { |file| File.executable?(file) }
9+
10+
if npm
11+
command = ARGV.empty? ? ["install"] : ARGV
12+
exec npm, *command
13+
else
14+
$stderr.puts "npm executable was not detected in the system."
15+
$stderr.puts "Download npm by installing Node.js from https://nodejs.org/"
16+
exit 1
17+
end
18+
end

bin/yarn

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)