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(web-components): specify files/dirs to include in package #6688

Merged
Show file tree
Hide file tree
Changes from all 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
7 changes: 1 addition & 6 deletions packages/ibm-products-web-components/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { mergeConfig } from 'vite';
import { litStyleLoader, litTemplateLoader } from '@mordech/vite-lit-loader';
import viteSVGResultCarbonIconLoader from '../tools/vite-svg-result-carbon-icon-loader';
const glob = require('fast-glob');
const stories = glob.sync(
[
Expand Down Expand Up @@ -36,11 +35,7 @@ const config = {
},
async viteFinal(config) {
return mergeConfig(config, {
plugins: [
litStyleLoader(),
litTemplateLoader(),
viteSVGResultCarbonIconLoader(),
],
plugins: [litStyleLoader(), litTemplateLoader()],
});
},
};
Expand Down
19 changes: 10 additions & 9 deletions packages/ibm-products-web-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@
"url": "https://github.com/carbon-design-system/ibm-products.git",
"directory": "packages/ibm-products-web-components"
},
"files": [
"custom-elements.json",
"es/**/*",
"lib/**/*",
"scss/**/*"
],
"publishConfig": {
"access": "public",
"provenance": true
},
"exports": {
"./es/components/*": {
"node": "./lib/components/*",
"default": "./es/components/*"
},
"./es/globals/*": {
"node": "./lib/globals/*",
"default": "./es/globals/*"
},
"./es/*": "./es/*",
"./lib/*": "./lib/*",
"./dist/*": "./dist/*",
"./scss/*": "./scss/*",
"./custom-elements.json": "./custom-elements.json",
"./package.json": "./package.json"
},
Expand All @@ -52,7 +52,8 @@
"@carbon/ibm-products-styles": "^2.53.0",
"@carbon/styles": "1.71.0",
"@carbon/web-components": "2.19.0",
"lit": "^3.1.0"
"lit": "^3.1.0",
"tslib": "^2.6.3"
},
"devDependencies": {
"@carbon/icon-helpers": "^10.54.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import { SIDE_PANEL_SIZE, SIDE_PANEL_PLACEMENT } from './defs';
import styles from './side-panel.scss?lit';
import { selectorTabbable } from '@carbon/web-components/es/globals/settings.js';
import { carbonElement as customElement } from '@carbon/web-components/es/globals/decorators/carbon-element.js';
import ArrowLeft16 from '@carbon/icons/lib/arrow--left/16';
import Close20 from '@carbon/icons/lib/close/20';
import ArrowLeft16 from '@carbon/web-components/es/icons/arrow--left/16';
import Close20 from '@carbon/web-components/es/icons/close/20';
import { moderate02 } from '@carbon/motion';
import Handle from '../../globals/internal/handle';
import '@carbon/web-components/es/components/button/index.js';
Expand Down
4 changes: 0 additions & 4 deletions packages/ibm-products-web-components/tasks/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ import { globby } from 'globby';
import { rollup } from 'rollup';
import alias from '@rollup/plugin-alias';
import autoprefixer from 'autoprefixer';
import carbonIcons from '../tools/rollup-plugin-icons.js';
import carbonIconPaths from '../tools/rollup-plugin-icon-paths.js';
import commonjs from '@rollup/plugin-commonjs';
import copy from 'rollup-plugin-copy';
import cssnano from 'cssnano';
Expand Down Expand Up @@ -149,15 +147,13 @@ function getRollupConfig(input, rootDir, outDir, iconInput) {
).css;
},
}),
carbonIcons(iconInput, banner),
typescript({
noEmitOnError: true,
compilerOptions: {
rootDir,
outDir,
},
}),
carbonIconPaths(),
],
};
}
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 1 addition & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1790,6 +1790,7 @@ __metadata:
sass: "npm:^1.80.6"
storybook: "npm:^8.4.5"
storybook-addon-accessibility-checker: "npm:^3.1.61-rc.3"
tslib: "npm:^2.6.3"
typescript: "npm:^5.5.3"
vite: "npm:^6.0.3"
vitest: "npm:^2.1.2"
Expand Down
Loading