/
schema.d.ts
69 lines (62 loc) · 1.68 KB
/
schema.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// nx-ignore-next-line
const { Linter } = require('@nrwl/linter');
import type {
AssetGlob,
FileInputOutput,
} from '@nrwl/workspace/src/utilities/assets';
import { TransformerEntry } from './typescript/types';
export type Compiler = 'tsc' | 'swc';
export interface LibraryGeneratorSchema {
name: string;
directory?: string;
skipFormat?: boolean;
tags?: string;
simpleModuleName?: boolean;
skipTsConfig?: boolean;
unitTestRunner?: 'jest' | 'none';
linter?: Linter;
testEnvironment?: 'jsdom' | 'node';
importPath?: string;
js?: boolean;
pascalCaseFiles?: boolean;
strict?: boolean;
publishable?: boolean;
buildable?: boolean;
setParserOptionsProject?: boolean;
config?: 'workspace' | 'project' | 'npm-scripts';
compiler?: Compiler;
skipTypeCheck?: boolean;
}
export interface ExecutorOptions {
assets: Array<AssetGlob | string>;
main: string;
outputPath: string;
tsConfig: string;
watch: boolean;
transformers: TransformerEntry[];
updateBuildableProjectDepsInPackageJson?: boolean;
buildableProjectDepsInPackageJsonType?: 'dependencies' | 'peerDependencies';
}
export interface NormalizedExecutorOptions extends ExecutorOptions {
root?: string;
sourceRoot?: string;
projectRoot?: string;
mainOutputPath: string;
files: Array<FileInputOutput>;
}
export interface SwcExecutorOptions extends ExecutorOptions {
skipTypeCheck?: boolean;
swcExclude?: string[];
}
export interface SwcCliOptions {
srcPath: string;
destPath: string;
swcrcPath: string;
swcCwd: string;
}
export interface NormalizedSwcExecutorOptions
extends NormalizedExecutorOptions {
swcExclude: string[];
skipTypeCheck: boolean;
swcCliOptions: SwcCliOptions;
}