Skip to content

Commit

Permalink
fix: changed rollup/tsc config to prevent generating ignored files lo…
Browse files Browse the repository at this point in the history
…cally
  • Loading branch information
jerzy-mankowski committed Dec 16, 2024
1 parent 84d9335 commit 1f908d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
5 changes: 2 additions & 3 deletions packages/html/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@
"sideEffects": false,
"repository": "https://github.com/cloudinary/frontend-frameworks",
"scripts": {
"build": "tsc && npm run prepare-build && rollup -c",
"postbuild": "cp index.esm.* ./dist && cp index.umd.* ./dist",
"prepare-build": "cp package.json ./dist",
"build": "rollup -c",
"typecheck": "tsc --noEmit --skipLibCheck",
"test": "jest --config jest.config.json",
"test-coverage": "jest --coverage"
},
Expand Down
8 changes: 3 additions & 5 deletions packages/html/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,23 @@ import resolve from "@rollup/plugin-node-resolve";
import commonjs from "@rollup/plugin-commonjs";
import typescript from "rollup-plugin-typescript2";

import packageJson from "./package.json";

export default {
input: "src/index.ts",
output: [
{
format: "cjs",
file: packageJson.main,
file: "./dist/index.js",
sourcemap: true
},
{
format: 'umd',
file: packageJson.umd,
file: "./dist/index.umd.js",
name: 'CloudinaryHtml',
sourcemap: true,
},
{
format: "esm",
file: packageJson.module,
file: "./dist/index.esm.js",
sourcemap: true
}
],
Expand Down

0 comments on commit 1f908d8

Please sign in to comment.