-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[devops]: Remove references to internal/vendor packages (#12010)
### Related Ticket(s) Closes #12008 ### Description Adjusts all `internal/vendor` imports to use the package imports instead. ### Changelog **Changed** - All imports of the form `[...]/internal/vendor/@carbon/[package][rest]` changed to `@carbon/[package]/es[rest]` **Removed** - vendor build steps <!-- React and Web Component deploy previews are enabled by default. --> <!-- To enable additional available deploy previews, apply the following --> <!-- labels for the corresponding package: --> <!-- *** "test: e2e": Codesandbox examples and e2e integration tests --> <!-- *** "package: services": Services --> <!-- *** "package: utilities": Utilities --> <!-- *** "RTL": React / Web Components (RTL) --> <!-- *** "feature flag": React / Web Components (experimental) -->
- Loading branch information
Showing
323 changed files
with
771 additions
and
965 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/styles/scss/components/filter-panel/_filter-panel.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -436,10 +436,6 @@ Connecting to `@carbon/ibmdotcom-services-store` is done with | |
[`ConnectMixin`](https://github.com/carbon-design-system/carbon-for-ibm-dotcom/blob/v1.13.0/packages/web-components/src/globals/mixins/connect.ts) | ||
that has a similar feature set to [`react-redux`](https://react-redux.js.org). | ||
|
||
> 💡 `import`s of `@carbon/ibmdotcom-services-store` are slightly different from | ||
> other NPM packages. See [vendor directory](#vendor-directory) section for more | ||
> details. | ||
Similar to `react-redux`, `ConnectMixin` uses two callbacks: | ||
|
||
| Callback | Description | | ||
|
@@ -553,30 +549,17 @@ procedure can be found | |
## Vendor directory | ||
The `@carbon/ibmdotcom-services-store` package is a private package that is not | ||
published to NPM. Adding it to `package.json` will break application because it | ||
won't be found. | ||
published to NPM. Adding it to `package.json` will break your application | ||
because it won't be found. | ||
To solve this problem, the | ||
[build process](https://github.com/carbon-design-system/carbon-for-ibm-dotcom/blob/v1.15.0/packages/web-components/gulp-tasks/vendor.js) | ||
of `@carbon/ibmdotcom-web-components` copies build artifacts of | ||
`@carbon/ibmdotcom-services-store` to | ||
`packages/web-components/src/internal/vendor/@carbon/ibmdotcom-services-store` | ||
as well as to | ||
`packages/web-components/es/internal/vendor/@carbon/ibmdotcom-services-store`. | ||
The former is used for our development, while the latter is for the application, | ||
being part of the | ||
[`@carbon/ibmdotcom-web-components` package](https://unpkg.com/browse/@carbon/[email protected]/es/internal/vendor/@carbon/ibmdotcom-services-store/). | ||
The `import`s of `@carbon/ibmdotcom-services-store` in | ||
`@carbon/ibmdotcom-web-components` refer to those copies, rather than the | ||
`@carbon/ibmdotcom-services-store` package: | ||
```javascript | ||
import { | ||
loadLanguage, | ||
setLanguage, | ||
} from '../../internal/vendor/@carbon/ibmdotcom-services-store/actions/localeAPI'; | ||
``` | ||
This is for your application, being part of the | ||
[`@carbon/ibmdotcom-web-components` package](https://unpkg.com/browse/@carbon/[email protected]/es/internal/vendor/@carbon/ibmdotcom-services-store/), | ||
they are available should you need them. | ||
## Rollup bundle for Dotcom shell | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.