Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 19975ca

Browse files
authored
fix(sucrase): use bare specifier to obtain SucraseOptions type (#1185)
* fix(sucrase): use bare specifier to obtain SucraseOptions type * test(sucrase): test types in CI
1 parent 556837f commit 19975ca

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/sucrase/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,14 @@
2323
"ci:coverage": "nyc pnpm test && nyc report --reporter=text-lcov > coverage.lcov",
2424
"ci:lint": "pnpm build && pnpm lint",
2525
"ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}",
26-
"ci:test": "pnpm test -- --verbose",
26+
"ci:test": "pnpm test -- --verbose && pnpm test:ts",
2727
"prebuild": "del-cli dist",
2828
"prepare": "if [ ! -d 'dist' ]; then pnpm build; fi",
2929
"prerelease": "pnpm build",
3030
"pretest": "pnpm build",
3131
"release": "pnpm plugin:release --workspace-root -- --pkg $npm_package_name",
32-
"test": "ava"
32+
"test": "ava",
33+
"test:ts": "tsc types/index.d.ts test/types.ts --noEmit"
3334
},
3435
"files": [
3536
"dist",

packages/sucrase/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { FilterPattern } from '@rollup/pluginutils';
22
import { Plugin } from 'rollup';
3-
import { Options as SucraseOptions } from 'sucrase/dist/Options';
3+
import { Options as SucraseOptions } from 'sucrase';
44

55
interface RollupSucraseOptions
66
extends Pick<

0 commit comments

Comments
 (0)