File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11@ ECHO OFF
22@ 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 1818 " dynamicImportType2" ,
1919 " dynamicImportType3" ,
2020 " ecmaScriptPrivateFields" ,
21+ " excerptTokens" ,
2122 " exportDuplicate" ,
2223 " exportEquals" ,
2324 " exportImportedExternal" ,
Original file line number Diff line number Diff line change 161161 }
162162 },
163163 "kind" : " Package" ,
164- "canonicalReference" : " api-extractor-test-05 !" ,
164+ "canonicalReference" : " api-extractor-scenarios !" ,
165165 "docComment" : " " ,
166- "name" : " api-extractor-test-05 " ,
166+ "name" : " api-extractor-scenarios " ,
167167 "members" : [
168168 {
169169 "kind" : " EntryPoint" ,
170- "canonicalReference" : " api-extractor-test-05 !" ,
170+ "canonicalReference" : " api-extractor-scenarios !" ,
171171 "name" : " " ,
172172 "members" : [
173173 {
174174 "kind" : " Variable" ,
175- "canonicalReference" : " api-extractor-test-05 !MY_CONSTANT:var" ,
175+ "canonicalReference" : " api-extractor-scenarios !MY_CONSTANT:var" ,
176176 "docComment" : " /**\n * @public\n */\n " ,
177177 "excerptTokens" : [
178178 {
193193 },
194194 {
195195 "kind" : " Class" ,
196- "canonicalReference" : " api-extractor-test-05 !MyClass:class" ,
196+ "canonicalReference" : " api-extractor-scenarios !MyClass:class" ,
197197 "docComment" : " /**\n * This is my class.\n *\n * @public\n */\n " ,
198198 "excerptTokens" : [
199199 {
206206 "members" : [
207207 {
208208 "kind" : " Method" ,
209- "canonicalReference" : " api-extractor-test-05 !MyClass#someMethod:member(1)" ,
209+ "canonicalReference" : " api-extractor-scenarios !MyClass#someMethod:member(1)" ,
210210 "docComment" : " /**\n * This method does something.\n *\n * @param x - This is x.\n *\n * @param y - This is y.\n */\n " ,
211211 "excerptTokens" : [
212212 {
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 "
22
33> Do not edit this file. It is a report generated by [ API Extractor] ( https://api-extractor.com/ ) .
44
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
12/** @public */
23export let MY_CONSTANT : number ;
4+
5+ // prettier-ignore
36/**
47 * @public This is my class.
58 */
@@ -10,4 +13,4 @@ export class MyClass {
1013 * @param y - This is y.
1114 */
1215 someMethod ( x : number , y : string ) : boolean ;
13- }
16+ }
Original file line number Diff line number Diff line change 22// See LICENSE in the project root for license information.
33
44import * as path from 'path' ;
5- import { FileSystem , JsonFile } from '@rushstack/node-core-library' ;
5+ import { AlreadyExistsBehavior , FileSystem , JsonFile } from '@rushstack/node-core-library' ;
66import {
77 Extractor ,
88 ExtractorConfig ,
@@ -16,6 +16,20 @@ import {
1616export function runScenarios ( buildConfigPath : string ) : void {
1717 const buildConfig = JsonFile . load ( buildConfigPath ) ;
1818
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+
1933 const entryPoints : string [ ] = [ ] ;
2034
2135 // TODO: Eliminate this workaround
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments