Skip to content

Commit d17312a

Browse files
Aaron BarnardAaron Barnard
authored andcommitted
Fix types output
1 parent bfd0e3b commit d17312a

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
],
1111
"main": "dist/cjs/onboard.js",
1212
"module": "dist/esm/onboard.js",
13-
"typings": "dist/esm/src/onboard.d.ts",
13+
"typings": "dist/src/onboard.d.ts",
1414
"files": [
1515
"dist"
1616
],

rollup.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ export default {
4343
}),
4444
commonjs(),
4545
typescript({
46-
clean: true
46+
clean: true,
47+
useTsconfigDeclarationDir: true
4748
})
4849
],
4950
external: [

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
// "checkJs": true, /* Report errors in .js files. */
1111
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
1212
"declaration": true /* Generates corresponding '.d.ts' file. */,
13+
"declarationDir": "dist",
1314
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
1415
// "sourceMap": true, /* Generates corresponding '.map' file. */
1516
// "outFile": "./", /* Concatenate and emit output to single file. */

0 commit comments

Comments
 (0)