@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.
Files changed (36) hide show
  1. package/lib/configs/install/read-install-config.js +10 -12
  2. package/lib/configs/install/write-install-config.d.ts +1 -1
  3. package/lib/configs/install/write-install-config.js +7 -3
  4. package/lib/configs/package/read-package-config.js +53 -58
  5. package/lib/configs/utils/merge-upsert-property.d.ts +2 -2
  6. package/lib/configs/utils/merge-upsert-property.js +28 -18
  7. package/lib/configs/utils/normalize-file-always.d.ts +2 -2
  8. package/lib/configs/utils/normalize-file-always.js +2 -1
  9. package/lib/configs/utils/normalize-file-uninstall.d.ts +2 -2
  10. package/lib/configs/utils/normalize-file-uninstall.js +2 -1
  11. package/lib/configs/utils/normalize-file-upsert.d.ts +2 -2
  12. package/lib/configs/utils/normalize-file-upsert.js +2 -1
  13. package/lib/journeys/commitlint/index.js +4 -4
  14. package/lib/journeys/fixpack/index.js +4 -4
  15. package/lib/steps/apply-formatting.d.ts +1 -1
  16. package/lib/steps/apply-formatting.js +35 -14
  17. package/lib/steps/configure-install-file-actions.js +23 -13
  18. package/lib/steps/configure-uninstall-file-actions.js +11 -7
  19. package/lib/steps/configure-update-file-actions.js +18 -22
  20. package/lib/steps/insert-final-new-line.d.ts +1 -1
  21. package/lib/steps/merge-text-files.js +6 -1
  22. package/lib/steps/read-files.js +7 -2
  23. package/lib/steps/replace-templates.js +0 -2
  24. package/lib/steps/transform-untouched-files.js +4 -13
  25. package/lib/steps/unmerge-text-files.js +1 -0
  26. package/lib/types/config.d.ts +18 -18
  27. package/lib/types/context.d.ts +8 -2
  28. package/lib/types/context.js +4 -0
  29. package/lib/types/format.d.ts +4 -0
  30. package/lib/utils/detect-indent.d.ts +2 -5
  31. package/lib/utils/detect-indent.js +3 -0
  32. package/lib/utils/template.d.ts +2 -1
  33. package/lib/utils/template.js +18 -6
  34. package/package.json +124 -123
  35. package/lib/types/text-file.d.ts +0 -7
  36. package/lib/types/text-file.js +0 -2
package/package.json CHANGED
@@ -1,125 +1,126 @@
1
1
  {
2
- "name": "@zokugun/artifact",
3
- "description": "Boilerplate your project & keep your configurations up to date",
4
- "version": "0.6.0",
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
- "prepare": "husky; fixpack || true",
36
- "release": "release-it",
37
- "test": "tsc -p test && mocha",
38
- "test:dev": "mocha",
39
- "test:watch": "tsc-watch -p src -p test --onSuccess 'mocha -g=\"\"'",
40
- "update:artifacts": "artifact update",
41
- "update:ci": "PINACT_MIN_AGE=7 pinact run",
42
- "update:deps": "taze",
43
- "watch:build": "tsc-watch -p src --onSuccess 'npm run build'",
44
- "watch:src": "tsc-watch -p src",
45
- "watch:test": "tsc-watch -p test"
46
- },
47
- "dependencies": {
48
- "@zokugun/cli-utils": "0.3.1",
49
- "@zokugun/configdotts-merge": "0.2.1",
50
- "@zokugun/fs-extra-plus": "0.3.7",
51
- "@zokugun/is-it-type": "0.8.1",
52
- "@zokugun/xtry": "0.11.4",
53
- "dayjs": "1.11.20",
54
- "detect-indent": "6.1.0",
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-1",
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
- "js-yaml": "4.1.1",
104
- "minimatch": "4.2.6",
105
- "nanoid": "3.3.11",
106
- "serialize-javascript": "7.0.5"
107
- }
108
- },
109
- "keywords": [
110
- "artifact",
111
- "boilerplate",
112
- "boilerplates",
113
- "codegeneration",
114
- "codemod",
115
- "codemods",
116
- "configuration",
117
- "configurations",
118
- "generate",
119
- "generator",
120
- "project-generator",
121
- "project-starter",
122
- "project-template",
123
- "scaffold"
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
  }
@@ -1,7 +0,0 @@
1
- export type TextFile = {
2
- data: string;
3
- finalNewLine: boolean;
4
- indent?: string;
5
- mode?: number;
6
- name: string;
7
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });