@w5s/mrm-preset 1.0.0-alpha.25 → 1.0.0-alpha.27

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.
@@ -1,11 +1,7 @@
1
- @w5s/mrm-preset:build: cache hit, replaying output 5c0df759a52c4169
2
- @w5s/mrm-preset:build: [build:*empty]
3
- @w5s/mrm-preset:build: [build:*empty] > @w5s/mrm-preset@1.0.0-alpha.24 build:empty
4
- @w5s/mrm-preset:build: [build:*empty] > :
5
- @w5s/mrm-preset:build: [build:*empty]
6
- @w5s/mrm-preset:build: [build:*tsc]
7
- @w5s/mrm-preset:build: [build:*tsc] > @w5s/mrm-preset@1.0.0-alpha.24 build:tsc
8
- @w5s/mrm-preset:build: [build:*tsc] > tsc --noEmit --skipLibCheck
9
- @w5s/mrm-preset:build: [build:*tsc]
10
- @w5s/mrm-preset:build: [build:*empty] npm run build:empty exited with code 0
11
- @w5s/mrm-preset:build: [build:*tsc] npm run build:tsc exited with code 0
1
+ @w5s/mrm-preset:build: cache hit, replaying output 8f8fc88fad8d6f77
2
+ @w5s/mrm-preset:build: [1] : exited with code 0
3
+ @w5s/mrm-preset:build: [build:*tsc]
4
+ @w5s/mrm-preset:build: [build:*tsc] > @w5s/mrm-preset@1.0.0-alpha.26 build:tsc
5
+ @w5s/mrm-preset:build: [build:*tsc] > tsc --noEmit --skipLibCheck
6
+ @w5s/mrm-preset:build: [build:*tsc]
7
+ @w5s/mrm-preset:build: [build:*tsc] npm run build:tsc exited with code 0
@@ -1,44 +1,44 @@
1
- @w5s/mrm-preset:docs: cache hit, replaying output e0ac617902d31962
2
- @w5s/mrm-preset:docs: Starting markdown-magic [ '**/*.md', '!node_modules/**' ]
3
- @w5s/mrm-preset:docs: ℹ Notice:
4
- @w5s/mrm-preset:docs:  Missing transforms "BASIC_RULES","JSX_RULES" in _tester/node_modules/eslint-plugin-react/README.md
5
- @w5s/mrm-preset:docs: 
6
- @w5s/mrm-preset:docs: ✔ README.md Updated
7
- @w5s/mrm-preset:docs:  Transforms run
8
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=# W5s Mrm Preset _(${name})_
9
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=> ${description}&unknownTxt=
10
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[${license}][license-url] © ${author}
11
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[package-version-svg]: https://img.shields.io/npm/v/${name}.svg?style=flat-square
12
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[package-url]: https://www.npmjs.com/package/${name}
13
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[license-image]: https://img.shields.io/badge/license-${license}-green.svg?style=flat-square
14
- @w5s/mrm-preset:docs: 
15
- @w5s/mrm-preset:docs: ✔ _tester/node_modules/@w5s/mrm-preset/README.md Updated
16
- @w5s/mrm-preset:docs:  Transforms run
17
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=# W5s Mrm Preset _(${name})_
18
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=> ${description}&unknownTxt=
19
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[${license}][license-url] © ${author}
20
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[package-version-svg]: https://img.shields.io/npm/v/${name}.svg?style=flat-square
21
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[package-url]: https://www.npmjs.com/package/${name}
22
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[license-image]: https://img.shields.io/badge/license-${license}-green.svg?style=flat-square
23
- @w5s/mrm-preset:docs: 
24
- @w5s/mrm-preset:docs: ✔ _tester/node_modules/@w5s/eslint-config/README.md Updated
25
- @w5s/mrm-preset:docs:  Transforms run
26
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=# W5s ESLint configuration _(${name})_
27
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=> ${description}&unknownTxt=
28
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=```console\nnpm install --save-dev ${name}\n```
29
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[${license}][license-url] © ${author}
30
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[package-version-svg]: https://img.shields.io/npm/v/${name}.svg?style=flat-square
31
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[package-url]: https://www.npmjs.com/package/${name}
32
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[license-image]: https://img.shields.io/badge/license-${license}-green.svg?style=flat-square
33
- @w5s/mrm-preset:docs: 
34
- @w5s/mrm-preset:docs: ✔ _tester/node_modules/@w5s/ts-config/README.md Updated
35
- @w5s/mrm-preset:docs:  Transforms run
36
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=# W5s Typescript configuration _(${name})_
37
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=> ${description}&unknownTxt=
38
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=```console\nnpm install --save-dev ${name}\n```
39
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=Typescript: ${peerDependencies.typescript}&unknownTxt=
40
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[${license}][license-url] © ${author}
41
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[package-version-svg]: https://img.shields.io/npm/v/${name}.svg?style=flat-square
42
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[package-url]: https://www.npmjs.com/package/${name}
43
- @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[license-image]: https://img.shields.io/badge/license-${license}-green.svg?style=flat-square
44
- @w5s/mrm-preset:docs: 
1
+ @w5s/mrm-preset:docs: cache hit, replaying output 230e574d32b6c812
2
+ @w5s/mrm-preset:docs: Starting markdown-magic [ '**/*.md', '!node_modules/**' ]
3
+ @w5s/mrm-preset:docs: ℹ Notice:
4
+ @w5s/mrm-preset:docs:  Missing transforms "BASIC_RULES","JSX_RULES" in _tester/node_modules/eslint-plugin-react/README.md
5
+ @w5s/mrm-preset:docs: 
6
+ @w5s/mrm-preset:docs: ✔ README.md Updated
7
+ @w5s/mrm-preset:docs:  Transforms run
8
+ @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=# W5s Mrm Preset _(${name})_
9
+ @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=> ${description}&unknownTxt=
10
+ @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[${license}][license-url] © ${author}
11
+ @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[package-version-svg]: https://img.shields.io/npm/v/${name}.svg?style=flat-square
12
+ @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[package-url]: https://www.npmjs.com/package/${name}
13
+ @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[license-image]: https://img.shields.io/badge/license-${license}-green.svg?style=flat-square
14
+ @w5s/mrm-preset:docs: 
15
+ @w5s/mrm-preset:docs: ✔ _tester/node_modules/@w5s/mrm-preset/README.md Updated
16
+ @w5s/mrm-preset:docs:  Transforms run
17
+ @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=# W5s Mrm Preset _(${name})_
18
+ @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=> ${description}&unknownTxt=
19
+ @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[${license}][license-url] © ${author}
20
+ @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[package-version-svg]: https://img.shields.io/npm/v/${name}.svg?style=flat-square
21
+ @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[package-url]: https://www.npmjs.com/package/${name}
22
+ @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[license-image]: https://img.shields.io/badge/license-${license}-green.svg?style=flat-square
23
+ @w5s/mrm-preset:docs: 
24
+ @w5s/mrm-preset:docs: ✔ _tester/node_modules/@w5s/eslint-config/README.md Updated
25
+ @w5s/mrm-preset:docs:  Transforms run
26
+ @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=# W5s ESLint configuration _(${name})_
27
+ @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=> ${description}&unknownTxt=
28
+ @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=```console\nnpm install --save-dev ${name}\n```
29
+ @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[${license}][license-url] © ${author}
30
+ @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[package-version-svg]: https://img.shields.io/npm/v/${name}.svg?style=flat-square
31
+ @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[package-url]: https://www.npmjs.com/package/${name}
32
+ @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[license-image]: https://img.shields.io/badge/license-${license}-green.svg?style=flat-square
33
+ @w5s/mrm-preset:docs: 
34
+ @w5s/mrm-preset:docs: ✔ _tester/node_modules/@w5s/ts-config/README.md Updated
35
+ @w5s/mrm-preset:docs:  Transforms run
36
+ @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=# W5s Typescript configuration _(${name})_
37
+ @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=> ${description}&unknownTxt=
38
+ @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=```console\nnpm install --save-dev ${name}\n```
39
+ @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=Typescript: ${peerDependencies.typescript}&unknownTxt=
40
+ @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[${license}][license-url] © ${author}
41
+ @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[package-version-svg]: https://img.shields.io/npm/v/${name}.svg?style=flat-square
42
+ @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[package-url]: https://www.npmjs.com/package/${name}
43
+ @w5s/mrm-preset:docs:  ⁕ PKGJSON:template=[license-image]: https://img.shields.io/badge/license-${license}-green.svg?style=flat-square
44
+ @w5s/mrm-preset:docs: 
@@ -1,7 +1,7 @@
1
- @w5s/mrm-preset:format: cache hit, replaying output 155aaf8cc40e1540
1
+ @w5s/mrm-preset:format: cache hit, replaying output 66f93def2fbd43d6
2
2
  @w5s/mrm-preset:format: [1] : exited with code 0
3
3
  @w5s/mrm-preset:format: [format:*src]
4
- @w5s/mrm-preset:format: [format:*src] > @w5s/mrm-preset@1.0.0-alpha.24 format:src
4
+ @w5s/mrm-preset:format: [format:*src] > @w5s/mrm-preset@1.0.0-alpha.26 format:src
5
5
  @w5s/mrm-preset:format: [format:*src] > eslint . --fix --ext=mjs,cjs,js,jsx,ts,tsx,json,jsonc,json5,yml,yaml
6
6
  @w5s/mrm-preset:format: [format:*src]
7
7
  @w5s/mrm-preset:format: [format:*src] npm run format:src exited with code 0
@@ -1,7 +1,7 @@
1
- @w5s/mrm-preset:lint: cache hit, replaying output d52af03e6b9cc41d
2
- @w5s/mrm-preset:lint: [1] : exited with code 0
3
- @w5s/mrm-preset:lint: [lint:*src]
4
- @w5s/mrm-preset:lint: [lint:*src] > @w5s/mrm-preset@1.0.0-alpha.24 lint:src
5
- @w5s/mrm-preset:lint: [lint:*src] > eslint . --ext=mjs,cjs,js,jsx,ts,tsx,json,jsonc,json5,yml,yaml
6
- @w5s/mrm-preset:lint: [lint:*src]
7
- @w5s/mrm-preset:lint: [lint:*src] npm run lint:src exited with code 0
1
+ @w5s/mrm-preset:lint: cache hit, replaying output a5d450db36406401
2
+ @w5s/mrm-preset:lint: [1] : exited with code 0
3
+ @w5s/mrm-preset:lint: [lint:*src]
4
+ @w5s/mrm-preset:lint: [lint:*src] > @w5s/mrm-preset@1.0.0-alpha.26 lint:src
5
+ @w5s/mrm-preset:lint: [lint:*src] > eslint . --ext=mjs,cjs,js,jsx,ts,tsx,json,jsonc,json5,yml,yaml
6
+ @w5s/mrm-preset:lint: [lint:*src]
7
+ @w5s/mrm-preset:lint: [lint:*src] npm run lint:src exited with code 0
@@ -1,2 +1,2 @@
1
- @w5s/mrm-preset:prepare: cache hit, replaying output 4a6f50d0a2618ec1
1
+ @w5s/mrm-preset:prepare: cache hit, replaying output bcd2c709ea270103
2
2
  @w5s/mrm-preset:prepare: [0] : exited with code 0
@@ -1,20 +1,27 @@
1
- @w5s/mrm-preset:test: cache hit, replaying output f2b96c6a11dc0dc5
2
- @w5s/mrm-preset:test: mkdir: _tester: File exists
3
- @w5s/mrm-preset:test: Running bootstrap...
4
- @w5s/mrm-preset:test: Running alias configure...
5
- @w5s/mrm-preset:test: Running gitignore...
6
- @w5s/mrm-preset:test: Running project...
7
- @w5s/mrm-preset:test: Running contributing...
8
- @w5s/mrm-preset:test: Running licenses...
9
- @w5s/mrm-preset:test: Running release...
10
- @w5s/mrm-preset:test: Running ci...
11
- @w5s/mrm-preset:test: Running lang...
12
- @w5s/mrm-preset:test: Update tsconfig.json
13
- @w5s/mrm-preset:test: Running commitlint...
14
- @w5s/mrm-preset:test: Running editorconfig...
15
- @w5s/mrm-preset:test: Running eslint...
16
- @w5s/mrm-preset:test: Running cspell...
17
- @w5s/mrm-preset:test: Running jest...
18
- @w5s/mrm-preset:test: Running renovate...
19
- @w5s/mrm-preset:test: Running githooks...
20
- @w5s/mrm-preset:test: Running postconfigure...
1
+ @w5s/mrm-preset:test: cache hit, replaying output 1177ea86d1e91b8c
2
+ @w5s/mrm-preset:test: [test:*src]
3
+ @w5s/mrm-preset:test: [test:*src] > @w5s/mrm-preset@1.0.0-alpha.26 test:src
4
+ @w5s/mrm-preset:test: [test:*src] > mkdir _tester; cd _tester; mrm bootstrap --dir ..; mrm configure --dir ..
5
+ @w5s/mrm-preset:test: [test:*src]
6
+ @w5s/mrm-preset:test: [test:*src] mkdir: _tester: File exists
7
+ @w5s/mrm-preset:test: [test:*src] Running bootstrap...
8
+ @w5s/mrm-preset:test: [test:*src] Running alias configure...
9
+ @w5s/mrm-preset:test: [test:*src] Running gitignore...
10
+ @w5s/mrm-preset:test: [test:*src] Running project...
11
+ @w5s/mrm-preset:test: [test:*src] Update package.json
12
+ @w5s/mrm-preset:test: [test:*src] Running contributing...
13
+ @w5s/mrm-preset:test: [test:*src] Running licenses...
14
+ @w5s/mrm-preset:test: [test:*src] Running release...
15
+ @w5s/mrm-preset:test: [test:*src] Running ci...
16
+ @w5s/mrm-preset:test: [test:*src] Running lang...
17
+ @w5s/mrm-preset:test: [test:*src] Update tsconfig.json
18
+ @w5s/mrm-preset:test: [test:*src] Running commitlint...
19
+ @w5s/mrm-preset:test: [test:*src] Running editorconfig...
20
+ @w5s/mrm-preset:test: [test:*src] Running eslint...
21
+ @w5s/mrm-preset:test: [test:*src] Running cspell...
22
+ @w5s/mrm-preset:test: [test:*src] Running jest...
23
+ @w5s/mrm-preset:test: [test:*src] Update package.json
24
+ @w5s/mrm-preset:test: [test:*src] Running renovate...
25
+ @w5s/mrm-preset:test: [test:*src] Running githooks...
26
+ @w5s/mrm-preset:test: [test:*src] Running postconfigure...
27
+ @w5s/mrm-preset:test: [test:*src] npm run test:src exited with code 0
package/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.0.0-alpha.27](https://github.com/w5s/project-config/compare/@w5s/mrm-preset@1.0.0-alpha.26...@w5s/mrm-preset@1.0.0-alpha.27) (2022-09-23)
7
+
8
+ **Note:** Version bump only for package @w5s/mrm-preset
9
+
10
+
11
+
12
+
13
+
14
+ # [1.0.0-alpha.26](https://github.com/w5s/project-config/compare/@w5s/mrm-preset@1.0.0-alpha.25...@w5s/mrm-preset@1.0.0-alpha.26) (2022-09-19)
15
+
16
+ **Note:** Version bump only for package @w5s/mrm-preset
17
+
18
+
19
+
20
+
21
+
6
22
  # [1.0.0-alpha.25](https://github.com/w5s/project-config/compare/@w5s/mrm-preset@1.0.0-alpha.24...@w5s/mrm-preset@1.0.0-alpha.25) (2022-09-05)
7
23
 
8
24
  **Note:** Version bump only for package @w5s/mrm-preset
package/core/jest.js CHANGED
@@ -35,18 +35,17 @@ function jest({ state }) {
35
35
  }),
36
36
  default: {},
37
37
  });
38
-
39
38
  pkg.script(packageFile, {
40
- name: project.coverage,
41
- update: (_) => (hasWorkspaces ? _ : 'jest --coverage'),
39
+ name: `//#${project.coverage}:root`,
40
+ update: (/** @type {string|undefined} */ _) => (hasWorkspaces ? _ : 'jest --coverage'),
42
41
  state: 'present',
43
- default: pkg.emptyScript,
42
+ default: undefined, // pkg.emptyScript,
44
43
  });
45
44
  pkg.script(packageFile, {
46
- name: project.test,
47
- update: (_) => (hasWorkspaces ? _ : 'jest'),
45
+ name: `//#${project.test}:root`,
46
+ update: (/** @type {string|undefined} */ _) => (hasWorkspaces ? _ : 'jest'),
48
47
  state: 'present',
49
- default: pkg.emptyScript,
48
+ default: undefined, // pkg.emptyScript,
50
49
  });
51
50
  });
52
51
 
package/core/turbo.js CHANGED
@@ -6,7 +6,6 @@ const jsonFile = require('./jsonFile.js');
6
6
  /**
7
7
  * @typedef {{
8
8
  * $schema: string,
9
- * baseBranch?: string,
10
9
  * pipeline?: Record<string, unknown>,
11
10
  * globalDependencies?: Array<string>,
12
11
  * }} TurboConfig
package/eslint/index.js CHANGED
@@ -90,34 +90,31 @@ function createESLint({ eslintPreset: eslintPresetDefault = 'eslint:recommended'
90
90
  // workspaces
91
91
  pkg.script(packageFile, {
92
92
  name: `${project.lint}:root`,
93
- update: `eslint .${extOption}${ignorePatterns}`,
94
- state: hasWorkspaces ? 'present' : 'absent',
93
+ update: `eslint .${extOption}${hasWorkspaces ? ignorePatterns : ''}`,
94
+ state: 'present',
95
95
  });
96
96
  pkg.script(packageFile, {
97
97
  name: `${project.format}:root`,
98
- update: `eslint .${extOption}${ignorePatterns} --fix`,
99
- state: hasWorkspaces ? 'present' : 'absent',
98
+ update: `eslint .${extOption}${hasWorkspaces ? ignorePatterns : ''} --fix`,
99
+ state: 'present',
100
100
  });
101
+
102
+ // clean
101
103
  pkg.script(packageFile, {
102
104
  name: `${project.lint}:packages`,
103
- update: `turbo run ${project.lint}`,
104
- state: hasWorkspaces ? 'present' : 'absent',
105
+ state: 'absent',
105
106
  });
106
107
  pkg.script(packageFile, {
107
108
  name: `${project.format}:packages`,
108
- update: `turbo run ${project.format}`,
109
- state: hasWorkspaces ? 'present' : 'absent',
109
+ state: 'absent',
110
110
  });
111
- // regular package
112
111
  pkg.script(packageFile, {
113
112
  name: `${project.lint}:src`,
114
- update: `eslint .${extOption}`,
115
- state: !hasWorkspaces ? 'present' : 'absent',
113
+ state: 'absent',
116
114
  });
117
115
  pkg.script(packageFile, {
118
116
  name: `${project.format}:src`,
119
- update: `eslint . --fix${extOption}`,
120
- state: !hasWorkspaces ? 'present' : 'absent',
117
+ state: 'absent',
121
118
  });
122
119
  });
123
120
  pkg.forEachWorkspace(({ packageFile }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@w5s/mrm-preset",
3
- "version": "1.0.0-alpha.25",
3
+ "version": "1.0.0-alpha.27",
4
4
  "description": "Mrm configuration presets",
5
5
  "keywords": [
6
6
  "mrm",
@@ -21,8 +21,7 @@
21
21
  "type": "commonjs",
22
22
  "main": "config.json",
23
23
  "scripts": {
24
- "build": "concurrently \"npm:build:*\" ",
25
- "build:empty": ":",
24
+ "build": "concurrently \"npm:build:*\" \":\"",
26
25
  "build:tsc": "tsc --noEmit --skipLibCheck",
27
26
  "clean": "concurrently \"npm:clean:*\" \":\"",
28
27
  "docs": "md-magic --path '**/*.md' --ignore='node_modules'",
@@ -32,7 +31,8 @@
32
31
  "lint:src": "eslint . --ext=mjs,cjs,js,jsx,ts,tsx,json,jsonc,json5,yml,yaml",
33
32
  "prepare": "concurrently \"npm:prepare:*\" \":\"",
34
33
  "spellcheck": "cspell --no-progress '**'",
35
- "test": "mkdir _tester; cd _tester; mrm bootstrap --dir ..; mrm configure --dir .."
34
+ "test": "concurrently \"npm:test:*\" ",
35
+ "test:src": "mkdir _tester; cd _tester; mrm bootstrap --dir ..; mrm configure --dir .."
36
36
  },
37
37
  "dependencies": {
38
38
  "debug": "^4.3.3",
@@ -43,7 +43,7 @@
43
43
  },
44
44
  "devDependencies": {
45
45
  "@types/debug": "4.1.7",
46
- "mrm": "4.1.0"
46
+ "mrm": "4.1.6"
47
47
  },
48
48
  "engines": {
49
49
  "node": ">=16.0.0"
@@ -51,5 +51,5 @@
51
51
  "publishConfig": {
52
52
  "access": "public"
53
53
  },
54
- "gitHead": "f75f847322f3dcb879e5a52e09dd834ab15b9186"
54
+ "gitHead": "4223a68016e247672c7252281669c739a0329678"
55
55
  }
package/project/index.js CHANGED
@@ -83,24 +83,19 @@ function task() {
83
83
  // build
84
84
  pkg.script(currentPackageFile, {
85
85
  name: project.build,
86
- update: npmRunAll(project.build, false),
86
+ update: useWorkspace ? turboRun(project.build) : npmRunAll(project.build, true),
87
87
  state: 'present',
88
88
  });
89
- pkg.script(currentPackageFile, {
90
- name: `${project.build}:packages`,
91
- update: turboRun(project.build),
92
- state: useWorkspace ? 'present' : 'absent',
93
- });
94
89
 
95
90
  // lint
96
91
  pkg.script(currentPackageFile, {
97
92
  name: project.lint,
98
- update: npmRunAll(project.lint, true),
93
+ update: useWorkspace ? turboRun(project.lint) : npmRunAll(project.lint, true),
99
94
  state: 'present',
100
95
  });
101
96
  pkg.script(currentPackageFile, {
102
97
  name: project.format,
103
- update: npmRunAll(project.format, true),
98
+ update: useWorkspace ? turboRun(project.format) : npmRunAll(project.format, true),
104
99
  state: 'present',
105
100
  });
106
101
 
@@ -112,7 +107,7 @@ function task() {
112
107
  // });
113
108
  pkg.script(currentPackageFile, {
114
109
  name: project.test,
115
- update: useWorkspace ? npmRunAll(project.test, false) : undefined,
110
+ update: useWorkspace ? turboRun(project.test) : npmRunAll(project.test, false),
116
111
  state: 'present',
117
112
  default: pkg.emptyScript,
118
113
  });
@@ -127,14 +122,9 @@ function task() {
127
122
  // clean
128
123
  pkg.script(currentPackageFile, {
129
124
  name: project.clean,
130
- update: npmRunAll(project.clean, true),
125
+ update: useWorkspace ? turboRun(project.clean) : npmRunAll(project.clean, true),
131
126
  state: 'present',
132
127
  });
133
- pkg.script(currentPackageFile, {
134
- name: `${project.clean}:packages`,
135
- update: turboRun(project.clean),
136
- state: useWorkspace ? 'present' : 'absent',
137
- });
138
128
 
139
129
  // Root
140
130
 
@@ -165,6 +155,20 @@ function task() {
165
155
  default: pkg.emptyScript,
166
156
  state: root ? 'present' : 'absent',
167
157
  });
158
+
159
+ // TODO: remove
160
+ pkg.script(currentPackageFile, {
161
+ name: `${project.clean}:packages`,
162
+ state: 'absent',
163
+ });
164
+ pkg.script(currentPackageFile, {
165
+ name: `${project.build}:packages`,
166
+ state: 'absent',
167
+ });
168
+ pkg.script(currentPackageFile, {
169
+ name: `${project.test}:packages`,
170
+ state: 'absent',
171
+ });
168
172
  };
169
173
 
170
174
  // eslint-disable-next-line no-shadow
@@ -247,22 +251,35 @@ function task() {
247
251
 
248
252
  // Turbo config
249
253
  turbo({
250
- state: rootUseWorkspace ? 'present' : 'absent',
254
+ state: 'present',
251
255
  update: (_) => ({
252
256
  ..._,
253
- baseBranch: 'origin/main',
254
257
  pipeline: {
255
258
  [project.build]: {
256
- dependsOn: ['^build'],
259
+ dependsOn: [`^${project.build}`, `//#${project.build}:root`],
257
260
  outputs: ['lib/**', 'dist/**', '.next/**'],
258
261
  },
259
- [project.test]: {},
260
- [project.lint]: {},
262
+ [`//#${project.build}:root`]: {},
263
+ [project.test]: {
264
+ dependsOn: [`//#${project.test}:root`],
265
+ },
266
+ [`//#${project.test}:root`]: {},
267
+ [project.lint]: {
268
+ dependsOn: [`//#${project.lint}:root`],
269
+ },
270
+ [`//#${project.lint}:root`]: {},
261
271
  [project.prepare]: {},
262
- [project.format]: {},
272
+ [project.format]: {
273
+ dependsOn: [`//#${project.format}:root`],
274
+ },
275
+ [`//#${project.format}:root`]: {},
263
276
  [project.docs]: {},
264
277
  [project.spellcheck]: {},
265
278
  [project.clean]: {
279
+ dependsOn: [`//#${project.clean}:root`],
280
+ cache: false,
281
+ },
282
+ [`//#${project.clean}:root`]: {
266
283
  cache: false,
267
284
  },
268
285
  [project.develop]: {