Skip to content

Commit 1f908d8

Browse files
committedDec 16, 2024
fix: changed rollup/tsc config to prevent generating ignored files locally
1 parent 84d9335 commit 1f908d8

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed
 

‎packages/html/package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@
1010
"sideEffects": false,
1111
"repository": "https://github.com/cloudinary/frontend-frameworks",
1212
"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",
1615
"test": "jest --config jest.config.json",
1716
"test-coverage": "jest --coverage"
1817
},

‎packages/html/rollup.config.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,23 @@ import resolve from "@rollup/plugin-node-resolve";
33
import commonjs from "@rollup/plugin-commonjs";
44
import typescript from "rollup-plugin-typescript2";
55

6-
import packageJson from "./package.json";
7-
86
export default {
97
input: "src/index.ts",
108
output: [
119
{
1210
format: "cjs",
13-
file: packageJson.main,
11+
file: "./dist/index.js",
1412
sourcemap: true
1513
},
1614
{
1715
format: 'umd',
18-
file: packageJson.umd,
16+
file: "./dist/index.umd.js",
1917
name: 'CloudinaryHtml',
2018
sourcemap: true,
2119
},
2220
{
2321
format: "esm",
24-
file: packageJson.module,
22+
file: "./dist/index.esm.js",
2523
sourcemap: true
2624
}
2725
],

0 commit comments

Comments
 (0)
Failed to load comments.