Releases: seek-oss/sku
sku@11.12.1
Patch Changes
-
Allow Webpack to interpret all
.mjs
files as modules, not just those fromnode_modules
(#811)This fixes an error with compiled Vocab translation files because Webpack would not parse
require.resolveWeak
in.mjs
files. -
Bump Prettier to ensure parity with TypeScript and ESLint rules (#808)
-
Add warning banner about
.less
files (#802)
sku@11.12.0
Minor Changes
-
Add support for Storybook's
preview.js
file and re-export theDecoratorFn
type from@storybook/react
(#792)sku now supports global customization of story rendering via a
.storybook/preview.(js|ts|tsx)
file.EXAMPLE USAGE:
import 'braid-design-system/reset'; import apac from 'braid-design-system/themes/apac'; import { BraidProvider } from 'braid-design-system'; import React from 'react'; import type { DecoratorFn } from 'sku/@storybook/react'; // This will wrap every story in a BraidProvider export const decorators: DecoratorFn = [ (Story) => ( <BraidProvider theme={apac}> <Story /> </BraidProvider> ), ];
See the Storybook docs for more info.
sku@11.11.2
Patch Changes
- Don't run postinstall script if a project isn't using sku (#794)
sku@11.11.1
Patch Changes
- Check only directories for Storybook stories (#797)
sku@11.11.0
Minor Changes
-
Start sku dev server middleware when running storybook (#787)
When running
sku storybook
, if you have configureddevServerMiddleware
in your sku config, that middleware will now be passed through to storybook and injected into its own middleware stack.
sku@11.10.1
Patch Changes
- Lint all extensions supported by the ESLint config (#784)
sku@11.10.0
Minor Changes
-
Update Vocab libraries (#781)
The
@vocab/types
package has been absorbed into the@vocab/core
package and the generated translation file will import types from the@vocab/core
package instead.@vocab/webpack/loader
has been updated to work with more file types (.js
,.cjs
,.mjs
) -
Update to eslint-config-seek v11.0.0. (#779)
This version of the ESLint config adds additional rules enforcing consistent type imports/exports, as explained in this article.
Any reported errors can be auto-fixed with
sku format
.
sku@11.9.2
Patch Changes
- Fix a bug that could occur when running
sku build
orsku build-ssr
that caused the copying of assets from thepublic
folder to thetarget
folder to fail (#776)
sku@11.9.1
Patch Changes
- Fix a bug where a function that didn't exist was being called (#774)
sku@11.9.0
Minor Changes
-
Re-export
Meta
andStoryObj
types from@storybook/react
(#773)The
Meta
andStoryObj
types are now re-exported undersku/@storybook/react
.These types are useful for typing CSF 3 stories which are the new recommended way of writing stories.
EXAMPLE USAGE:
import type { Meta } from 'sku/@storybook/react'; import { MyComponent } from './MyComponent'; const meta: Meta<typeof MyComponent> = { title: 'Path/To/MyComponent', component: MyComponent, }; export default meta; type Story = StoryObj<typeof MyComponent>; export const Basic: Story = {}; export const WithProp: Story = { render: () => <MyComponent prop="value" />, };