From 7a6a24d631eafab07d4d43cdd8fede89576d2039 Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Fri, 14 Oct 2022 13:17:22 +0200 Subject: [PATCH] config stuff --- .github/workflows/test.yaml | 7 +++++++ .npmrc | 1 + package.json | 9 +++++++++ 3 files changed, 17 insertions(+) create mode 100644 .npmrc 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",