@pob/root 9.3.2 → 9.4.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 +20 -0
- package/createLintStagedConfig.cjs +23 -15
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
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
|
+
## [9.4.1](https://github.com/christophehurpeau/pob/compare/@pob/root@9.4.0...@pob/root@9.4.1) (2024-05-04)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* fix bun command to install ([5585fa3](https://github.com/christophehurpeau/pob/commit/5585fa3aa073a0194891677e4a33d7d71b96588b))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## [9.4.0](https://github.com/christophehurpeau/pob/compare/@pob/root@9.3.2...@pob/root@9.4.0) (2024-05-04)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
* initial bun support ([0f0d36d](https://github.com/christophehurpeau/pob/commit/0f0d36db4cb5532a8976cba368cbc2fbe29e7802))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
## [9.3.2](https://github.com/christophehurpeau/pob/compare/@pob/root@9.3.1...@pob/root@9.3.2) (2024-04-24)
|
|
7
27
|
|
|
8
28
|
|
|
@@ -9,13 +9,31 @@ const pm =
|
|
|
9
9
|
whichPmRuns() ||
|
|
10
10
|
(fs.existsSync('package-lock.json') ? { name: 'npm' } : undefined);
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
const yarnMajorVersion = pm.name === 'yarn' && semver.major(pm.version);
|
|
13
|
+
const { lockfile, installAndDedupe } = (() => {
|
|
14
|
+
if (pm.name === 'yarn') {
|
|
15
|
+
return {
|
|
16
|
+
lockfile: 'yarn.lock',
|
|
17
|
+
installAndDedupe: ['yarn', 'yarn dedupe'],
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
if (pm.name === 'npm') {
|
|
21
|
+
return {
|
|
22
|
+
lockfile: 'package-lock.json',
|
|
23
|
+
installAndDedupe: ['npm install', 'npm dedupe'],
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
if (pm.name === 'bun') {
|
|
27
|
+
return {
|
|
28
|
+
lockfile: 'bun.lockb',
|
|
29
|
+
installAndDedupe: ['bun i'],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
13
33
|
throw new Error(
|
|
14
|
-
`Package manager not supported: ${pm.name}. Please run with yarn or
|
|
34
|
+
`Package manager not supported: ${pm.name}. Please run with yarn, npm or bun !`,
|
|
15
35
|
);
|
|
16
|
-
}
|
|
17
|
-
const yarnMajorVersion = pm.name === 'yarn' && semver.major(pm.version);
|
|
18
|
-
const lockfile = pm.name === 'yarn' ? 'yarn.lock' : 'package-lock.json';
|
|
36
|
+
})();
|
|
19
37
|
|
|
20
38
|
// eslint-disable-next-line import/no-dynamic-require
|
|
21
39
|
const pkg = require(path.resolve('package.json'));
|
|
@@ -41,19 +59,9 @@ const getSrcDirectories = () => {
|
|
|
41
59
|
// return 'dist';
|
|
42
60
|
// };
|
|
43
61
|
|
|
44
|
-
const generateInstallAndDedupe = () => {
|
|
45
|
-
if (pm.name === 'npm') {
|
|
46
|
-
return ['npm install', 'npm dedupe'];
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
return ['yarn', 'yarn dedupe'];
|
|
50
|
-
};
|
|
51
|
-
|
|
52
62
|
module.exports = function createLintStagedConfig() {
|
|
53
63
|
const srcDirectories = getSrcDirectories();
|
|
54
64
|
|
|
55
|
-
const installAndDedupe = generateInstallAndDedupe();
|
|
56
|
-
|
|
57
65
|
return {
|
|
58
66
|
[`{${lockfile},package.json${
|
|
59
67
|
workspaces
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pob/root",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.4.1",
|
|
4
4
|
"description": "root package",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Christophe Hurpeau <christophe@hurpeau.com> (https://christophe.hurpeau.com)",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"husky": "~9.0.11",
|
|
77
77
|
"json5": "^2.2.2",
|
|
78
78
|
"lint-staged": "15.2.2",
|
|
79
|
-
"pob-dependencies": "11.2.
|
|
79
|
+
"pob-dependencies": "11.2.3",
|
|
80
80
|
"prettier": "2.8.8",
|
|
81
81
|
"repository-check-dirty": "6.3.1",
|
|
82
82
|
"semver": "^7.3.7",
|