File tree 16 files changed +44
-135
lines changed
16 files changed +44
-135
lines changed Original file line number Diff line number Diff line change 1
1
@ ECHO OFF
2
2
@ SETLOCAL
3
- rush build -t api-extractor-lib1-test -t api-extractor-lib2-test -t api-extractor-lib3-test -t api-extractor-scenarios -t api-extractor-test-01 -t api-extractor-test-02 -t api-extractor-test-03 -t api-extractor-test-04 -t api-extractor-test-05 -t api- documenter-test
3
+ rush build -t api-extractor-lib1-test -t api-extractor-lib2-test -t api-extractor-lib3-test -t api-extractor-scenarios -t api-extractor-test-01 -t api-extractor-test-02 -t api-extractor-test-03 -t api-extractor-test-04 -t api-documenter-test
Original file line number Diff line number Diff line change 18
18
" dynamicImportType2" ,
19
19
" dynamicImportType3" ,
20
20
" ecmaScriptPrivateFields" ,
21
+ " excerptTokens" ,
21
22
" exportDuplicate" ,
22
23
" exportEquals" ,
23
24
" exportImportedExternal" ,
Original file line number Diff line number Diff line change 161
161
}
162
162
},
163
163
"kind" : " Package" ,
164
- "canonicalReference" : " api-extractor-test-05 !" ,
164
+ "canonicalReference" : " api-extractor-scenarios !" ,
165
165
"docComment" : " " ,
166
- "name" : " api-extractor-test-05 " ,
166
+ "name" : " api-extractor-scenarios " ,
167
167
"members" : [
168
168
{
169
169
"kind" : " EntryPoint" ,
170
- "canonicalReference" : " api-extractor-test-05 !" ,
170
+ "canonicalReference" : " api-extractor-scenarios !" ,
171
171
"name" : " " ,
172
172
"members" : [
173
173
{
174
174
"kind" : " Variable" ,
175
- "canonicalReference" : " api-extractor-test-05 !MY_CONSTANT:var" ,
175
+ "canonicalReference" : " api-extractor-scenarios !MY_CONSTANT:var" ,
176
176
"docComment" : " /**\n * @public\n */\n " ,
177
177
"excerptTokens" : [
178
178
{
193
193
},
194
194
{
195
195
"kind" : " Class" ,
196
- "canonicalReference" : " api-extractor-test-05 !MyClass:class" ,
196
+ "canonicalReference" : " api-extractor-scenarios !MyClass:class" ,
197
197
"docComment" : " /**\n * This is my class.\n *\n * @public\n */\n " ,
198
198
"excerptTokens" : [
199
199
{
206
206
"members" : [
207
207
{
208
208
"kind" : " Method" ,
209
- "canonicalReference" : " api-extractor-test-05 !MyClass#someMethod:member(1)" ,
209
+ "canonicalReference" : " api-extractor-scenarios !MyClass#someMethod:member(1)" ,
210
210
"docComment" : " /**\n * This method does something.\n *\n * @param x - This is x.\n *\n * @param y - This is y.\n */\n " ,
211
211
"excerptTokens" : [
212
212
{
Original file line number Diff line number Diff line change 1
- ## API Report File for "api-extractor-test-05 "
1
+ ## API Report File for "api-extractor-scenarios "
2
2
3
3
> Do not edit this file. It is a report generated by [ API Extractor] ( https://api-extractor.com/ ) .
4
4
Original file line number Diff line number Diff line change
1
+ /** @public */
2
+ export declare let MY_CONSTANT : number ;
3
+
4
+ /**
5
+ * @public This is my class.
6
+ */
7
+ export declare class MyClass {
8
+ /**
9
+ * This method does something.
10
+ * @param x - This is x.
11
+ * @param y - This is y.
12
+ */
13
+ someMethod ( x : number , y : string ) : boolean ;
14
+ }
15
+
16
+ export { }
Original file line number Diff line number Diff line change
1
+ // prettier-ignore
1
2
/** @public */
2
3
export let MY_CONSTANT : number ;
4
+
5
+ // prettier-ignore
3
6
/**
4
7
* @public This is my class.
5
8
*/
@@ -10,4 +13,4 @@ export class MyClass {
10
13
* @param y - This is y.
11
14
*/
12
15
someMethod ( x : number , y : string ) : boolean ;
13
- }
16
+ }
Original file line number Diff line number Diff line change 2
2
// See LICENSE in the project root for license information.
3
3
4
4
import * as path from 'path' ;
5
- import { FileSystem , JsonFile } from '@rushstack/node-core-library' ;
5
+ import { AlreadyExistsBehavior , FileSystem , JsonFile } from '@rushstack/node-core-library' ;
6
6
import {
7
7
Extractor ,
8
8
ExtractorConfig ,
@@ -16,6 +16,20 @@ import {
16
16
export function runScenarios ( buildConfigPath : string ) : void {
17
17
const buildConfig = JsonFile . load ( buildConfigPath ) ;
18
18
19
+ // Copy any .d.ts files into the "lib/" folder
20
+ FileSystem . copyFiles ( {
21
+ sourcePath : './src/' ,
22
+ destinationPath : './lib/' ,
23
+ alreadyExistsBehavior : AlreadyExistsBehavior . Overwrite ,
24
+ filter : ( sourcePath : string , destinationPath : string ) : boolean => {
25
+ if ( sourcePath . endsWith ( '.d.ts' ) || ! sourcePath . endsWith ( '.ts' ) ) {
26
+ // console.log('COPY ' + sourcePath);
27
+ return true ;
28
+ }
29
+ return false ;
30
+ }
31
+ } ) ;
32
+
19
33
const entryPoints : string [ ] = [ ] ;
20
34
21
35
// TODO: Eliminate this workaround
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 536
536
"reviewCategory" : " tests" ,
537
537
"shouldPublish" : false
538
538
},
539
- {
540
- "packageName" : " api-extractor-test-05" ,
541
- "projectFolder" : " build-tests/api-extractor-test-05" ,
542
- "reviewCategory" : " tests" ,
543
- "shouldPublish" : false
544
- },
545
539
{
546
540
"packageName" : " eslint-7-test" ,
547
541
"projectFolder" : " build-tests/eslint-7-test" ,
You can’t perform that action at this time.
0 commit comments