@w5s/mrm-preset 1.4.0 → 2.0.0
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/.turbo/turbo-build.log +1 -1
- package/.turbo/turbo-lint.log +1 -1
- package/.turbo/turbo-prepare.log +1 -1
- package/.turbo/turbo-test.log +1 -1
- package/CHANGELOG.md +10 -0
- package/githooks/index.js +3 -3
- package/package.json +4 -4
- package/package.json.backup +4 -4
- package/core/file.js +0 -29
package/.turbo/turbo-build.log
CHANGED
package/.turbo/turbo-lint.log
CHANGED
package/.turbo/turbo-prepare.log
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[1] : exited with code 0
|
|
2
2
|
[template]
|
|
3
|
-
[template] > @w5s/mrm-preset@
|
|
3
|
+
[template] > @w5s/mrm-preset@2.0.0 prepare:template
|
|
4
4
|
[template] > cp ../../.editorconfig editorconfig/_editorconfig
|
|
5
5
|
[template]
|
|
6
6
|
[template] npm run prepare:template exited with code 0
|
package/.turbo/turbo-test.log
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
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
|
+
# [2.0.0](https://github.com/w5s/project-config/compare/@w5s/mrm-preset@1.4.0...@w5s/mrm-preset@2.0.0) (2023-10-13)
|
|
7
|
+
|
|
8
|
+
### 🎫 Chores
|
|
9
|
+
|
|
10
|
+
- Drop support for NodeJS 16 ([1e7b464](https://github.com/w5s/project-config/commit/1e7b464))
|
|
11
|
+
|
|
12
|
+
### 💥 BREAKING CHANGES
|
|
13
|
+
|
|
14
|
+
- NodeJS 16 or lower could not work with this configuration
|
|
15
|
+
|
|
6
16
|
# [1.4.0](https://github.com/w5s/project-config/compare/@w5s/mrm-preset@1.3.0...@w5s/mrm-preset@1.4.0) (2023-10-09)
|
|
7
17
|
|
|
8
18
|
### ✨ Features
|
package/githooks/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
const path = require('node:path');
|
|
2
2
|
const { packageJson, template } = require('mrm-core');
|
|
3
|
+
const { fileSync } = require('@w5s/dev');
|
|
3
4
|
const project = require('../core/project.js');
|
|
4
5
|
const pkg = require('../core/pkg.js');
|
|
5
6
|
const { hasGit } = require('../core/git.js');
|
|
6
7
|
const { gitHook, husky } = require('../core/githooks.js');
|
|
7
8
|
const { lintStaged } = require('../core/lintStaged.js');
|
|
8
|
-
const { file } = require('../core/file.js');
|
|
9
9
|
|
|
10
10
|
function task() {
|
|
11
11
|
const gitSupported = hasGit();
|
|
@@ -40,9 +40,9 @@ function task() {
|
|
|
40
40
|
state: gitSupported ? 'present' : 'absent',
|
|
41
41
|
});
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
fileSync({
|
|
44
44
|
path: 'CODEOWNERS',
|
|
45
|
-
state: gitSupported ? '
|
|
45
|
+
state: gitSupported ? 'present' : 'absent',
|
|
46
46
|
update: (content) =>
|
|
47
47
|
content.length === 0
|
|
48
48
|
? template('', path.join(__dirname, 'templates', 'CODEOWNERS'))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@w5s/mrm-preset",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Mrm configuration presets",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mrm",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"postpack": "npx clean-package restore"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@w5s/dev": "^
|
|
27
|
+
"@w5s/dev": "^2.0.0",
|
|
28
28
|
"debug": "^4.3.3",
|
|
29
29
|
"glob": "^10.0.0",
|
|
30
30
|
"mrm-core": "^7.0.0",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"sync-directory": "^6.0.0"
|
|
33
33
|
},
|
|
34
34
|
"engines": {
|
|
35
|
-
"node": ">=
|
|
35
|
+
"node": ">=18.0.0"
|
|
36
36
|
},
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "df3ad719f23deb6ab6a2c546664b0496fee3a039"
|
|
41
41
|
}
|
package/package.json.backup
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@w5s/mrm-preset",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Mrm configuration presets",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mrm",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"test:script": "mkdir _tester; cd _tester; mrm bootstrap --dir ..; mrm configure --dir .."
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@w5s/dev": "^
|
|
41
|
+
"@w5s/dev": "^2.0.0",
|
|
42
42
|
"debug": "^4.3.3",
|
|
43
43
|
"glob": "^10.0.0",
|
|
44
44
|
"mrm-core": "^7.0.0",
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
},
|
|
53
53
|
"clean-package": "../../clean-package.config.cjs",
|
|
54
54
|
"engines": {
|
|
55
|
-
"node": ">=
|
|
55
|
+
"node": ">=18.0.0"
|
|
56
56
|
},
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "df3ad719f23deb6ab6a2c546664b0496fee3a039"
|
|
61
61
|
}
|
package/core/file.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
const { file: mrmFile } = require('mrm-core');
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
*
|
|
5
|
-
* @param {{
|
|
6
|
-
* path: string,
|
|
7
|
-
* state: 'file'|'absent',
|
|
8
|
-
* update?: (content: string) => string | undefined,
|
|
9
|
-
* }} options
|
|
10
|
-
*/
|
|
11
|
-
function file({ path, state, update }) {
|
|
12
|
-
const fileHandler = mrmFile(path);
|
|
13
|
-
if (state === 'file') {
|
|
14
|
-
if (update) {
|
|
15
|
-
const newContent = update(fileHandler.get());
|
|
16
|
-
if (newContent != null) {
|
|
17
|
-
fileHandler.save(newContent);
|
|
18
|
-
}
|
|
19
|
-
} else if (!fileHandler.exists()) {
|
|
20
|
-
fileHandler.save('');
|
|
21
|
-
}
|
|
22
|
-
} else {
|
|
23
|
-
fileHandler.delete();
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
module.exports = {
|
|
28
|
-
file,
|
|
29
|
-
};
|