Skip to content

Commit 8502468

Browse files
committed
bundle d.ts files into one file and remove @finos/fdc3 dependency
1 parent 1305949 commit 8502468

4 files changed

Lines changed: 33 additions & 53 deletions

File tree

package-lock.json

Lines changed: 24 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/fdc3-commonjs/package.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,11 @@
2525
"clean": "npx rimraf dist .rollup.cache",
2626
"build": "npx rollup -c rollup.config.mjs"
2727
},
28-
"dependencies": {
29-
"@finos/fdc3": "2.2.0"
30-
},
3128
"devDependencies": {
3229
"@rollup/plugin-commonjs": "^28.0.1",
3330
"@rollup/plugin-json": "^6.1.0",
3431
"@rollup/plugin-node-resolve": "^15.3.0",
35-
"@rollup/plugin-typescript": "^12.1.1",
36-
"rollup": "^4.27.4"
32+
"rollup": "^4.27.4",
33+
"rollup-plugin-dts": "^6.2.3"
3734
}
38-
}
35+
}

packages/fdc3-commonjs/rollup.config.mjs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import typescript from '@rollup/plugin-typescript';
21
import { nodeResolve } from '@rollup/plugin-node-resolve';
32
import commonjs from '@rollup/plugin-commonjs';
43
import json from '@rollup/plugin-json';
4+
import { dts } from 'rollup-plugin-dts';
55

66
export default [
77
{
@@ -29,8 +29,11 @@ export default [
2929
include: /\/regenerator-runtime\//,
3030
}),
3131
json(),
32-
json(),
33-
typescript({ declaration: true, declarationDir: 'dist' }),
3432
],
3533
},
34+
{
35+
input: './src/index.ts',
36+
output: [{ file: 'dist/index.d.ts', format: 'es' }],
37+
plugins: [dts({ respectExternal: true })],
38+
},
3639
];

packages/fdc3-commonjs/tsconfig.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)