@html-validate/plugin-template 1.0.2 → 1.0.4
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/files/CHANGELOG.md +15 -0
- package/files/build.mjs +11 -3
- package/files/package.json +6 -11
- package/package.json +1 -1
package/files/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @html-validate/plugin-template changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.4 (2026-06-25)
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
- add cloneman verify ([66539b1](https://gitlab.com/html-validate/plugin-template/commit/66539b1a48da777811e42c8196f91ba37a673bc1))
|
|
8
|
+
- generate dts bundle directly from build script ([ab28c60](https://gitlab.com/html-validate/plugin-template/commit/ab28c6015a6bc88b79ca4ee055b7956e993878cf))
|
|
9
|
+
- sort-package-json ([7669457](https://gitlab.com/html-validate/plugin-template/commit/7669457a0e6f86115fb40b9e8381dfb642af56fb))
|
|
10
|
+
|
|
11
|
+
## 1.0.3 (2026-06-25)
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
- remove cloneman postbuild script ([4a6c9b4](https://gitlab.com/html-validate/plugin-template/commit/4a6c9b44c965140f01285d13609b6dce18d92b3b))
|
|
16
|
+
- set correct semantic release preset ([fe26aed](https://gitlab.com/html-validate/plugin-template/commit/fe26aedcf50dcc7b911bf87387c0b4b3187b7501))
|
|
17
|
+
|
|
3
18
|
## 1.0.2 (2026-06-25)
|
|
4
19
|
|
|
5
20
|
### Bug Fixes
|
package/files/build.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* This file is managed by "@html-validate/plugin-template". Changes will be overwritten */
|
|
2
2
|
|
|
3
3
|
import fs from "node:fs/promises";
|
|
4
|
+
import { generateDtsBundle } from "dts-bundle-generator";
|
|
4
5
|
import { analyzeMetafile, build as esbuild } from "esbuild";
|
|
5
6
|
|
|
6
7
|
const entrypoint = {
|
|
@@ -9,8 +10,8 @@ const entrypoint = {
|
|
|
9
10
|
};
|
|
10
11
|
|
|
11
12
|
const extension = {
|
|
12
|
-
cjs: ".cjs",
|
|
13
|
-
esm: ".mjs",
|
|
13
|
+
cjs: { js: ".cjs", dts: ".d.cts" },
|
|
14
|
+
esm: { js: ".mjs", dts: ".d.mts" },
|
|
14
15
|
};
|
|
15
16
|
|
|
16
17
|
await fs.rm("dist", { recursive: true, force: true });
|
|
@@ -27,11 +28,18 @@ for (const format of ["cjs", "esm"]) {
|
|
|
27
28
|
sourcemap: true,
|
|
28
29
|
metafile: true,
|
|
29
30
|
outExtension: {
|
|
30
|
-
".js": extension[format],
|
|
31
|
+
".js": extension[format].js,
|
|
31
32
|
},
|
|
32
33
|
external: ["@html-validate/plugin-utils", "html-validate"],
|
|
33
34
|
});
|
|
35
|
+
|
|
34
36
|
if (format === "esm") {
|
|
35
37
|
console.log(await analyzeMetafile(result.metafile));
|
|
36
38
|
}
|
|
39
|
+
|
|
40
|
+
const dts = generateDtsBundle([{ filePath: entrypoint[format], output: { noBanner: true } }], {
|
|
41
|
+
preferredConfigPath: `tsconfig.${format}.json`,
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
await fs.writeFile(`dist/${format}/index${extension[format].dts}`, dts, "utf8");
|
|
37
45
|
}
|
package/files/package.json
CHANGED
|
@@ -34,22 +34,18 @@
|
|
|
34
34
|
"dist"
|
|
35
35
|
],
|
|
36
36
|
"scripts": {
|
|
37
|
+
"attw": "attw --no-emoji --pack .",
|
|
37
38
|
"prebuild": "tsc",
|
|
38
|
-
"build": "
|
|
39
|
-
"postbuild": "cloneman build -o temp/cloneman",
|
|
40
|
-
"build:lib": "node build.mjs",
|
|
41
|
-
"build:cjs": "dts-bundle-generator --no-banner --project tsconfig.cjs.json -o dist/cjs/index.d.cts src/entry-cjs.ts",
|
|
42
|
-
"build:esm": "dts-bundle-generator --no-banner --project tsconfig.esm.json -o dist/esm/index.d.mts src/entry-esm.ts",
|
|
39
|
+
"build": "node build.mjs",
|
|
43
40
|
"eslint": "eslint --cache .",
|
|
44
41
|
"eslint:fix": "eslint --cache --fix .",
|
|
45
42
|
"prepack": "release-prepack package.json --bundle",
|
|
46
43
|
"postpack": "release-postpack package.json",
|
|
47
|
-
"prepare": "husky",
|
|
44
|
+
"prepare": "cloneman verify && husky",
|
|
48
45
|
"prepublishOnly": "release-prepack package.json --bundle",
|
|
49
46
|
"prettier:check": "prettier --check .",
|
|
50
47
|
"prettier:write": "prettier --write .",
|
|
51
48
|
"postpublish": "release-postpack package.json",
|
|
52
|
-
"attw": "attw --no-emoji --pack .",
|
|
53
49
|
"test": "jest"
|
|
54
50
|
},
|
|
55
51
|
"commitlint": {
|
|
@@ -57,7 +53,7 @@
|
|
|
57
53
|
},
|
|
58
54
|
"prettier": "@html-validate/prettier-config",
|
|
59
55
|
"release": {
|
|
60
|
-
"extends": "@html-validate/semantic-release-
|
|
56
|
+
"extends": "@html-validate/semantic-release-config"
|
|
61
57
|
},
|
|
62
58
|
"jest": {
|
|
63
59
|
"preset": "@html-validate/jest-config"
|
|
@@ -73,7 +69,7 @@
|
|
|
73
69
|
"@html-validate/eslint-config-typescript": "9.8.0",
|
|
74
70
|
"@html-validate/eslint-config-typescript-typeinfo": "9.8.0",
|
|
75
71
|
"@html-validate/jest-config": "3.18.2",
|
|
76
|
-
"@html-validate/plugin-template": "1.0.
|
|
72
|
+
"@html-validate/plugin-template": "1.0.4",
|
|
77
73
|
"@html-validate/prettier-config": "4.1.1",
|
|
78
74
|
"@html-validate/release-scripts": "7.3.1",
|
|
79
75
|
"@jest/globals": "30.4.1",
|
|
@@ -90,7 +86,6 @@
|
|
|
90
86
|
"jest": "30.4.2",
|
|
91
87
|
"jest-environment-jsdom": "30.4.1",
|
|
92
88
|
"npm-pkg-lint": "5.1.8",
|
|
93
|
-
"npm-run-all2": "9.0.2",
|
|
94
89
|
"semver": "7.8.5",
|
|
95
90
|
"ts-jest": "29.4.11",
|
|
96
91
|
"typescript": "6.0.3"
|
|
@@ -109,7 +104,7 @@
|
|
|
109
104
|
},
|
|
110
105
|
"cloneman": {
|
|
111
106
|
"template": "@html-validate/plugin-template",
|
|
112
|
-
"version": "1.0.
|
|
107
|
+
"version": "1.0.4"
|
|
113
108
|
},
|
|
114
109
|
"externalDependencies": [
|
|
115
110
|
"@html-validate/plugin-utils"
|