Skip to content

Commit

Permalink
fix(build): svelte packaging (#1258)
Browse files Browse the repository at this point in the history
* fix Svelte packaging

* Remove Rollup config for Svelte package

* remove rollup from build file

* revert change to core package
  • Loading branch information
benmccann authored Jan 27, 2022
1 parent 116c643 commit 886ef7a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 40 deletions.
4 changes: 1 addition & 3 deletions packages/svelte/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@
set -e

rm -rf dist
mkdir dist

echo "linking local packages (non-lerna)"
# we run this outside of lerna, since lerna seems to have issues with correctly linking to the dist
rm -f node_modules/@carbon/charts
ln -sf $(pwd)/../core/dist node_modules/@carbon/charts

echo "bundling..."
rollup -c

# copy src directory for Svelte entry
cp -r src/ dist/src

Expand Down
4 changes: 2 additions & 2 deletions packages/svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "@carbon/charts-svelte",
"version": "0.54.8",
"description": "Carbon charting components for Svelte",
"main": "./bundle.js",
"module": "./index.js",
"type": "module",
"main": "./src/index.js",
"svelte": "./src/index.js",
"types": "./types/index.d.ts",
"scripts": {
Expand Down
35 changes: 0 additions & 35 deletions packages/svelte/rollup.config.js

This file was deleted.

0 comments on commit 886ef7a

Please sign in to comment.