This is an automated email from the ASF dual-hosted git repository.

randall pushed a commit to branch 154-yarn-to-npm
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git

commit b06f55d652f26c5a9d12133c48428befbbcd80cf
Author: Randall Leeds <[email protected]>
AuthorDate: Sat Oct 14 21:10:27 2023 -0700

    Replace yarn with npm
---
 .husky/pre-commit |  2 +-
 .ratignore        |  2 +-
 Makefile          |  8 ++++----
 lerna.json        |  4 ----
 package.json      | 16 +++++++---------
 5 files changed, 13 insertions(+), 19 deletions(-)

diff --git a/.husky/pre-commit b/.husky/pre-commit
index 98b849d..3db59e8 100755
--- a/.husky/pre-commit
+++ b/.husky/pre-commit
@@ -21,4 +21,4 @@
 
 . "$(dirname "$0")/_/husky.sh"
 
-yarn run lint-staged
+npx lint-staged
diff --git a/.ratignore b/.ratignore
index 812a6c5..6cc9b3f 100644
--- a/.ratignore
+++ b/.ratignore
@@ -4,9 +4,9 @@
 lerna\.json
 node_modules
 package\.json
+package-lock\.json
 tsconfig(\.\w+)?\.json
 typedoc\.json
-yarn\.lock
 CODE_OF_CONDUCT\.md
 DISCLAIMER-WIP
 LICENSES
diff --git a/Makefile b/Makefile
index 24be6de..b2045bd 100644
--- a/Makefile
+++ b/Makefile
@@ -37,22 +37,22 @@ all: build
 
 .PHONY: build
 build:
-       @yarn
+       @npm install
 
 .PHONY: clean
 clean:
-       @yarn run clean
+       @npm run clean
 
 .PHONY: check
 check: lint test
 
 .PHONY: lint
 lint: build
-       @yarn lint
+       @npm run lint
 
 .PHONY: test
 test: build
-       @yarn test
+       @npm run test
 
 ifeq ($(vsn_tag),)
 
diff --git a/lerna.json b/lerna.json
index dfbadf3..d37b642 100644
--- a/lerna.json
+++ b/lerna.json
@@ -1,9 +1,5 @@
 {
   "version": "0.3.0",
-  "npmClient": "yarn",
-  "packages": [
-    "packages/*"
-  ],
   "command": {
     "publish": {
       "preDistTag": "dev",
diff --git a/package.json b/package.json
index 30eb50c..df55d1a 100644
--- a/package.json
+++ b/package.json
@@ -9,13 +9,11 @@
   },
   "license": "Apache-2.0",
   "author": "Apache Software Foundation",
-  "workspaces": {
-    "packages": [
-      "packages/*"
-    ]
-  },
+  "workspaces": [
+    "packages/*"
+  ],
   "scripts": {
-    "build": "concurrently yarn:build:*",
+    "build": "concurrently npm:build:*",
     "build:js": "lerna exec --parallel -- babel -d lib -s -x .ts --env-name 
production --root-mode upward src",
     "build:misc": "lerna exec --parallel -- shx cp ../../DISCLAIMER-WIP 
../../LICENSE ../../NOTICE ../../README.md .",
     "build:types": "tsc --build",
@@ -23,10 +21,10 @@
     "docs": "tsc --build && typedoc",
     "lint": "eslint .",
     "prepare": "is-ci || shx test -d .git || exit 0 && husky install",
-    "prepublishOnly": "yarn run build",
+    "prepublishOnly": "npm run build",
     "publish": "lerna publish",
-    "publish:ci": "yarn run publish --canary --exact --force-publish '*' 
--no-verify-access --yes minor",
-    "start": "yarn run web:server",
+    "publish:ci": "npm run publish --canary --exact --force-publish '*' 
--no-verify-access --yes minor",
+    "start": "npm run web:server",
     "test": "cross-env BABEL_ENV=test c8 -a -r html -r text mocha 
packages/**/*.test.ts",
     "test:watch": "cross-env BABEL_ENV=test mocha -p -w packages/**/*.test.ts",
     "validate": "cross-env BABEL_ENV=test mocha test/**/*.test.ts",

Reply via email to