File tree 2 files changed +16
-6
lines changed
2 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-tooltip" ,
3
- "version" : " 5.0.0-beta.0 " ,
3
+ "version" : " 5.0.0-beta.1 " ,
4
4
"description" : " react tooltip component" ,
5
5
"scripts" : {
6
6
"dev" : " node ./cli.js --env=development && node --max_old_space_size=2048 ./node_modules/rollup/dist/bin/rollup -c rollup.config.dev.js --watch" ,
7
- "build" : " node ./cli.js --env=production && node --max_old_space_size=2048 ./node_modules/rollup/dist/bin/rollup -c rollup.config.prod.js" ,
7
+ "build" : " node ./cli.js --env=production && npm run types && node --max_old_space_size=2048 ./node_modules/rollup/dist/bin/rollup -c rollup.config.prod.js" ,
8
8
"types" : " node --max_old_space_size=2048 ./node_modules/rollup/dist/bin/rollup -c rollup.config.types.js" ,
9
9
"eslint" : " eslint --ext=js --ext=jsx --ext=ts --ext=tsx --fix ./src" ,
10
10
"stylelint" : " stylelint \" src/**/*.css\" " ,
27
27
"format" : " es"
28
28
}
29
29
],
30
- "types" : " dist/index .d.ts" ,
30
+ "types" : " dist/react-tooltip .d.ts" ,
31
31
"type" : " module" ,
32
32
"license" : " MIT" ,
33
33
"private" : false ,
Original file line number Diff line number Diff line change 1
1
import dts from 'rollup-plugin-dts'
2
+ import postcss from 'rollup-plugin-postcss'
2
3
3
4
export default {
4
- input : './build/index.d.ts' ,
5
- output : [ { file : 'build/index-builded.d.ts' , format : 'es' } ] ,
6
- plugins : [ dts ( ) ] ,
5
+ input : './src/index.tsx' ,
6
+ output : [ { file : 'dist/react-tooltip.d.ts' , format : 'es' } ] ,
7
+ plugins : [
8
+ postcss ( {
9
+ extract : 'react-tooltip-tokens.css' , // this will generate a specific file and override on multiples build, but the css will be the same
10
+ autoModules : true ,
11
+ include : '**/*.css' ,
12
+ extensions : [ '.css' ] ,
13
+ plugins : [ ] ,
14
+ } ) ,
15
+ dts ( ) ,
16
+ ] ,
7
17
}
You can’t perform that action at this time.
0 commit comments