sku 12.4.6 → 12.4.8

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,17 @@
1
1
  # sku
2
2
 
3
+ ## 12.4.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix running lint-staged when `package.json` files are staged ([#918](https://github.com/seek-oss/sku/pull/918))
8
+
9
+ ## 12.4.7
10
+
11
+ ### Patch Changes
12
+
13
+ - Fixes a bug where `.cjs` and `.mjs` files were not being transpiled for browser targets ([#906](https://github.com/seek-oss/sku/pull/906))
14
+
3
15
  ## 12.4.6
4
16
 
5
17
  ### Patch Changes
@@ -11,9 +11,10 @@ const config = {
11
11
 
12
12
  // Yarn lock integrity check
13
13
  if (isYarn) {
14
- config['+(package.json|yarn.lock)'] = [
15
- getCommand('yarn', 'install', ['--check-files']),
16
- ];
14
+ config['+(package.json|yarn.lock)'] =
15
+ // The function form allows running the command without file arguments
16
+ // https://github.com/lint-staged/lint-staged#example-run-tsc-on-changes-to-typescript-files-but-do-not-pass-any-filename-arguments
17
+ () => getCommand('yarn', 'install', ['--check-files']);
17
18
  }
18
19
 
19
20
  module.exports = config;
@@ -1,11 +1,18 @@
1
1
  const loaders = require('./loaders');
2
2
  const { resolvePackage } = require('./resolvePackage');
3
3
 
4
+ // TODO: Figure out a better way to share this config. This is currently copy-pasted from
5
+ // `eslint-config-seek`
6
+ const extensions = {
7
+ js: ['js', 'cjs', 'mjs', 'jsx'],
8
+ ts: ['ts', 'cts', 'mts', 'tsx'],
9
+ };
10
+
4
11
  module.exports = {
5
12
  ...loaders,
6
13
  resolvePackage,
7
- TYPESCRIPT: /\.(ts|tsx)$/,
8
- JAVASCRIPT: /\.js$/,
14
+ TYPESCRIPT: new RegExp(`\.(${extensions.ts.join('|')})$`),
15
+ JAVASCRIPT: new RegExp(`\.(${extensions.js.join('|')})$`),
9
16
  LESS: /\.less$/,
10
17
  IMAGE: [/\.bmp$/, /\.gif$/, /\.jpe?g$/, /\.png$/],
11
18
  SVG: /\.svg$/,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sku",
3
- "version": "12.4.6",
3
+ "version": "12.4.8",
4
4
  "description": "Front-end development toolkit, powered by Webpack, Babel, CSS Modules, Less and Jest",
5
5
  "main": "index.js",
6
6
  "bin": {