@pob/root 9.3.2 → 9.4.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/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
+ ## [9.4.0](https://github.com/christophehurpeau/pob/compare/@pob/root@9.3.2...@pob/root@9.4.0) (2024-05-04)
7
+
8
+
9
+ ### Features
10
+
11
+ * initial bun support ([0f0d36d](https://github.com/christophehurpeau/pob/commit/0f0d36db4cb5532a8976cba368cbc2fbe29e7802))
12
+
13
+
14
+
15
+
6
16
  ## [9.3.2](https://github.com/christophehurpeau/pob/compare/@pob/root@9.3.1...@pob/root@9.3.2) (2024-04-24)
7
17
 
8
18
 
@@ -9,13 +9,31 @@ const pm =
9
9
  whichPmRuns() ||
10
10
  (fs.existsSync('package-lock.json') ? { name: 'npm' } : undefined);
11
11
 
12
- if (pm.name !== 'yarn' && pm.name !== 'npm') {
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'],
30
+ };
31
+ }
32
+
13
33
  throw new Error(
14
- `Package manager not supported: ${pm.name}. Please run with yarn or npm !`,
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.2",
3
+ "version": "9.4.0",
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.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",