Skip to content

Commit d99b8da

Browse files
committed
Replace yarn with npm
Close #154.
1 parent a45684a commit d99b8da

File tree

9 files changed

+16604
-8956
lines changed

9 files changed

+16604
-8956
lines changed

.github/workflows/node.js.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ jobs:
2626
with:
2727
node-version: ${{ matrix.node-version }}
2828
cache: 'npm'
29-
- run: yarn install --frozen-lockfile
29+
- run: npm ci
3030
- run: npm run build --if-present
3131
- run: npm test

.husky/pre-commit

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@
2121

2222
. "$(dirname "$0")/_/husky.sh"
2323

24-
yarn run lint-staged
24+
npx lint-staged

.ratignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
lerna\.json
55
node_modules
66
package\.json
7+
package-lock\.json
78
tsconfig(\.\w+)?\.json
89
typedoc\.json
9-
yarn\.lock
1010
CODE_OF_CONDUCT\.md
1111
DISCLAIMER-WIP
1212
LICENSES

Makefile

+4-4
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,22 @@ all: build
3737

3838
.PHONY: build
3939
build:
40-
@yarn
40+
@npm install
4141

4242
.PHONY: clean
4343
clean:
44-
@yarn run clean
44+
@npm run clean
4545

4646
.PHONY: check
4747
check: lint test
4848

4949
.PHONY: lint
5050
lint: build
51-
@yarn lint
51+
@npm run lint
5252

5353
.PHONY: test
5454
test: build
55-
@yarn test
55+
@npm run test
5656

5757
ifeq ($(vsn_tag),)
5858

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ See documentation on the website: <https://annotator.apache.org/docs/>
1010

1111
## How to build
1212

13-
Build requirements are [Node.JS](https://nodejs.org/) (>= 16) and [yarn](https://yarnpkg.com) (>= 1.5.0).
13+
Building Annatator libraries requires [Node.JS](https://nodejs.org/) (>= 18).
1414
All other dependencies are automatically installed as part of the build.
1515

1616
* `npm run build` -- builds the project
@@ -26,7 +26,7 @@ All other dependencies are automatically installed as part of the build.
2626

2727
# License
2828

29-
This project is available as open source under the terms of the Apache 2.0 License.
29+
This project is available as open source under the terms of the Apache 2.0 License.
3030
For accurate information, please check individual files.
3131

3232
# Disclaimer

lerna.json

-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
{
22
"version": "0.3.0",
3-
"npmClient": "yarn",
4-
"packages": [
5-
"packages/*"
6-
],
73
"command": {
84
"publish": {
95
"preDistTag": "dev",

0 commit comments

Comments
 (0)