2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 10
10
"sideEffects" : false ,
11
11
"repository" : " https://github.com/cloudinary/frontend-frameworks" ,
12
12
"scripts" : {
13
- "build" : " tsc && npm run prepare-build && rollup -c" ,
14
- "postbuild" : " cp index.esm.* ./dist && cp index.umd.* ./dist" ,
15
- "prepare-build" : " cp package.json ./dist" ,
13
+ "build" : " rollup -c" ,
14
+ "typecheck" : " tsc --noEmit --skipLibCheck" ,
16
15
"test" : " jest --config jest.config.json" ,
17
16
"test-coverage" : " jest --coverage"
18
17
},
Original file line number Diff line number Diff line change @@ -3,25 +3,23 @@ import resolve from "@rollup/plugin-node-resolve";
3
3
import commonjs from "@rollup/plugin-commonjs" ;
4
4
import typescript from "rollup-plugin-typescript2" ;
5
5
6
- import packageJson from "./package.json" ;
7
-
8
6
export default {
9
7
input : "src/index.ts" ,
10
8
output : [
11
9
{
12
10
format : "cjs" ,
13
- file : packageJson . main ,
11
+ file : "./dist/index.js" ,
14
12
sourcemap : true
15
13
} ,
16
14
{
17
15
format : 'umd' ,
18
- file : packageJson . umd ,
16
+ file : "./dist/index. umd.js" ,
19
17
name : 'CloudinaryHtml' ,
20
18
sourcemap : true ,
21
19
} ,
22
20
{
23
21
format : "esm" ,
24
- file : packageJson . module ,
22
+ file : "./dist/index.esm.js" ,
25
23
sourcemap : true
26
24
}
27
25
] ,
0 commit comments