@html-validate/plugin-template 1.0.3 → 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 +8 -0
- package/files/build.mjs +11 -3
- package/files/package.json +5 -9
- package/package.json +1 -1
package/files/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
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
|
+
|
|
3
11
|
## 1.0.3 (2026-06-25)
|
|
4
12
|
|
|
5
13
|
### 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,21 +34,18 @@
|
|
|
34
34
|
"dist"
|
|
35
35
|
],
|
|
36
36
|
"scripts": {
|
|
37
|
+
"attw": "attw --no-emoji --pack .",
|
|
37
38
|
"prebuild": "tsc",
|
|
38
|
-
"build": "
|
|
39
|
-
"build:lib": "node build.mjs",
|
|
40
|
-
"build:cjs": "dts-bundle-generator --no-banner --project tsconfig.cjs.json -o dist/cjs/index.d.cts src/entry-cjs.ts",
|
|
41
|
-
"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",
|
|
42
40
|
"eslint": "eslint --cache .",
|
|
43
41
|
"eslint:fix": "eslint --cache --fix .",
|
|
44
42
|
"prepack": "release-prepack package.json --bundle",
|
|
45
43
|
"postpack": "release-postpack package.json",
|
|
46
|
-
"prepare": "husky",
|
|
44
|
+
"prepare": "cloneman verify && husky",
|
|
47
45
|
"prepublishOnly": "release-prepack package.json --bundle",
|
|
48
46
|
"prettier:check": "prettier --check .",
|
|
49
47
|
"prettier:write": "prettier --write .",
|
|
50
48
|
"postpublish": "release-postpack package.json",
|
|
51
|
-
"attw": "attw --no-emoji --pack .",
|
|
52
49
|
"test": "jest"
|
|
53
50
|
},
|
|
54
51
|
"commitlint": {
|
|
@@ -72,7 +69,7 @@
|
|
|
72
69
|
"@html-validate/eslint-config-typescript": "9.8.0",
|
|
73
70
|
"@html-validate/eslint-config-typescript-typeinfo": "9.8.0",
|
|
74
71
|
"@html-validate/jest-config": "3.18.2",
|
|
75
|
-
"@html-validate/plugin-template": "1.0.
|
|
72
|
+
"@html-validate/plugin-template": "1.0.4",
|
|
76
73
|
"@html-validate/prettier-config": "4.1.1",
|
|
77
74
|
"@html-validate/release-scripts": "7.3.1",
|
|
78
75
|
"@jest/globals": "30.4.1",
|
|
@@ -89,7 +86,6 @@
|
|
|
89
86
|
"jest": "30.4.2",
|
|
90
87
|
"jest-environment-jsdom": "30.4.1",
|
|
91
88
|
"npm-pkg-lint": "5.1.8",
|
|
92
|
-
"npm-run-all2": "9.0.2",
|
|
93
89
|
"semver": "7.8.5",
|
|
94
90
|
"ts-jest": "29.4.11",
|
|
95
91
|
"typescript": "6.0.3"
|
|
@@ -108,7 +104,7 @@
|
|
|
108
104
|
},
|
|
109
105
|
"cloneman": {
|
|
110
106
|
"template": "@html-validate/plugin-template",
|
|
111
|
-
"version": "1.0.
|
|
107
|
+
"version": "1.0.4"
|
|
112
108
|
},
|
|
113
109
|
"externalDependencies": [
|
|
114
110
|
"@html-validate/plugin-utils"
|