@pob/root 9.2.0 → 9.3.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,19 @@
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.3.0](https://github.com/christophehurpeau/pob/compare/@pob/root@9.2.0...@pob/root@9.3.0) (2024-04-21)
7
+
8
+
9
+ ### Features
10
+
11
+ * **deps:** update @pob/eslint-config to v55 (major) ([#2020](https://github.com/christophehurpeau/pob/issues/2020)) ([434d5b3](https://github.com/christophehurpeau/pob/commit/434d5b3dce53b1925091138444881a13e2a962d9))
12
+ * simple esbuild bundler ([80659fa](https://github.com/christophehurpeau/pob/commit/80659fadb42190463585ff54e865af09e31fdc0d))
13
+ * support vitest ([2fe540e](https://github.com/christophehurpeau/pob/commit/2fe540e6ab66255735910745062a92636c87f21e))
14
+
15
+ Version bump for dependency: pretty-eslint-config
16
+ Version bump for dependency: pretty-pkg
17
+
18
+
6
19
  ## [9.2.0](https://github.com/christophehurpeau/pob/compare/@pob/root@9.1.0...@pob/root@9.2.0) (2024-02-17)
7
20
 
8
21
 
@@ -103,13 +103,16 @@ fi`;
103
103
  }
104
104
 
105
105
  if (shouldRunTest()) {
106
- prePushHook.push(
107
- `${pm.name} test${
108
- pkg.devDependencies?.jest
109
- ? ' --watchAll=false --changedSince=origin/main'
110
- : ''
111
- }`,
112
- );
106
+ const getTestCommand = () => {
107
+ if (pkg.devDependencies?.jest) {
108
+ return 'test --watchAll=false --changedSince=origin/main';
109
+ }
110
+ if (pkg.devDependencies?.vitest) {
111
+ return 'test --changed origin/main';
112
+ }
113
+ return 'test';
114
+ };
115
+ prePushHook.push(`${pm.name} ${getTestCommand()}`);
113
116
  }
114
117
 
115
118
  if (prePushHook.length > 0) {
@@ -2,4 +2,5 @@ import { createRequire } from 'node:module';
2
2
 
3
3
  const require = createRequire(import.meta.url);
4
4
 
5
+ // eslint-disable-next-line import/no-commonjs
5
6
  export default require('./createLintStagedConfig.cjs');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pob/root",
3
- "version": "9.2.0",
3
+ "version": "9.3.0",
4
4
  "description": "root package",
5
5
  "keywords": [],
6
6
  "author": "Christophe Hurpeau <christophe@hurpeau.com> (https://christophe.hurpeau.com)",
@@ -46,6 +46,8 @@
46
46
  "./tsconfigs/targets/webpack.json": "./tsconfigs/targets/webpack.json",
47
47
  "./tsconfigs/targets/rollup-node-18.json": "./tsconfigs/targets/rollup-node-18.json",
48
48
  "./tsconfigs/targets/rollup-node-20.json": "./tsconfigs/targets/rollup-node-20.json",
49
+ "./tsconfigs/targets/esbuild-node-18.json": "./tsconfigs/targets/esbuild-node-18.json",
50
+ "./tsconfigs/targets/esbuild-node-20.json": "./tsconfigs/targets/esbuild-node-20.json",
49
51
  "./package.json": "./package.json"
50
52
  },
51
53
  "publishConfig": {
@@ -67,14 +69,14 @@
67
69
  "prettier": "@pob/root/prettier-config",
68
70
  "dependencies": {
69
71
  "@commitlint/cli": "18.6.1",
70
- "@pob/pretty-eslint-config": "5.3.1",
71
- "@pob/pretty-pkg": "7.0.0",
72
+ "@pob/pretty-eslint-config": "5.4.0",
73
+ "@pob/pretty-pkg": "7.1.0",
72
74
  "conventional-changelog-conventionalcommits": "^7.0.0",
73
75
  "cosmiconfig": "^8.3.6",
74
76
  "husky": "~9.0.11",
75
77
  "json5": "^2.2.2",
76
78
  "lint-staged": "15.2.2",
77
- "pob-dependencies": "11.1.0",
79
+ "pob-dependencies": "11.2.0",
78
80
  "prettier": "2.8.8",
79
81
  "repository-check-dirty": "6.3.1",
80
82
  "semver": "^7.3.7",
@@ -0,0 +1,10 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "display": "@pob:target:EsbuildNode20",
4
+ "extends": "./base-bundler.json",
5
+
6
+ "compilerOptions": {
7
+ "target": "es2022",
8
+ "lib": ["es2023"]
9
+ }
10
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "display": "@pob:target:EsbuildNode20",
4
+ "extends": "./base-bundler.json",
5
+
6
+ "compilerOptions": {
7
+ "target": "es2022",
8
+ "lib": ["es2023"]
9
+ }
10
+ }