sku 11.7.1 → 11.7.2

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,11 @@
1
1
  # sku
2
2
 
3
+ ## 11.7.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix a bug that broke root resolution within `.css.ts` files during tests ([#741](https://github.com/seek-oss/sku/pull/741))
8
+
3
9
  ## 11.7.1
4
10
 
5
11
  ### Patch Changes
@@ -1,5 +1,6 @@
1
1
  const escapeRegex = require('escape-string-regexp');
2
- const { paths } = require('../../context');
2
+ const { cwd } = require('../../lib/cwd');
3
+ const { paths, rootResolution } = require('../../context');
3
4
  const slash = '[/\\\\]'; // Cross-platform path delimiter regex
4
5
  const compilePackagesRegex = paths.compilePackages
5
6
  .map((pkg) => `.*${escapeRegex(pkg)}`)
@@ -10,6 +11,7 @@ module.exports = {
10
11
  testEnvironment: 'jsdom',
11
12
  setupFilesAfterEnv: paths.setupTests,
12
13
  prettierPath: require.resolve('prettier'),
14
+ modulePaths: rootResolution ? [cwd()] : undefined,
13
15
  testMatch: [
14
16
  // Default values, but with 'ts' + 'tsx' support
15
17
  // (https://jestjs.io/docs/en/configuration.html#testmatch-array-string)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sku",
3
- "version": "11.7.1",
3
+ "version": "11.7.2",
4
4
  "description": "Front-end development toolkit, powered by Webpack, Babel, CSS Modules, Less and Jest",
5
5
  "main": "index.js",
6
6
  "bin": {