Commits (4)
......@@ -58,7 +58,7 @@ Changelog:
ESLint:
stage: test
needs: ["NPM"]
needs: ["NPM", "Build"]
script:
- npm run eslint -- --max-warnings 0
......@@ -141,17 +141,29 @@ Module:
- "esm"
- "cjs"
script:
- npm exec tsc -- --build tests/integration/${BUILD}
- node tests/integration/${BUILD}
Release:
.release:
stage: release
only:
- web
variables:
GIT_AUTHOR_NAME: ${GITLAB_USER_NAME}
GIT_AUTHOR_EMAIL: ${GITLAB_USER_EMAIL}
GIT_COMMITTER_NAME: ${HTML_VALIDATE_BOT_NAME}
GIT_COMMITTER_EMAIL: ${HTML_VALIDATE_BOT_EMAIL}
Dry run:
extends: .release
rules:
- if: '$CI_COMMIT_REF_NAME == "master"'
script:
- npm exec semantic-release -- --dry-run
Release:
extends: .release
rules:
- if: '$CI_COMMIT_REF_NAME == "master" && $CI_PIPELINE_SOURCE == "web"'
when: manual
script:
- npm exec semantic-release
......
# html-validate changelog
### [5.1.1](https://gitlab.com/html-validate/html-validate/compare/v5.1.0...v5.1.1) (2021-07-11)
### Bug Fixes
- broken typescript declaration in previous release ([ad9cf68](https://gitlab.com/html-validate/html-validate/commit/ad9cf6832ac1b02bab282445d7e8b294c9ce524e)), closes [#127](https://gitlab.com/html-validate/html-validate/issues/127)
## [5.1.0](https://gitlab.com/html-validate/html-validate/compare/v5.0.2...v5.1.0) (2021-07-11)
### Features
......
{
"name": "html-validate",
"version": "5.1.0",
"version": "5.1.1",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"version": "5.1.0",
"version": "5.1.1",
"license": "MIT",
"workspaces": [
"tests/integration/*"
......@@ -10193,8 +10193,8 @@
"dev": true
},
"node_modules/html-validate": {
"link": true,
"resolved": ""
"resolved": "",
"link": true
},
"node_modules/html-void-elements": {
"version": "1.0.5",
{
"name": "html-validate",
"version": "5.1.0",
"version": "5.1.1",
"description": "Offline html5 validator",
"keywords": [
"html",
......
......@@ -154,12 +154,13 @@ function build(format) {
delimiters: ["", ""],
values: {
/**
* Fix the path from dist/types/browser.d.ts
* Bug #127: workaround the issue that the exported version is
* turned into a constant by the json plugin instead of the expected
* "declare const version" required by typescript.
*/
'"../package.json"': '"../../package.json"',
'export { version } from "../package.json";': "export const version: string;",
},
}),
json(jsonConfig),
dts(),
copy({
verbose: true,
......
......@@ -15,4 +15,6 @@ export { TransformContext, Transformer, TemplateExtractor } from "./transform";
export { Plugin } from "./plugin";
export { Parser } from "./parser";
export { ruleExists } from "./utils";
/* Bug #127: this line need special care, see rollup.config.js */
export { version } from "../package.json";
import { version } from "html-validate";
/* eslint-disable-next-line no-console */
console.log(`html-validate version is ${version}`);
{
"compilerOptions": {
"allowJs": true,
"checkJs": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node"
},
"include": ["*.ts", "*.js"]
}
import { version } from "html-validate";
/* eslint-disable-next-line no-console */
console.log(`html-validate version is ${version}`);
{
"compilerOptions": {
"allowJs": true,
"checkJs": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node"
},
"include": ["*.ts", "*.js"]
}