sku 12.3.1 → 12.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # sku
2
2
 
3
+ ## 12.3.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Revert storybook config to CJS ([#873](https://github.com/seek-oss/sku/pull/873))
8
+
9
+ Fixes a bug where newer storybook versions (>=7.1.0) could not load sku's storybook config
10
+
11
+ ## 12.3.2
12
+
13
+ ### Patch Changes
14
+
15
+ - Fixes a bug where `.cjs` and `.mjs` files where not being transformed by babel in jest tests ([#868](https://github.com/seek-oss/sku/pull/868))
16
+
3
17
  ## 12.3.1
4
18
 
5
19
  ### Patch Changes
@@ -31,7 +31,7 @@ module.exports = jestDecorator({
31
31
  '\\.less$': require.resolve('./cssModulesTransform.js'),
32
32
  '\\.css\\.ts$': require.resolve('@vanilla-extract/jest-transform'),
33
33
  '\\.tsx?$': require.resolve('./tsBabelTransform.js'),
34
- '\\.js$': require.resolve('./jsBabelTransform.js'),
34
+ '\\.[cm]?js$': require.resolve('./jsBabelTransform.js'),
35
35
  },
36
36
  transformIgnorePatterns: [
37
37
  // Allow 'compilePackages' code to be transformed in tests by overriding
@@ -1 +1 @@
1
- export { default } from '../config';
1
+ module.exports = require('../config');
@@ -1,12 +1,13 @@
1
- import fs from 'fs';
2
- import path from 'path';
3
- import { createRequire } from 'module';
4
- import { paths, storybookAddons, storybookStoryStore } from '../../context';
5
-
6
- const require = createRequire(import.meta.url);
1
+ const fs = require('fs');
2
+ const path = require('path');
3
+ const {
4
+ paths,
5
+ storybookAddons,
6
+ storybookStoryStore,
7
+ } = require('../../context');
7
8
 
8
9
  /** @type {import("@storybook/react-webpack5").StorybookConfig} */
9
- export default {
10
+ module.exports = {
10
11
  stories: paths.src
11
12
  .filter((srcPath) => fs.statSync(srcPath).isDirectory())
12
13
  .map((srcPath) => path.join(srcPath, '**/*.stories.@(js|ts|tsx)')),
@@ -1 +1 @@
1
- export { default } from '../config';
1
+ module.exports = require('../config');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sku",
3
- "version": "12.3.1",
3
+ "version": "12.3.3",
4
4
  "description": "Front-end development toolkit, powered by Webpack, Babel, CSS Modules, Less and Jest",
5
5
  "main": "index.js",
6
6
  "bin": {