diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 6c635c1..8caed43 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -21,6 +21,12 @@ updates: - erunion labels: - dependencies + groups: + minor-development-deps: + dependency-type: 'development' + update-types: + - minor + - patch commit-message: prefix: chore(deps) prefix-development: chore(deps-dev) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index be4cee5..87f6508 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,10 +10,10 @@ jobs: linting: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 cache: npm - run: npm ci @@ -24,12 +24,11 @@ jobs: strategy: matrix: node-version: - - 16 - 18 - 20 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 diff --git a/package-lock.json b/package-lock.json index 0a965f8..2d5e557 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,7 +22,7 @@ "vitest": "^0.34.3" }, "engines": { - "node": ">=16" + "node": ">=18" }, "peerDependencies": { "oas": "^21.0.0" diff --git a/package.json b/package.json index bb7000a..70e327d 100644 --- a/package.json +++ b/package.json @@ -5,23 +5,26 @@ "author": "Jon Ursenbach ", "license": "ISC", "sideEffects": false, - "main": "dist/index.js", - "module": "dist/index.mjs", - "types": "dist/index.d.ts", + "type": "module", "exports": { ".": { - "types": "./dist/index.d.ts", - "require": "./dist/index.js", - "import": "./dist/index.mjs" + "require": "./dist/index.cjs", + "import": "./dist/index.js" } }, + "main": "dist/index.cjs", + "module": "dist/index.js", + "types": "dist/index.d.cts", + "engines": { + "node": ">=18" + }, + "files": [ + "dist" + ], "repository": { "type": "git", "url": "git://github.com/readmeio/oas-extensions.git" }, - "engines": { - "node": ">=16" - }, "scripts": { "build": "tsup", "lint": "eslint . --ext .js,.ts", diff --git a/tsconfig.json b/tsconfig.json index 32babd9..61105b0 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,8 +4,8 @@ "baseUrl": "./src/", "declaration": true, "esModuleInterop": true, - "lib": ["DOM", "ES2020"], - "moduleResolution": "node", + "module": "ESNext", + "moduleResolution": "bundler", "noImplicitAny": true, "outDir": "./dist", "target": "ES2020"