diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 5f8be4d..ac638fa 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -13,10 +13,17 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + + - name: Install Node + uses: actions/setup-node@v3 + with: + node-version: 16 + - name: Setup PNPM uses: pnpm/action-setup@v2 with: version: 7 + - name: Install dependencies run: pnpm install - name: Run tests diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..b6f27f1 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +engine-strict=true diff --git a/package.json b/package.json index 848735b..19074f0 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,12 @@ ], "author": "Niccolo Borgioli", "license": "MIT", + "engines": { + "node": ">=16", + "npm": "please-use-pnpm", + "yarn": "please-use-pnpm", + "pnpm": "7" + }, "type": "module", "exports": { ".": { @@ -23,6 +29,9 @@ "types": "./dist/esm/index.d.ts" } }, + "files": [ + "dist" + ], "scripts": { "docs": "typedoc", "test:node": "mocha",