sku 13.0.2 → 13.0.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,17 @@
1
1
  # sku
2
2
 
3
+ ## 13.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix incorrect path in ignore files when running `sku init` ([#1028](https://github.com/seek-oss/sku/pull/1028))
8
+
9
+ sku generates ignore files (e.g. `.eslintignore`) for the project.
10
+ When ran as part of `sku init`, the current working directory (CWD) would sometimes be incorrect.
11
+ It should now give the same result as `sku configure`.
12
+
13
+ This change includes a refactor to how the webpack target directory is set in ignore files.
14
+
3
15
  ## 13.0.2
4
16
 
5
17
  ### Patch Changes
package/lib/configure.js CHANGED
@@ -4,7 +4,7 @@ const { writeFile, rm } = require('node:fs/promises');
4
4
  const path = require('node:path');
5
5
 
6
6
  const ensureGitignore = require('ensure-gitignore');
7
- const { cwd, getPathFromCwd } = require('./cwd');
7
+ const { getPathFromCwd } = require('./cwd');
8
8
 
9
9
  const { paths, httpsDevServer, languages } = require('../context');
10
10
  const {
@@ -32,9 +32,7 @@ const writeFileToCWD = async (fileName, content, { banner = true } = {}) => {
32
32
 
33
33
  module.exports = async () => {
34
34
  // Ignore target directories
35
- const webpackTargetDirectory = addSep(
36
- paths.target.replace(addSep(cwd()), ''),
37
- );
35
+ const webpackTargetDirectory = addSep(paths.relativeTarget);
38
36
 
39
37
  const gitIgnorePatterns = [
40
38
  // Ignore webpack bundle report output
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sku",
3
- "version": "13.0.2",
3
+ "version": "13.0.3",
4
4
  "description": "Front-end development toolkit, powered by Webpack, Babel, Vanilla Extract and Jest",
5
5
  "types": "./sku-types.d.ts",
6
6
  "bin": {