Skip to content

Commit

Permalink
fix: benchmark (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
yann510 authored Oct 31, 2024
1 parent ce1e64a commit 52ace52
Show file tree
Hide file tree
Showing 8 changed files with 10,006 additions and 10,008 deletions.
1 change: 0 additions & 1 deletion .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion benchmark/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Empty file removed benchmark/src/assets/.gitkeep
Empty file.
10,002 changes: 0 additions & 10,002 deletions benchmark/src/data.json

This file was deleted.

10,002 changes: 10,002 additions & 0 deletions benchmark/src/data.ts

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions benchmark/src/main.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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())
Expand Down
3 changes: 1 addition & 2 deletions benchmark/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
1 change: 1 addition & 0 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"workspaceLayout": {
"projectNameAndRootFormat": "as-provided"
},
"defaultBase": "master",
"targetDefaults": {
"build": {
"dependsOn": ["^build"],
Expand Down

0 comments on commit 52ace52

Please sign in to comment.