Skip to content

Commit

Permalink
use rollup for show-errors.js
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Jun 28, 2024
1 parent 0fd50a0 commit 6b79ba8
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 23 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ examples and inject the helper. Ideally there should be no errors.
You can skip the first N tests with `-- --skip-count=<number>` (the first `--` is required).
### show-errors.js
### `show-errors.js`
You can generate show-errors.js with `npm run build-show-errors`.
`show-errors/show-errors.js` is also generated by the build.
show-errors.js wraps calls to `pushErrorScope` and `popErrorScope` around every
method of `GPUDevice` and `GPUQueue`. It is used in the
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"scripts": {
"build": "npm run make",
"build-ci": "npm run build && node build/tools/prep-for-deploy.js",
"build-show-errors": "tsc --project tsconfig-show-errors.json",
"make": "rollup -c",
"check": "npm run lint",
"check-ci": "npm run pre-push",
Expand Down
13 changes: 13 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,17 @@ export default [
],
plugins,
},
{
input: `src/error-scope-wrapper.ts`,
output: [
{
file: `show-errors/show-errors.js`,
format: 'umd',
sourcemap: false,
freeze: false,
banner: `/* show-errors@${pkg.version}, license MIT */`,
},
],
plugins,
},
];
20 changes: 0 additions & 20 deletions tsconfig-show-errors.json

This file was deleted.

0 comments on commit 6b79ba8

Please sign in to comment.