Skip to content

Commit

Permalink
refactor: rename files used to exports API to more standardized
Browse files Browse the repository at this point in the history
namespace

Signed-off-by: Jérôme Benoit <[email protected]>
  • Loading branch information
jerome-benoit committed Apr 15, 2024
1 parent e94ee4c commit 07069b9
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 13 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,14 @@ Bun versions >= 1.x are supported.
<script type="module">
import {
...
} from 'https://cdn.jsdelivr.net/npm/[email protected]/src/cli.mjs'
} from 'https://cdn.jsdelivr.net/npm/[email protected]/src/index.mjs'
</script>
```

## Example

```js
// adapt import to the targeted JS runtime
import { baseline, bench, clear, group, run } from 'tatami-ng';

bench('noop', () => {});
Expand Down
4 changes: 2 additions & 2 deletions jsr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"$schema": "https://jsr.io/schema/config-file.v1.json",
"name": "@poolifier/tatami-ng",
"version": "0.3.4",
"exports": "./src/cli.mjs",
"exports": "./src/index.mjs",
"publish": {
"include": [
"LICENSE",
"README.md",
"jsr.json",
"src/**/*.mjs",
"src/**/*.ts"
"src/**/*.d.ts"
]
}
}
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
"license": "MIT",
"version": "0.3.4",
"packageManager": "[email protected]",
"types": "./src/cli.d.ts",
"main": "./src/cli.mjs",
"browser": "./src/cli.mjs",
"types": "./src/index.d.ts",
"main": "./src/index.mjs",
"browser": "./src/index.mjs",
"exports": {
"types": "./src/cli.d.ts",
"import": "./src/cli.mjs",
"browser": "./src/cli.cjs"
"types": "./src/index.d.ts",
"import": "./src/index.mjs",
"browser": "./src/index.mjs"
},
"description": "cross javascript runtime benchmarking library",
"homepage": "https://github.com/poolifier/tatami-ng#readme",
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/formatting.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { bench, group, run } from '../src/cli.mjs';
import { bench, group, run } from '../src/index.mjs';

group({ summary: true }, () => {
bench('noop', () => {});
Expand Down
2 changes: 1 addition & 1 deletion tests/gif.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { baseline, bench, group, run } from '../src/cli.mjs';
import { baseline, bench, group, run } from '../src/index.mjs';

group(() => {
bench('noop()', () => {});
Expand Down
2 changes: 1 addition & 1 deletion tests/test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { baseline, bench, clear, group, run } from '../src/cli.mjs';
import { baseline, bench, clear, group, run } from '../src/index.mjs';

bench('noop', () => {}, {
before: () => {},
Expand Down
2 changes: 1 addition & 1 deletion tests/test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { baseline, bench, clear, group, run } from '../src/cli.mjs';
import { baseline, bench, clear, group, run } from '../src/index.mjs';

bench('noop', () => {}, {
before: () => {},
Expand Down

0 comments on commit 07069b9

Please sign in to comment.