@amedia/create-kragl 1.0.0 → 1.0.1

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
  # @amedia/create-kragl
2
2
 
3
+ ## 1.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 78f91fb: Add the formatting script as `lint:format` instead of `format`
8
+
3
9
  ## 1.0.0
4
10
 
5
11
  ### Major Changes
package/README.md CHANGED
@@ -12,7 +12,7 @@ In the current directory it:
12
12
  2. Installs `@amedia/kragl` and `@amedia/kragl-lockfile-lint` as exact
13
13
  dev dependencies.
14
14
  3. Writes `eslint.config.js` and `prettier.config.js` with `kragl install`.
15
- 4. Adds the `format`, `lint` and `lint:fix` scripts.
15
+ 4. Adds the `lint`, `lint:fix` and `lint:format` scripts.
16
16
 
17
17
  Running it again only adds what is missing. It never changes an existing
18
18
  script or dependency, and keeps existing config files unless `--force` is
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amedia/create-kragl",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Set up kragl in a project with `npm init @amedia/kragl`",
5
5
  "bin": {
6
6
  "create-kragl": "bin/create-kragl.js"
package/src/plan-test.js CHANGED
@@ -69,7 +69,7 @@ describe('plan', () => {
69
69
  const packageJson = { scripts: { lint: 'eslint .' } };
70
70
 
71
71
  assert.deepEqual(plan(packageJson, defaults).scripts, {
72
- format: 'kragl format',
72
+ 'lint:format': 'kragl format',
73
73
  'lint:fix': 'kragl lint --fix',
74
74
  });
75
75
  });
package/src/plan.js CHANGED
@@ -22,9 +22,9 @@ const BASES = {
22
22
  };
23
23
 
24
24
  export const SCRIPTS = {
25
- format: 'kragl format',
26
25
  lint: 'kragl lint',
27
26
  'lint:fix': 'kragl lint --fix',
27
+ 'lint:format': 'kragl format',
28
28
  };
29
29
 
30
30
  /**