Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(build): svelte packaging #1258

Merged
merged 4 commits into from
Jan 27, 2022
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/core/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default {
input: './src/index.ts',
output: {
file: `./dist/bundle.js`,
format: 'umd',
format: 'cjs',
name: 'Charts',
globals: {
'd3-scale': 'd3Scale',
Expand Down
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.0",
"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.