diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d452add..88e8bc9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,7 @@ jobs: - name: Import packed dist with Node run: | set -euo pipefail - tarball=$(npm pack) + tarball=$(npm pack --silent | tail -n 1) tmpdir=$(mktemp -d) trap 'rm -rf "$tmpdir" "$tarball"' EXIT cd "$tmpdir" diff --git a/IMPLEMENTATION.md b/IMPLEMENTATION.md index a86cfb4..971059b 100644 --- a/IMPLEMENTATION.md +++ b/IMPLEMENTATION.md @@ -9,7 +9,6 @@ load this package's TypeScript source. ```json "exports": { ".": { - "intx-src": "./src/index.ts", "types": "./dist/index.d.ts", "default": "./dist/index.js" } diff --git a/package.json b/package.json index a6911ed..55e8272 100644 --- a/package.json +++ b/package.json @@ -5,15 +5,17 @@ "license": "LGPL-2.1-only", "author": "Sawyer Cutler ", "type": "module", + "main": "./dist/index.js", + "types": "./dist/index.d.ts", "exports": { ".": { - "intx-src": "./src/index.ts", "types": "./dist/index.d.ts", "default": "./dist/index.js" } }, "scripts": { "build": "tsc -p tsconfig.build.json", + "prepack": "bun run build", "typecheck": "tsc --noEmit", "test": "bun test ./src", "format": "prettier -w ." diff --git a/tsconfig.build.json b/tsconfig.build.json index 6fa7957..b7347aa 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -1,11 +1,26 @@ { - "extends": "./tsconfig.json", "compilerOptions": { - "noEmit": false, + "target": "ESNext", + "module": "NodeNext", + "moduleResolution": "NodeNext", + "allowImportingTsExtensions": false, + "declaration": true, + "declarationMap": false, + "sourceMap": false, "outDir": "dist", "rootDir": "src", - "moduleResolution": "bundler", - "customConditions": [] + "strict": true, + "noUncheckedIndexedAccess": true, + "noImplicitOverride": true, + "exactOptionalPropertyTypes": true, + "esModuleInterop": true, + "skipLibCheck": true, + "isolatedModules": true, + "verbatimModuleSyntax": true, + "moduleDetection": "force", + "lib": ["ESNext"], + "composite": false }, + "include": ["src"], "exclude": ["src/**/*.test.ts"] }