@zokugun/artifact 0.6.0 → 0.6.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/lib/configs/install/read-install-config.js +10 -12
- package/lib/configs/install/write-install-config.d.ts +1 -1
- package/lib/configs/install/write-install-config.js +7 -3
- package/lib/configs/package/read-package-config.js +53 -58
- package/lib/configs/utils/merge-upsert-property.d.ts +2 -2
- package/lib/configs/utils/merge-upsert-property.js +28 -18
- package/lib/configs/utils/normalize-file-always.d.ts +2 -2
- package/lib/configs/utils/normalize-file-always.js +2 -1
- package/lib/configs/utils/normalize-file-uninstall.d.ts +2 -2
- package/lib/configs/utils/normalize-file-uninstall.js +2 -1
- package/lib/configs/utils/normalize-file-upsert.d.ts +2 -2
- package/lib/configs/utils/normalize-file-upsert.js +2 -1
- package/lib/journeys/commitlint/index.js +4 -4
- package/lib/journeys/fixpack/index.js +4 -4
- package/lib/steps/apply-formatting.d.ts +1 -1
- package/lib/steps/apply-formatting.js +35 -14
- package/lib/steps/configure-install-file-actions.js +23 -13
- package/lib/steps/configure-uninstall-file-actions.js +11 -7
- package/lib/steps/configure-update-file-actions.js +18 -22
- package/lib/steps/insert-final-new-line.d.ts +1 -1
- package/lib/steps/merge-text-files.js +6 -1
- package/lib/steps/read-files.js +7 -2
- package/lib/steps/replace-templates.js +0 -2
- package/lib/steps/transform-untouched-files.js +4 -13
- package/lib/steps/unmerge-text-files.js +1 -0
- package/lib/types/config.d.ts +18 -18
- package/lib/types/context.d.ts +8 -2
- package/lib/types/context.js +4 -0
- package/lib/types/format.d.ts +4 -0
- package/lib/utils/detect-indent.d.ts +2 -5
- package/lib/utils/detect-indent.js +3 -0
- package/lib/utils/template.d.ts +2 -1
- package/lib/utils/template.js +18 -6
- package/package.json +124 -123
- package/lib/types/text-file.d.ts +0 -7
- package/lib/types/text-file.js +0 -2
package/package.json
CHANGED
|
@@ -1,125 +1,126 @@
|
|
|
1
1
|
{
|
|
2
|
-
|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
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
2
|
+
"name": "@zokugun/artifact",
|
|
3
|
+
"description": "Boilerplate your project & keep your configurations up to date",
|
|
4
|
+
"version": "0.6.2",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "Baptiste Augrain",
|
|
7
|
+
"email": "daiyam@zokugun.org"
|
|
8
|
+
},
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"homepage": "https://github.com/zokugun/artifact",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/zokugun/artifact.git"
|
|
14
|
+
},
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/zokugun/artifact/discussions/categories/issue-triage"
|
|
17
|
+
},
|
|
18
|
+
"engines": {
|
|
19
|
+
"node": ">=18.20"
|
|
20
|
+
},
|
|
21
|
+
"bin": {
|
|
22
|
+
"artifact": "bin/artifact",
|
|
23
|
+
"atf": "bin/artifact"
|
|
24
|
+
},
|
|
25
|
+
"scripts": {
|
|
26
|
+
"audit:fix": "npm audit fix --min-release-age=0",
|
|
27
|
+
"build": "npm run clean && npm run compile:src",
|
|
28
|
+
"ci:lint": "zizmor .",
|
|
29
|
+
"ci:lint:fix": "zizmor . --fix=all",
|
|
30
|
+
"clean": "rimraf .test lib",
|
|
31
|
+
"compile:src": "tsc -p src",
|
|
32
|
+
"lint": "xo",
|
|
33
|
+
"lint:all": "fixpack && npm run ci:lint && npm run lint",
|
|
34
|
+
"lint:fix": "xo --fix",
|
|
35
|
+
"prepack": "npm run build",
|
|
36
|
+
"prepare": "husky; fixpack || true",
|
|
37
|
+
"release": "release-it",
|
|
38
|
+
"test": "tsc -p test && mocha",
|
|
39
|
+
"test:dev": "mocha",
|
|
40
|
+
"test:watch": "tsc-watch -p src -p test --onSuccess 'mocha -g=\"\"'",
|
|
41
|
+
"update:artifacts": "artifact update",
|
|
42
|
+
"update:ci": "PINACT_MIN_AGE=7 pinact run",
|
|
43
|
+
"update:deps": "taze",
|
|
44
|
+
"watch:build": "tsc-watch -p src --onSuccess 'npm run build'",
|
|
45
|
+
"watch:src": "tsc-watch -p src",
|
|
46
|
+
"watch:test": "tsc-watch -p test"
|
|
47
|
+
},
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"@zokugun/cli-utils": "0.3.1",
|
|
50
|
+
"@zokugun/configdotts-merge": "0.2.1",
|
|
51
|
+
"@zokugun/fs-extra-plus": "0.3.7",
|
|
52
|
+
"@zokugun/is-it-type": "0.8.1",
|
|
53
|
+
"@zokugun/xtry": "0.11.4",
|
|
54
|
+
"dayjs": "1.11.20",
|
|
55
|
+
"editorconfig": "0.15.3",
|
|
56
|
+
"globby": "11.1.0",
|
|
57
|
+
"istextorbinary": "6.0.0",
|
|
58
|
+
"jq-wasm": "1.1.0-jq-1.8.1",
|
|
59
|
+
"jsonc-parser": "3.3.1",
|
|
60
|
+
"lodash-es": "4.18.1",
|
|
61
|
+
"micromatch": "4.0.8",
|
|
62
|
+
"pacote": "21.5.0",
|
|
63
|
+
"semver": "7.7.4",
|
|
64
|
+
"tempy": "1.0.1",
|
|
65
|
+
"untildify": "4.0.0",
|
|
66
|
+
"yaml": "2.8.3"
|
|
67
|
+
},
|
|
68
|
+
"devDependencies": {
|
|
69
|
+
"@commitlint/cli": "19.8.1",
|
|
70
|
+
"@commitlint/config-conventional": "19.8.1",
|
|
71
|
+
"@types/chai": "4.3.20",
|
|
72
|
+
"@types/chai-as-promised": "7.1.8",
|
|
73
|
+
"@types/lodash-es": "4.17.12",
|
|
74
|
+
"@types/micromatch": "4.0.10",
|
|
75
|
+
"@types/mocha": "9.1.1",
|
|
76
|
+
"@types/node": "20.19.39",
|
|
77
|
+
"@types/npm": "7.19.3",
|
|
78
|
+
"@types/pacote": "11.1.8",
|
|
79
|
+
"@types/semver": "7.7.1",
|
|
80
|
+
"@types/universalify": "1.0.3",
|
|
81
|
+
"camelcase": "6.3.0",
|
|
82
|
+
"chai": "4.5.0",
|
|
83
|
+
"chai-as-promised": "7.1.2",
|
|
84
|
+
"eslint": "8.11.0",
|
|
85
|
+
"eslint-plugin-chai-friendly": "0.7.4",
|
|
86
|
+
"fixpack": "4.0.0",
|
|
87
|
+
"husky": "9.1.7",
|
|
88
|
+
"lint-staged": "16.4.0",
|
|
89
|
+
"memfs": "3.6.0",
|
|
90
|
+
"mocha": "9.2.2",
|
|
91
|
+
"release-it": "20.0.0",
|
|
92
|
+
"rewiremock": "3.14.6",
|
|
93
|
+
"source-map-support": "0.5.21",
|
|
94
|
+
"taze": "19.11.0",
|
|
95
|
+
"tsc-watch": "7.2.0",
|
|
96
|
+
"typescript": "5.9.3",
|
|
97
|
+
"universalify": "2.0.1",
|
|
98
|
+
"xo": "0.60.0"
|
|
99
|
+
},
|
|
100
|
+
"overrides": {
|
|
101
|
+
"mocha": {
|
|
102
|
+
"diff": "5.2.2",
|
|
103
|
+
"glob": "8.1.0",
|
|
104
|
+
"js-yaml": "4.1.1",
|
|
105
|
+
"minimatch": "4.2.6",
|
|
106
|
+
"nanoid": "3.3.11",
|
|
107
|
+
"serialize-javascript": "7.0.5"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"keywords": [
|
|
111
|
+
"artifact",
|
|
112
|
+
"boilerplate",
|
|
113
|
+
"boilerplates",
|
|
114
|
+
"codegeneration",
|
|
115
|
+
"codemod",
|
|
116
|
+
"codemods",
|
|
117
|
+
"configuration",
|
|
118
|
+
"configurations",
|
|
119
|
+
"generate",
|
|
120
|
+
"generator",
|
|
121
|
+
"project-generator",
|
|
122
|
+
"project-starter",
|
|
123
|
+
"project-template",
|
|
124
|
+
"scaffold"
|
|
125
|
+
]
|
|
125
126
|
}
|
package/lib/types/text-file.d.ts
DELETED
package/lib/types/text-file.js
DELETED