@storm-software/workspace-tools 1.296.58 → 1.296.59
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/dist/executor-BUtmgAjf.d.ts +145 -0
- package/dist/executor-BnyqeRMQ.d.ts +57 -0
- package/dist/executor-CF2P28x7.d.ts +267 -0
- package/dist/executor-CtQ0X9Pp.d.ts +305 -0
- package/dist/executor-CyDG2Xnx.d.mts +305 -0
- package/dist/executor-DMfDjEeE.d.mts +33 -0
- package/dist/executor-DnWsZ925.d.mts +145 -0
- package/dist/executor-DzcyLzwF.d.mts +143 -0
- package/dist/executor-DzhOBtUi.d.ts +143 -0
- package/dist/executor-HE1a47Xg.d.mts +57 -0
- package/dist/executor-boD9fICC.d.ts +33 -0
- package/dist/executor-x1NRvlct.d.mts +267 -0
- package/dist/executors.js +8 -8
- package/dist/executors.mjs +12 -12
- package/dist/generator-9dRx-biC.d.mts +38 -0
- package/dist/generator-B28ipdml.d.ts +38 -0
- package/dist/generator-BwfBbJTK.d.mts +130 -0
- package/dist/generator-C8CSrU1X.d.mts +108 -0
- package/dist/generator-CETtBRcF.d.ts +130 -0
- package/dist/generator-CYZiAInn.d.ts +130 -0
- package/dist/generator-Cj2dPxfL.d.ts +108 -0
- package/dist/generator-Cw56SbGO.d.mts +130 -0
- package/dist/generator-E2v2OQls.d.ts +130 -0
- package/dist/generator-Nz6bDiFl.d.mts +130 -0
- package/dist/generators.js +6 -6
- package/dist/generators.mjs +6 -6
- package/dist/index.js +14 -14
- package/dist/index.mjs +18 -18
- package/dist/types-BTQ7Xra1.d.ts +77 -0
- package/dist/types-CsrlUBxJ.d.mts +77 -0
- package/dist/types-DwFGBJr1.d.mts +243 -0
- package/dist/types-DwFGBJr1.d.ts +243 -0
- package/package.json +11 -11
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { c as BaseGeneratorResult } from './types-CsrlUBxJ.mjs';
|
|
2
|
+
import * as _nx_devkit from '@nx/devkit';
|
|
3
|
+
import { Tree } from '@nx/devkit';
|
|
4
|
+
import { S as StormWorkspaceConfig } from './types-DwFGBJr1.mjs';
|
|
5
|
+
|
|
6
|
+
// Generated by @storm-software/untyped
|
|
7
|
+
// Do not edit this file directly
|
|
8
|
+
|
|
9
|
+
interface NeutralLibraryGeneratorSchema {
|
|
10
|
+
/**
|
|
11
|
+
* Directory
|
|
12
|
+
*
|
|
13
|
+
* The directory to create the library in
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
directory: string,
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Name
|
|
20
|
+
*
|
|
21
|
+
* The name of the library
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
name: string,
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Description
|
|
28
|
+
*
|
|
29
|
+
* The description of the library
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
description?: string,
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Build Executor
|
|
36
|
+
*
|
|
37
|
+
* The executor to use for building the library
|
|
38
|
+
*
|
|
39
|
+
* @default "@storm-software/workspace-tools:unbuild"
|
|
40
|
+
*/
|
|
41
|
+
buildExecutor?: string,
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Platform
|
|
45
|
+
*
|
|
46
|
+
* The platform to target with the library
|
|
47
|
+
*
|
|
48
|
+
* @default "neutral"
|
|
49
|
+
*
|
|
50
|
+
* @enum neutral
|
|
51
|
+
*/
|
|
52
|
+
platform?: string,
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Import Path
|
|
56
|
+
*
|
|
57
|
+
* The import path for the library
|
|
58
|
+
*
|
|
59
|
+
*/
|
|
60
|
+
importPath?: string,
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Tags
|
|
64
|
+
*
|
|
65
|
+
* The tags for the library
|
|
66
|
+
*
|
|
67
|
+
*/
|
|
68
|
+
tags?: string,
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Unit Test Runner
|
|
72
|
+
*
|
|
73
|
+
* The unit test runner to use
|
|
74
|
+
*
|
|
75
|
+
*
|
|
76
|
+
* @enum jest,vitest,none
|
|
77
|
+
*/
|
|
78
|
+
unitTestRunner?: string,
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Test Environment
|
|
82
|
+
*
|
|
83
|
+
* The test environment to use
|
|
84
|
+
*
|
|
85
|
+
*
|
|
86
|
+
* @enum jsdom,node
|
|
87
|
+
*/
|
|
88
|
+
testEnvironment?: string,
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Pascal Case Files
|
|
92
|
+
*
|
|
93
|
+
* Use PascalCase for file names
|
|
94
|
+
*
|
|
95
|
+
* @default false
|
|
96
|
+
*/
|
|
97
|
+
pascalCaseFiles?: boolean,
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Strict
|
|
101
|
+
*
|
|
102
|
+
* Enable strict mode
|
|
103
|
+
*
|
|
104
|
+
* @default true
|
|
105
|
+
*/
|
|
106
|
+
strict?: boolean,
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Publishable
|
|
110
|
+
*
|
|
111
|
+
* Make the library publishable
|
|
112
|
+
*
|
|
113
|
+
* @default false
|
|
114
|
+
*/
|
|
115
|
+
publishable?: boolean,
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Buildable
|
|
119
|
+
*
|
|
120
|
+
* Make the library buildable
|
|
121
|
+
*
|
|
122
|
+
* @default true
|
|
123
|
+
*/
|
|
124
|
+
buildable?: boolean,
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
declare function neutralLibraryGeneratorFn(tree: Tree, schema: NeutralLibraryGeneratorSchema, config?: StormWorkspaceConfig): Promise<null>;
|
|
128
|
+
declare const _default: (tree: Tree, _options: NeutralLibraryGeneratorSchema) => Promise<_nx_devkit.GeneratorCallback | BaseGeneratorResult>;
|
|
129
|
+
|
|
130
|
+
export { type NeutralLibraryGeneratorSchema as N, _default as _, neutralLibraryGeneratorFn as n };
|
package/dist/generators.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-C3TC7AUW.js');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkNB5WSHYSjs = require('./chunk-NB5WSHYS.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkPVYWMIYRjs = require('./chunk-PVYWMIYR.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkNXB4Z7NSjs = require('./chunk-NXB4Z7NS.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkKV522LHWjs = require('./chunk-KV522LHW.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkOKSECMVKjs = require('./chunk-OKSECMVK.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkZO3L5FAUjs = require('./chunk-ZO3L5FAU.js');
|
|
20
20
|
require('./chunk-57OGFZNB.js');
|
|
21
21
|
require('./chunk-SZWM7COV.js');
|
|
22
22
|
require('./chunk-TAP26ZJQ.js');
|
package/dist/generators.mjs
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import "./chunk-SAIDGUHG.mjs";
|
|
2
|
+
import {
|
|
3
|
+
nodeLibraryGeneratorFn
|
|
4
|
+
} from "./chunk-TSQGMJVI.mjs";
|
|
2
5
|
import {
|
|
3
6
|
presetGeneratorFn
|
|
4
7
|
} from "./chunk-FJK7GHBY.mjs";
|
|
8
|
+
import {
|
|
9
|
+
browserLibraryGeneratorFn
|
|
10
|
+
} from "./chunk-KZSELW4F.mjs";
|
|
5
11
|
import {
|
|
6
12
|
configSchemaGeneratorFn
|
|
7
13
|
} from "./chunk-DQYZOPO7.mjs";
|
|
@@ -11,12 +17,6 @@ import {
|
|
|
11
17
|
import {
|
|
12
18
|
neutralLibraryGeneratorFn
|
|
13
19
|
} from "./chunk-P52MNWK4.mjs";
|
|
14
|
-
import {
|
|
15
|
-
nodeLibraryGeneratorFn
|
|
16
|
-
} from "./chunk-TSQGMJVI.mjs";
|
|
17
|
-
import {
|
|
18
|
-
browserLibraryGeneratorFn
|
|
19
|
-
} from "./chunk-KZSELW4F.mjs";
|
|
20
20
|
import "./chunk-4VWDSVQJ.mjs";
|
|
21
21
|
import "./chunk-QC5ON3X4.mjs";
|
|
22
22
|
import "./chunk-2GQSCZ3J.mjs";
|
package/dist/index.js
CHANGED
|
@@ -58,40 +58,40 @@ var _chunkVXHOSAQ7js = require('./chunk-VXHOSAQ7.js');
|
|
|
58
58
|
require('./chunk-P6HSE7LH.js');
|
|
59
59
|
|
|
60
60
|
|
|
61
|
-
var
|
|
61
|
+
var _chunkETZOESEMjs = require('./chunk-ETZOESEM.js');
|
|
62
62
|
|
|
63
63
|
|
|
64
64
|
var _chunkZ6JQV7U5js = require('./chunk-Z6JQV7U5.js');
|
|
65
65
|
|
|
66
66
|
|
|
67
|
-
var
|
|
67
|
+
var _chunkGU3JSJVGjs = require('./chunk-GU3JSJVG.js');
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
var
|
|
70
|
+
var _chunkRCJKWUC3js = require('./chunk-RCJKWUC3.js');
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
var _chunk6CVTX3NDjs = require('./chunk-6CVTX3ND.js');
|
|
74
74
|
require('./chunk-URZ6ZNPK.js');
|
|
75
75
|
|
|
76
76
|
|
|
77
|
+
var _chunk33C5YQ6Jjs = require('./chunk-33C5YQ6J.js');
|
|
78
|
+
|
|
79
|
+
|
|
77
80
|
var _chunk33X22YHZjs = require('./chunk-33X22YHZ.js');
|
|
78
81
|
|
|
79
82
|
|
|
80
|
-
var
|
|
83
|
+
var _chunkLANYX3R2js = require('./chunk-LANYX3R2.js');
|
|
81
84
|
|
|
82
85
|
|
|
83
86
|
var _chunkZMHKOSQOjs = require('./chunk-ZMHKOSQO.js');
|
|
84
87
|
|
|
85
88
|
|
|
86
|
-
var
|
|
89
|
+
var _chunkQEP2JF6Djs = require('./chunk-QEP2JF6D.js');
|
|
87
90
|
|
|
88
91
|
|
|
89
92
|
var _chunkRU4TNHFGjs = require('./chunk-RU4TNHFG.js');
|
|
90
93
|
|
|
91
94
|
|
|
92
|
-
var _chunkQEP2JF6Djs = require('./chunk-QEP2JF6D.js');
|
|
93
|
-
|
|
94
|
-
|
|
95
95
|
var _chunkTFQGKHL5js = require('./chunk-TFQGKHL5.js');
|
|
96
96
|
|
|
97
97
|
|
|
@@ -119,22 +119,22 @@ require('./chunk-N2365RCI.js');
|
|
|
119
119
|
require('./chunk-C3TC7AUW.js');
|
|
120
120
|
|
|
121
121
|
|
|
122
|
-
var
|
|
122
|
+
var _chunkNB5WSHYSjs = require('./chunk-NB5WSHYS.js');
|
|
123
123
|
|
|
124
124
|
|
|
125
|
-
var
|
|
125
|
+
var _chunkPVYWMIYRjs = require('./chunk-PVYWMIYR.js');
|
|
126
126
|
|
|
127
127
|
|
|
128
|
-
var
|
|
128
|
+
var _chunkNXB4Z7NSjs = require('./chunk-NXB4Z7NS.js');
|
|
129
129
|
|
|
130
130
|
|
|
131
|
-
var
|
|
131
|
+
var _chunkKV522LHWjs = require('./chunk-KV522LHW.js');
|
|
132
132
|
|
|
133
133
|
|
|
134
|
-
var
|
|
134
|
+
var _chunkOKSECMVKjs = require('./chunk-OKSECMVK.js');
|
|
135
135
|
|
|
136
136
|
|
|
137
|
-
var
|
|
137
|
+
var _chunkZO3L5FAUjs = require('./chunk-ZO3L5FAU.js');
|
|
138
138
|
|
|
139
139
|
|
|
140
140
|
|
package/dist/index.mjs
CHANGED
|
@@ -57,39 +57,39 @@ import {
|
|
|
57
57
|
} from "./chunk-UBVTASOE.mjs";
|
|
58
58
|
import "./chunk-GHQJKIMQ.mjs";
|
|
59
59
|
import {
|
|
60
|
-
|
|
61
|
-
} from "./chunk-
|
|
60
|
+
sizeLimitExecutorFn
|
|
61
|
+
} from "./chunk-3LFBUXYQ.mjs";
|
|
62
62
|
import {
|
|
63
63
|
tsdownExecutorFn
|
|
64
64
|
} from "./chunk-3FKFEQBJ.mjs";
|
|
65
|
-
import {
|
|
66
|
-
unbuildExecutorFn
|
|
67
|
-
} from "./chunk-OZ5BVPYJ.mjs";
|
|
68
65
|
import {
|
|
69
66
|
typiaExecutorFn
|
|
70
67
|
} from "./chunk-NHCDW7CD.mjs";
|
|
68
|
+
import {
|
|
69
|
+
unbuildExecutorFn
|
|
70
|
+
} from "./chunk-OZ5BVPYJ.mjs";
|
|
71
71
|
import {
|
|
72
72
|
esbuildExecutorFn
|
|
73
73
|
} from "./chunk-2UXPU3BM.mjs";
|
|
74
74
|
import "./chunk-JAIQZWTK.mjs";
|
|
75
|
+
import {
|
|
76
|
+
napiExecutor
|
|
77
|
+
} from "./chunk-FSP5BXTH.mjs";
|
|
75
78
|
import {
|
|
76
79
|
LARGE_BUFFER
|
|
77
80
|
} from "./chunk-PVNPMJZX.mjs";
|
|
78
81
|
import {
|
|
79
|
-
|
|
80
|
-
} from "./chunk-
|
|
82
|
+
cargoClippyExecutor
|
|
83
|
+
} from "./chunk-XZE55MLM.mjs";
|
|
81
84
|
import {
|
|
82
85
|
cargoDocExecutor
|
|
83
86
|
} from "./chunk-ZEQS7E4C.mjs";
|
|
84
87
|
import {
|
|
85
|
-
|
|
86
|
-
} from "./chunk-
|
|
88
|
+
cargoFormatExecutor
|
|
89
|
+
} from "./chunk-UJZUGPLI.mjs";
|
|
87
90
|
import {
|
|
88
91
|
getRegistryVersion
|
|
89
92
|
} from "./chunk-K6UOPTIZ.mjs";
|
|
90
|
-
import {
|
|
91
|
-
cargoFormatExecutor
|
|
92
|
-
} from "./chunk-UJZUGPLI.mjs";
|
|
93
93
|
import {
|
|
94
94
|
cargoBuildExecutor
|
|
95
95
|
} from "./chunk-QG6V6H7W.mjs";
|
|
@@ -117,9 +117,15 @@ import {
|
|
|
117
117
|
} from "./chunk-IDSDBOWW.mjs";
|
|
118
118
|
import "./chunk-UA33NH5O.mjs";
|
|
119
119
|
import "./chunk-SAIDGUHG.mjs";
|
|
120
|
+
import {
|
|
121
|
+
nodeLibraryGeneratorFn
|
|
122
|
+
} from "./chunk-TSQGMJVI.mjs";
|
|
120
123
|
import {
|
|
121
124
|
presetGeneratorFn
|
|
122
125
|
} from "./chunk-FJK7GHBY.mjs";
|
|
126
|
+
import {
|
|
127
|
+
browserLibraryGeneratorFn
|
|
128
|
+
} from "./chunk-KZSELW4F.mjs";
|
|
123
129
|
import {
|
|
124
130
|
configSchemaGeneratorFn
|
|
125
131
|
} from "./chunk-DQYZOPO7.mjs";
|
|
@@ -129,12 +135,6 @@ import {
|
|
|
129
135
|
import {
|
|
130
136
|
neutralLibraryGeneratorFn
|
|
131
137
|
} from "./chunk-P52MNWK4.mjs";
|
|
132
|
-
import {
|
|
133
|
-
nodeLibraryGeneratorFn
|
|
134
|
-
} from "./chunk-TSQGMJVI.mjs";
|
|
135
|
-
import {
|
|
136
|
-
browserLibraryGeneratorFn
|
|
137
|
-
} from "./chunk-KZSELW4F.mjs";
|
|
138
138
|
import {
|
|
139
139
|
createProjectTsConfigJson,
|
|
140
140
|
getOutputPath,
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { S as StormWorkspaceConfig } from './types-DwFGBJr1.js';
|
|
2
|
+
import { Options } from 'tsup';
|
|
3
|
+
import './types-D2zxYEAh.js';
|
|
4
|
+
|
|
5
|
+
// Generated by @storm-software/untyped
|
|
6
|
+
// Do not edit this file directly
|
|
7
|
+
|
|
8
|
+
interface BaseExecutorSchema {
|
|
9
|
+
/**
|
|
10
|
+
* Output Path
|
|
11
|
+
*
|
|
12
|
+
* The output path for the build
|
|
13
|
+
*
|
|
14
|
+
*
|
|
15
|
+
* @format path
|
|
16
|
+
*/
|
|
17
|
+
outputPath?: string,
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// Generated by @storm-software/untyped
|
|
21
|
+
// Do not edit this file directly
|
|
22
|
+
|
|
23
|
+
interface BaseGeneratorSchema {
|
|
24
|
+
/**
|
|
25
|
+
* Directory
|
|
26
|
+
*
|
|
27
|
+
* The directory to create the library in
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
directory?: string,
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
declare enum TypescriptProjectLinkingType {
|
|
34
|
+
ALIAS = "alias",
|
|
35
|
+
REFERENCE = "reference"
|
|
36
|
+
}
|
|
37
|
+
interface BaseTypescriptPluginOptions {
|
|
38
|
+
/**
|
|
39
|
+
* The project linking type to use for TypeScript projects.
|
|
40
|
+
*
|
|
41
|
+
* @see https://nx.dev/docs/concepts/typescript-project-linking
|
|
42
|
+
* @see https://nx.dev/docs/technologies/typescript/guides/switch-to-workspaces-project-references
|
|
43
|
+
*
|
|
44
|
+
* @defaultValue "reference"
|
|
45
|
+
*/
|
|
46
|
+
projectLinks?: TypescriptProjectLinkingType;
|
|
47
|
+
}
|
|
48
|
+
interface TsupContext {
|
|
49
|
+
projectRoot: string;
|
|
50
|
+
sourceRoot: string;
|
|
51
|
+
projectName: string;
|
|
52
|
+
main: string;
|
|
53
|
+
}
|
|
54
|
+
type BuildOptions = Options;
|
|
55
|
+
type Entry = string | string[] | Record<string, string>;
|
|
56
|
+
interface WorkspaceToolHooks<TSchema = any> {
|
|
57
|
+
applyDefaultOptions?: (options: Partial<TSchema>, config?: StormWorkspaceConfig) => Promise<TSchema> | TSchema;
|
|
58
|
+
preProcess?: (options: TSchema, config?: StormWorkspaceConfig) => Promise<void> | void;
|
|
59
|
+
postProcess?: (config?: StormWorkspaceConfig) => Promise<void> | void;
|
|
60
|
+
}
|
|
61
|
+
interface BaseWorkspaceToolOptions<TSchema = any> {
|
|
62
|
+
skipReadingConfig?: boolean;
|
|
63
|
+
hooks?: WorkspaceToolHooks<TSchema>;
|
|
64
|
+
}
|
|
65
|
+
type BaseExecutorOptions<TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema> = BaseWorkspaceToolOptions<TExecutorSchema>;
|
|
66
|
+
interface BaseExecutorResult {
|
|
67
|
+
error?: Error;
|
|
68
|
+
success?: boolean;
|
|
69
|
+
}
|
|
70
|
+
type BaseGeneratorOptions<TGeneratorSchema extends BaseGeneratorSchema = BaseGeneratorSchema> = BaseWorkspaceToolOptions<TGeneratorSchema>;
|
|
71
|
+
interface BaseGeneratorResult extends Record<string, any> {
|
|
72
|
+
error?: Error;
|
|
73
|
+
success?: boolean;
|
|
74
|
+
data?: any;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export { type BaseExecutorOptions as B, type Entry as E, type TsupContext as T, type WorkspaceToolHooks as W, type BaseExecutorResult as a, type BaseGeneratorOptions as b, type BaseGeneratorResult as c, type BaseTypescriptPluginOptions as d, type BaseWorkspaceToolOptions as e, type BuildOptions as f, TypescriptProjectLinkingType as g, type BaseExecutorSchema as h, type BaseGeneratorSchema as i };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { S as StormWorkspaceConfig } from './types-DwFGBJr1.mjs';
|
|
2
|
+
import { Options } from 'tsup';
|
|
3
|
+
import './types-D2zxYEAh.mjs';
|
|
4
|
+
|
|
5
|
+
// Generated by @storm-software/untyped
|
|
6
|
+
// Do not edit this file directly
|
|
7
|
+
|
|
8
|
+
interface BaseExecutorSchema {
|
|
9
|
+
/**
|
|
10
|
+
* Output Path
|
|
11
|
+
*
|
|
12
|
+
* The output path for the build
|
|
13
|
+
*
|
|
14
|
+
*
|
|
15
|
+
* @format path
|
|
16
|
+
*/
|
|
17
|
+
outputPath?: string,
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// Generated by @storm-software/untyped
|
|
21
|
+
// Do not edit this file directly
|
|
22
|
+
|
|
23
|
+
interface BaseGeneratorSchema {
|
|
24
|
+
/**
|
|
25
|
+
* Directory
|
|
26
|
+
*
|
|
27
|
+
* The directory to create the library in
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
directory?: string,
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
declare enum TypescriptProjectLinkingType {
|
|
34
|
+
ALIAS = "alias",
|
|
35
|
+
REFERENCE = "reference"
|
|
36
|
+
}
|
|
37
|
+
interface BaseTypescriptPluginOptions {
|
|
38
|
+
/**
|
|
39
|
+
* The project linking type to use for TypeScript projects.
|
|
40
|
+
*
|
|
41
|
+
* @see https://nx.dev/docs/concepts/typescript-project-linking
|
|
42
|
+
* @see https://nx.dev/docs/technologies/typescript/guides/switch-to-workspaces-project-references
|
|
43
|
+
*
|
|
44
|
+
* @defaultValue "reference"
|
|
45
|
+
*/
|
|
46
|
+
projectLinks?: TypescriptProjectLinkingType;
|
|
47
|
+
}
|
|
48
|
+
interface TsupContext {
|
|
49
|
+
projectRoot: string;
|
|
50
|
+
sourceRoot: string;
|
|
51
|
+
projectName: string;
|
|
52
|
+
main: string;
|
|
53
|
+
}
|
|
54
|
+
type BuildOptions = Options;
|
|
55
|
+
type Entry = string | string[] | Record<string, string>;
|
|
56
|
+
interface WorkspaceToolHooks<TSchema = any> {
|
|
57
|
+
applyDefaultOptions?: (options: Partial<TSchema>, config?: StormWorkspaceConfig) => Promise<TSchema> | TSchema;
|
|
58
|
+
preProcess?: (options: TSchema, config?: StormWorkspaceConfig) => Promise<void> | void;
|
|
59
|
+
postProcess?: (config?: StormWorkspaceConfig) => Promise<void> | void;
|
|
60
|
+
}
|
|
61
|
+
interface BaseWorkspaceToolOptions<TSchema = any> {
|
|
62
|
+
skipReadingConfig?: boolean;
|
|
63
|
+
hooks?: WorkspaceToolHooks<TSchema>;
|
|
64
|
+
}
|
|
65
|
+
type BaseExecutorOptions<TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema> = BaseWorkspaceToolOptions<TExecutorSchema>;
|
|
66
|
+
interface BaseExecutorResult {
|
|
67
|
+
error?: Error;
|
|
68
|
+
success?: boolean;
|
|
69
|
+
}
|
|
70
|
+
type BaseGeneratorOptions<TGeneratorSchema extends BaseGeneratorSchema = BaseGeneratorSchema> = BaseWorkspaceToolOptions<TGeneratorSchema>;
|
|
71
|
+
interface BaseGeneratorResult extends Record<string, any> {
|
|
72
|
+
error?: Error;
|
|
73
|
+
success?: boolean;
|
|
74
|
+
data?: any;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export { type BaseExecutorOptions as B, type Entry as E, type TsupContext as T, type WorkspaceToolHooks as W, type BaseExecutorResult as a, type BaseGeneratorOptions as b, type BaseGeneratorResult as c, type BaseTypescriptPluginOptions as d, type BaseWorkspaceToolOptions as e, type BuildOptions as f, TypescriptProjectLinkingType as g, type BaseExecutorSchema as h, type BaseGeneratorSchema as i };
|