mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-06-18 18:54:34 +08:00
- Create a script which runs licensee for all workspaces - Remove redundant licenses (CC0-1.0 and ISC) are in the blueOak list already - Remove redundant package exceptions. These have either fixed their license metadata, or are no longer dependencies of Discourse - Bump version on jspreadsheet-ce exception
36 lines
650 B
Ruby
Executable file
Vendored
36 lines
650 B
Ruby
Executable file
Vendored
#!/usr/bin/env ruby
|
|
# frozen_string_literal: true
|
|
|
|
root = File.expand_path("..", __dir__)
|
|
config = File.join(root, ".licensee.json")
|
|
|
|
recursive_opts = %w[-r --parallel --filter=!./plugins/*]
|
|
|
|
begin
|
|
system(
|
|
"pnpm",
|
|
*recursive_opts,
|
|
"exec",
|
|
"ln",
|
|
"-sf",
|
|
config,
|
|
".licensee.json",
|
|
chdir: root,
|
|
exception: true,
|
|
)
|
|
|
|
ok =
|
|
system(
|
|
"pnpm",
|
|
*recursive_opts,
|
|
"--include-workspace-root",
|
|
"exec",
|
|
"licensee",
|
|
"--errors-only",
|
|
chdir: root,
|
|
)
|
|
|
|
exit(ok ? 0 : 1)
|
|
ensure
|
|
system("pnpm", *recursive_opts, "--no-bail", "exec", "rm", "-f", ".licensee.json", chdir: root)
|
|
end
|