diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 49c9d2093..5b7ef2f14 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,8 +21,11 @@ jobs: uses: actions/setup-node@v2 with: node-version: lts/* - - name: Install - run: npm install --no-package-lock + - name: Setup PNPM + uses: pnpm/action-setup@v2 + with: + version: latest + run_install: true - name: Test run: npm test env: diff --git a/.npmrc b/.npmrc index e03e941f7..fc6c85ec0 100644 --- a/.npmrc +++ b/.npmrc @@ -1,4 +1,5 @@ -unsafe-perm=true +enable-pre-post-scripts=true save-prefix=~ -shrinkwrap=false save=false +shrinkwrap=false +unsafe-perm=true diff --git a/package.json b/package.json index 9c308e389..ff38e215e 100644 --- a/package.json +++ b/package.json @@ -126,19 +126,20 @@ }, "scripts": { "build": "gulp build", - "clean": "lerna clean --yes && rm -rf node_modules", - "contributors": "(lerna exec finepack --parallel && git-authors-cli && finepack && git add package.json && git commit -m 'build: contributors' --no-verify) || true", + "clean": "pnpm --recursive --parallel exec -- rm -rf node_modules", + "contributors": "npm run contributors:add && npm run contributors:commit", + "contributors:add": "pnpm --recursive --parallel exec -- finepack", + "contributors:commit": "(git-authors-cli && finepack && git add package.json && git commit -m 'build: contributors' --no-verify) || true", "coverage": "c8 report --reporter=text-lcov > coverage/lcov.info", "dev": "concurrently \"gulp\" \"npm run dev:server\"", "dev:server": "browser-sync start --server --files \"index.html, README.md, static/**/*.(css|js)\"", - "install": "lerna bootstrap --no-ci --force-local", "lint": "standard-markdown README.md && standard", "prerelease": "npm run contributors", "pretest": "npm run lint", "release": "lerna publish --yes --sort --conventional-commits -m \"chore(release): %s\" --create-release github", "test": "c8 lerna exec npm run test", - "update": "lerna exec ncu -- --upgrade && ncu -- --upgrade", - "update:check": "lerna exec ncu -- --errorLevel 2 -x iso-639-3 && ncu -- --errorLevel 2" + "update": "pnpm --recursive --parallel exec -- ncu -- --upgrade", + "update:check": "pnpm --recursive --parallel exec -- ncu -- --errorLevel 2" }, "private": true, "license": "MIT", diff --git a/packages/metascraper-spotify/__snapshots__/index.js.snap-shot b/packages/metascraper-spotify/__snapshots__/index.js.snap-shot index 21d634819..1efb893bf 100644 --- a/packages/metascraper-spotify/__snapshots__/index.js.snap-shot +++ b/packages/metascraper-spotify/__snapshots__/index.js.snap-shot @@ -1,5 +1,5 @@ exports['2af78bfdad666ee6542dc33e30916a7a0d83b88ec8aa1d97e5acc0a8023e3519 1'] = { - "audio": "string", + "audio": "null", "author": "string", "date": "string", "description": "null", @@ -59,7 +59,7 @@ exports['2af78bfdad666ee6542dc33e30916a7a0d83b88ec8aa1d97e5acc0a8023e3519 5'] = } exports['2af78bfdad666ee6542dc33e30916a7a0d83b88ec8aa1d97e5acc0a8023e3519 6'] = { - "audio": "string", + "audio": "null", "author": "string", "date": "string", "description": "null", @@ -155,7 +155,7 @@ exports['2af78bfdad666ee6542dc33e30916a7a0d83b88ec8aa1d97e5acc0a8023e3519 13'] = } exports['2af78bfdad666ee6542dc33e30916a7a0d83b88ec8aa1d97e5acc0a8023e3519 14'] = { - "audio": "string", + "audio": "null", "author": "string", "date": "string", "description": "null", @@ -203,7 +203,7 @@ exports['2af78bfdad666ee6542dc33e30916a7a0d83b88ec8aa1d97e5acc0a8023e3519 17'] = } exports['2af78bfdad666ee6542dc33e30916a7a0d83b88ec8aa1d97e5acc0a8023e3519 18'] = { - "audio": "string", + "audio": "null", "author": "string", "date": "string", "description": "null", diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml new file mode 100644 index 000000000..18ec407ef --- /dev/null +++ b/pnpm-workspace.yaml @@ -0,0 +1,2 @@ +packages: + - 'packages/*'