From 92c16cbfca5c12e293f96d8d2efeaec96b3650ef Mon Sep 17 00:00:00 2001 From: jonathan schatz Date: Wed, 24 Aug 2022 14:27:16 -0700 Subject: [PATCH] use yarn everywhere --- .github/workflows/nodejs.yml | 4 ++-- package.json | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 70614e1..1422337 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -20,5 +20,5 @@ jobs: uses: actions/setup-node@v3 with: node-version: 16 - - run: npm run test - - run: npm run lint + - run: yarn test + - run: yarn lint diff --git a/package.json b/package.json index b25c9cc..d1055ad 100644 --- a/package.json +++ b/package.json @@ -57,12 +57,12 @@ "url": "git+https://github.com/modosc/global-jsdom.git" }, "scripts": { - "test": "npm run test:jsdom && npm run test:examples", - "test:jsdom": "npm run test:jsdom:esm && npm run test:jsdom:commonjs", - "test:jsdom:esm": "mocha --require test/setup.mjs test/*.test.mjs", - "test:jsdom:commonjs": "mocha --require test/setup.js test/*.test.js", + "test": "yarn test:jsdom && yarn test:examples", + "test:jsdom": "yarn test:jsdom:esm && yarn test:jsdom:commonjs", + "test:jsdom:esm": "yarn mocha --require test/setup.mjs test/*.test.mjs", + "test:jsdom:commonjs": "yarn mocha --require test/setup.js test/*.test.js", "test:examples": "cd examples && yarn install && yarn upgrade global-jsdom && yarn test; cd ..", - "lint": "eslint --ext=js,mjs --cache .eslintrc.js examples/ commonjs/ esm/ test/ ", - "lint:fix": "eslint --ext=js,mjs --cache --fix .eslintrc.js examples/ commonjs/ esm/ test/" + "lint": "yarn eslint --ext=js,mjs --cache .eslintrc.js examples/ commonjs/ esm/ test/ ", + "lint:fix": "yarn eslint --ext=js,mjs --cache --fix .eslintrc.js examples/ commonjs/ esm/ test/" } } \ No newline at end of file