Skip to content

Commit d801c21

Browse files
[PAS-587] Add missing Typescript definitions back (#86)
* [PAS-587] Add Typescript definition files back * [PAS-587] Add Typescript definition files back * format * format
1 parent 9682cff commit d801c21

File tree

3 files changed

+60
-18
lines changed

3 files changed

+60
-18
lines changed

package-lock.json

+32
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
"format:check": "prettier . --check && eslint \"**/*.{js,vue}\"",
2929
"test": "npx jest"
3030
},
31-
"dependencies": {},
3231
"devDependencies": {
3332
"@eslint/js": "9.13.0",
33+
"@rollup/plugin-terser": "0.4.4",
3434
"@rollup/plugin-typescript": "12.1.1",
3535
"@types/jest": "29.5.14",
3636
"eslint": "9.13.0",
@@ -41,9 +41,9 @@
4141
"prettier-plugin-organize-imports": "4.1.0",
4242
"rimraf": "6.0.1",
4343
"rollup": "4.24.2",
44-
"@rollup/plugin-terser": "0.4.4",
44+
"rollup-plugin-dts": "6.1.1",
45+
"ts-jest": "29.2.5",
4546
"tslib": "2.8.0",
46-
"typescript": "5.6.3",
47-
"ts-jest": "29.2.5"
47+
"typescript": "5.6.3"
4848
}
4949
}

rollup.config.js

+24-14
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import terser from '@rollup/plugin-terser';
22
import typescript from '@rollup/plugin-typescript';
3+
import dts from 'rollup-plugin-dts';
34

45
const createPlugins = (compact) => (compact ? [terser()] : []);
56

@@ -37,17 +38,26 @@ const cjs = (compact) => ({
3738
plugins: createPlugins(compact)
3839
});
3940

40-
export default {
41-
input: 'src/passwordless.ts',
42-
plugins: [typescript()],
43-
output: [
44-
iife(false),
45-
iife(true),
46-
es6(false),
47-
es6(true),
48-
umd(false),
49-
umd(true),
50-
cjs(false),
51-
cjs(true)
52-
]
53-
};
41+
export default [
42+
{
43+
input: 'src/passwordless.ts',
44+
plugins: [typescript()],
45+
output: [
46+
iife(false),
47+
iife(true),
48+
es6(false),
49+
es6(true),
50+
umd(false),
51+
umd(true),
52+
cjs(false),
53+
cjs(true)
54+
]
55+
},
56+
{
57+
input: 'src/types.ts',
58+
plugins: [dts()],
59+
output: {
60+
file: 'dist/types.d.ts'
61+
}
62+
}
63+
];

0 commit comments

Comments
 (0)