Skip to content

Commit

Permalink
feat(config): add dist-custom-elements-bundle output (#371)
Browse files Browse the repository at this point in the history
* feat(config): add dist-custom-elements-bundle output in stencil.config, see #369

* fix: add @stencil/core to deps, needed for custom elements output

* refactor(package.json): _exports_ keys

* chore(deps): remove stencil/core from devDependencies

Co-authored-by: Daniel Beck <daniel@beck.win>
  • Loading branch information
acstll and nowseemee committed May 28, 2021
1 parent 65caecb commit 2d68e3f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
9 changes: 3 additions & 6 deletions packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,11 @@
"access": "public"
},
"main": "dist/index.cjs.js",
"module": "dist/index.js",
"es2015": "dist/esm/index.js",
"es2017": "dist/esm/index.js",
"jsnext:main": "dist/esm/index.js",
"module": "dist/custom-elements/index.js",
"unpkg": "dist/scale-components/scale-components.esm.js",
"types": "dist/types/components.d.ts",
"collection": "dist/collection/collection-manifest.json",
"collection:main": "dist/collection/index.js",
"unpkg": "dist/scale-components/scale-components.esm.js",
"files": [
"assets/",
"dist/",
Expand All @@ -43,7 +40,6 @@
"@babel/plugin-transform-react-jsx": "7.10.1",
"@nowseemee/vue-output-target": "0.0.4",
"@stencil/angular-output-target": "^0.0.5",
"@stencil/core": "~2.3.0",
"@stencil/postcss": "^2.0.0",
"@stencil/react-output-target": "^0.0.9",
"@types/classnames": "2.2.8",
Expand Down Expand Up @@ -72,6 +68,7 @@
"dependencies": {
"@duetds/date-picker": "1.2.0",
"@proyecto26/animatable-component": "^1.1.8",
"@stencil/core": "~2.3.0",
"@telekom/scale-design-tokens": "^3.0.0-beta.12",
"classnames": "^2.2.6",
"stencil-inline-svg": "^1.0.1",
Expand Down
3 changes: 3 additions & 0 deletions packages/components/stencil.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ export const config: Config = {
{ src: '.npmignore', warn: true },
],
},
{
type: 'dist-custom-elements-bundle',
},
{
type: 'www',
serviceWorker: null, // disable service workers
Expand Down

0 comments on commit 2d68e3f

Please sign in to comment.