@meticoeus/ddd-es 0.2.0 → 0.2.2
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/dist/package.json +4 -3
- package/package.json +4 -3
- package/scripts/install.mjs +21 -0
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meticoeus/ddd-es",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "A Typescript library for using Event Sourcing and Domain Driven Design.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"DDD",
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"files": [
|
|
39
39
|
"dist/",
|
|
40
|
+
"scripts/",
|
|
40
41
|
"README.md",
|
|
41
42
|
"LICENSE"
|
|
42
43
|
],
|
|
@@ -47,7 +48,7 @@
|
|
|
47
48
|
"test": "vitest",
|
|
48
49
|
"build": "tsc",
|
|
49
50
|
"format": "prettier --write .",
|
|
50
|
-
"postinstall": "
|
|
51
|
+
"postinstall": "node scripts/install.mjs",
|
|
51
52
|
"prepare": "npm run build",
|
|
52
53
|
"prepublishOnly": "npm test -- --run"
|
|
53
54
|
},
|
|
@@ -69,7 +70,7 @@
|
|
|
69
70
|
},
|
|
70
71
|
"devDependencies": {
|
|
71
72
|
"@types/node": "^20.12.12",
|
|
72
|
-
"husky": "
|
|
73
|
+
"husky": "9.0.11",
|
|
73
74
|
"lint-staged": "^15.2.5",
|
|
74
75
|
"pino": "^9.1.0",
|
|
75
76
|
"pino-pretty": "^11.0.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meticoeus/ddd-es",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "A Typescript library for using Event Sourcing and Domain Driven Design.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"DDD",
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"files": [
|
|
39
39
|
"dist/",
|
|
40
|
+
"scripts/",
|
|
40
41
|
"README.md",
|
|
41
42
|
"LICENSE"
|
|
42
43
|
],
|
|
@@ -47,7 +48,7 @@
|
|
|
47
48
|
"test": "vitest",
|
|
48
49
|
"build": "tsc",
|
|
49
50
|
"format": "prettier --write .",
|
|
50
|
-
"postinstall": "
|
|
51
|
+
"postinstall": "node scripts/install.mjs",
|
|
51
52
|
"prepare": "npm run build",
|
|
52
53
|
"prepublishOnly": "npm test -- --run"
|
|
53
54
|
},
|
|
@@ -69,7 +70,7 @@
|
|
|
69
70
|
},
|
|
70
71
|
"devDependencies": {
|
|
71
72
|
"@types/node": "^20.12.12",
|
|
72
|
-
"husky": "
|
|
73
|
+
"husky": "9.0.11",
|
|
73
74
|
"lint-staged": "^15.2.5",
|
|
74
75
|
"pino": "^9.1.0",
|
|
75
76
|
"pino-pretty": "^11.0.0",
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { existsSync } from 'fs';
|
|
2
|
+
import { fileURLToPath } from 'url';
|
|
3
|
+
import { dirname, join } from 'path';
|
|
4
|
+
|
|
5
|
+
// Skip Husky install in production and CI
|
|
6
|
+
if (process.env.HUSKY === '0' || process.env.CI === 'true') {
|
|
7
|
+
process.exit(0);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
// Get the current directory of this file in an ES module
|
|
11
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
12
|
+
const __dirname = dirname(__filename);
|
|
13
|
+
|
|
14
|
+
// Only proceed in .git exists
|
|
15
|
+
const gitDir = join(__dirname, '..', '.git');
|
|
16
|
+
if (!existsSync(gitDir)) {
|
|
17
|
+
process.exit(0);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// Import Husky for installation
|
|
21
|
+
await import('husky');
|