diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0840638..f49cdf0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,7 +13,6 @@ jobs: - 18 - 16 - 14 - - 12 steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 diff --git a/package.config.ts b/package.config.ts index 8eb5a9d..e211bec 100644 --- a/package.config.ts +++ b/package.config.ts @@ -5,13 +5,10 @@ import {name, version} from './package.json' export default defineConfig({ extract: { rules: { - 'ae-missing-release-tag': 'off', 'tsdoc-undefined-tag': 'off', }, }, - legacyExports: true, - rollup: { plugins: [ visualizer({ diff --git a/package.json b/package.json index bd0760f..7f19b1a 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,27 @@ "version": "0.1.0", "description": "Streaming, source-agnostic EventSource/Server-Sent Events parser", "sideEffects": false, - "types": "./dist/index.d.ts", - "source": "./src/index.ts", - "module": "./dist/index.esm.js", - "main": "./dist/index.js", + "type": "module", "exports": { ".": { "types": "./dist/index.d.ts", "source": "./src/index.ts", - "require": "./dist/index.js", - "node": { - "import": "./dist/index.cjs.mjs", - "require": "./dist/index.js" - }, - "import": "./dist/index.esm.js", - "default": "./dist/index.esm.js" + "require": "./dist/index.cjs", + "import": "./dist/index.js", + "default": "./dist/index.js" }, "./package.json": "./package.json" }, + "main": "./dist/index.cjs", + "module": "./dist/index.js", + "source": "./src/index.ts", + "types": "./dist/index.d.ts", "scripts": { "clean": "rimraf dist coverage", "build": "pkg-utils build && pkg-utils --strict", "prebuild": "npm run clean", "lint": "eslint . && tsc --noEmit", - "test": "vitest", + "test": "vitest --reporter=verbose", "posttest": "npm run lint", "prepublishOnly": "npm run build" }, diff --git a/tsconfig.settings.json b/tsconfig.settings.json index 8f7271c..ea1cbc7 100644 --- a/tsconfig.settings.json +++ b/tsconfig.settings.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "ES2020", + "target": "ES2015", "declaration": true, "declarationMap": true, "sourceMap": true,