diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index ecd0018..736b88c 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -56,7 +56,6 @@ jobs: run: npm run exports:check - name: Run benchmark - if: github.ref == 'refs/heads/master' run: npm run benchmark - name: Release + Publish package diff --git a/benchmark/project.json b/benchmark/project.json index 8ddada3..5003c7d 100644 --- a/benchmark/project.json +++ b/benchmark/project.json @@ -16,7 +16,6 @@ "bundle": false, "main": "benchmark/src/main.ts", "tsConfig": "benchmark/tsconfig.app.json", - "assets": ["benchmark/src/assets"], "generatePackageJson": true, "esbuildOptions": { "sourcemap": true, diff --git a/benchmark/src/assets/.gitkeep b/benchmark/src/assets/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/benchmark/src/data.json b/benchmark/src/data.ts similarity index 99% rename from benchmark/src/data.json rename to benchmark/src/data.ts index 6f136d2..6fc9391 100644 --- a/benchmark/src/data.json +++ b/benchmark/src/data.ts @@ -1,4 +1,4 @@ -[ +export const data = [ { "id": 1, "name": "Luke Erickson", "age": 24, "address": "924 Wowku Terrace" }, { "id": 2, "name": "Ruby Kennedy", "age": 24, "address": "362 Culga Junction" }, { "id": 3, "name": "Ophelia Warren", "age": 18, "address": "1227 Oroda Loop" }, diff --git a/benchmark/src/main.ts b/benchmark/src/main.ts index fc64d46..cb6c578 100644 --- a/benchmark/src/main.ts +++ b/benchmark/src/main.ts @@ -1,4 +1,4 @@ -import data from './data.json' +import { data } from './data' import { execSync } from 'child_process' import { readFileSync, writeFileSync, existsSync } from 'fs' import Benchmark from 'benchmark' @@ -16,7 +16,7 @@ export interface BenchmarkResult { } const benchmarkResultPath = `${__dirname}/../../../../web-app/src/assets/benchmarkResults.json` -const ignoredVersions = ['1.9.1', '1.10.0'] +const ignoredVersions = ['1.9.1', '1.10.0', '1.10.1'] async function main() { const packageVersions: string[] = JSON.parse(execSync('npm view ss-search versions --json').toString()) diff --git a/benchmark/tsconfig.app.json b/benchmark/tsconfig.app.json index dfec40a..b7873af 100644 --- a/benchmark/tsconfig.app.json +++ b/benchmark/tsconfig.app.json @@ -3,8 +3,7 @@ "compilerOptions": { "outDir": "../dist/out-tsc", "module": "commonjs", - "types": ["node"], - "resolveJsonModule": true + "types": ["node"] }, "exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"], "include": ["src/**/*.ts"]