From bb98d759957b29da74c1ce8237644123cd3fedd6 Mon Sep 17 00:00:00 2001 From: Shigma Date: Wed, 27 Dec 2023 02:10:07 +0800 Subject: [PATCH] chore: bump versions --- .github/workflows/build.yaml | 6 +++--- package.json | 21 +++++++++++---------- tsconfig.json | 1 + 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index d51796f..0cb033f 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -11,13 +11,13 @@ jobs: strategy: fail-fast: false matrix: - node-version: [16, 18, 20] + node-version: [18, 20] steps: - name: Check out - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - name: Install diff --git a/package.json b/package.json index 6bafa58..6541394 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,14 @@ { "name": "cosmokit", "description": "A collection of common utilities", - "version": "1.5.1", + "version": "1.5.2", "sideEffects": false, "main": "lib/index.cjs", "module": "lib/index.mjs", "typings": "lib/index.d.ts", "files": [ - "lib" + "lib", + "src" ], "repository": { "type": "git", @@ -20,8 +21,8 @@ "author": "Shigma ", "license": "MIT", "scripts": { - "compile:cjs": "esbuild src/index.ts --outfile=lib/index.cjs --bundle --sourcemap --platform=node --target=es2019", - "compile:esm": "esbuild src/index.ts --outfile=lib/index.mjs --bundle --sourcemap --platform=neutral --target=esnext", + "compile:cjs": "esbuild src/index.ts --outfile=lib/index.cjs --bundle --sourcemap --sources-content=false --platform=node --target=es2022", + "compile:esm": "esbuild src/index.ts --outfile=lib/index.mjs --bundle --sourcemap --sources-content=false --platform=neutral --target=es2022", "build": "yarn compile:cjs && yarn compile:esm && yarn dtsc", "test": "mocha -r esbuild-register tests/*.spec.ts", "test:text": "shx rm -rf coverage && c8 -r text yarn test", @@ -30,17 +31,17 @@ }, "devDependencies": { "@sinonjs/fake-timers": "^6.0.1", - "@types/chai": "^4.3.5", + "@types/chai": "^4.3.11", "@types/mocha": "^9.1.1", - "@types/node": "^20.4.2", + "@types/node": "^20.10.2", "@types/sinonjs__fake-timers": "^6.0.4", "c8": "^7.14.0", - "chai": "^4.3.7", + "chai": "^4.3.10", "dtsc": "^2.3.0", - "esbuild": "^0.18.14", - "esbuild-register": "^3.4.2", + "esbuild": "^0.18.20", + "esbuild-register": "^3.5.0", "mocha": "^9.2.2", "shx": "^0.3.4", - "typescript": "^5.1.6" + "typescript": "^5.3.2" } } diff --git a/tsconfig.json b/tsconfig.json index cf84132..acb3fb6 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,6 +5,7 @@ "target": "es2022", "module": "commonjs", "strict": true, + "sourceMap": true, "declaration": true, "emitDeclarationOnly": true, "skipLibCheck": true,