Skip to content

Commit 4cdea0e

Browse files
committed
Cleaning up dist after every build
1 parent 26d2f6b commit 4cdea0e

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"scripts": {
2222
"test": "npm run build && jest",
2323
"test:cov": "npm run build && jest --coverage",
24-
"build": "rimraf ./lib && npm run lint && tsc --noEmit && pkgroll",
24+
"build": "rimraf ./dist && npm run lint && tsc --noEmit && pkgroll",
2525
"lint": "eslint \"./src/**/*.{js,ts}\" --quiet --fix",
2626
"prepare": "npm run build",
2727
"version": "npm run format && git add -A src",

src/core/changelog/generate-change-log.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { changelogTemplate } from './templates/changelog-template';
99
import { ReflectionErrors } from '../errors/errors';
1010
import { apply } from '#utils/fp';
1111
import { filterScope } from '../reflection/filter-scope';
12-
import { skip } from '../../index';
12+
import { skip } from '../shared/utils';
1313

1414
export type ChangeLogPageData = {
1515
content: string;

src/core/shared/utils.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
import { Skip } from './types';
22

3+
/**
4+
* Represents a file to be skipped.
5+
*/
6+
export function skip(): Skip {
7+
return {
8+
_tag: 'Skip',
9+
};
10+
}
11+
312
export function isSkip(value: unknown): value is Skip {
413
return Object.prototype.hasOwnProperty.call(value, '_tag') && (value as Skip)._tag === 'Skip';
514
}

src/index.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import type {
1414
UserDefinedOpenApiConfig,
1515
UserDefinedChangelogConfig,
1616
} from './core/shared/types';
17+
import { skip } from './core/shared/utils';
1718
import { changeLogDefaults, markdownDefaults, openApiDefaults } from './defaults';
1819
import { process } from './node/process';
1920

@@ -59,15 +60,6 @@ function defineChangelogConfig(config: ConfigurableChangelogConfig): Partial<Use
5960
};
6061
}
6162

62-
/**
63-
* Represents a file to be skipped.
64-
*/
65-
function skip(): Skip {
66-
return {
67-
_tag: 'Skip',
68-
};
69-
}
70-
7163
export {
7264
defineMarkdownConfig,
7365
ConfigurableMarkdownConfig,

0 commit comments

Comments
 (0)