From 901ba0b896f962bb2d8f00ec1474690c6bd298d2 Mon Sep 17 00:00:00 2001 From: Eric Schultz Date: Sat, 24 Oct 2020 23:55:31 -0500 Subject: [PATCH] Make notice:js available from yarn only --- lib/tasks/notice.rake | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/tasks/notice.rake b/lib/tasks/notice.rake index 5fc282a4..cf3ae026 100644 --- a/lib/tasks/notice.rake +++ b/lib/tasks/notice.rake @@ -39,7 +39,7 @@ namespace :notice do end namespace :js do - notice_cmd = "npx @houdiniproject/noticeme@^1.1.0-pre1 -f NOTICE-js -i included.json -s 250" + notice_cmd = "yarn notice:js" desc "generating NOTICE-js from ClearlyDefined.io" task :update do diff --git a/package.json b/package.json index 0d5090ca..3b263b29 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,8 @@ "build-html-storybook": "bin/build-html-storybook -c .storybook/html", "markdownlint": "npx markdownlint-cli **/*.md --ignore node_modules", "prepare-for-push": "yarn test && yarn eslint --fix && yarn markdownlint --fix && bin/rails notice:update", - "prepare-for-push-js": "yarn jest && yarn eslint --fix && yarn markdownlint --fix && bin/rails notice:js:update" + "prepare-for-push-js": "yarn jest && yarn eslint --fix && yarn markdownlint --fix && bin/rails notice:js:update", + "notice:js": "npx @houdiniproject/noticeme@^1.1.0-pre1 -f NOTICE-js -i included.json -s 250" }, "devDependencies": { "@babel/core": "^7.0.0",