优化
This commit is contained in:
14
client/packages/plugin-declaration-generator/test/parser.ts
Normal file
14
client/packages/plugin-declaration-generator/test/parser.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { parseDeclarationEntry } from '../src/parser';
|
||||
import path from 'path';
|
||||
|
||||
const project = parseDeclarationEntry({
|
||||
entryPath: path.resolve(__dirname, './demo/index.ts'),
|
||||
project: {
|
||||
tsConfigFilePath: path.resolve(__dirname, './demo/tsconfig.json'),
|
||||
},
|
||||
});
|
||||
|
||||
console.log(
|
||||
'sourceFile',
|
||||
project.getSourceFiles().map((item) => item.getFilePath())
|
||||
);
|
||||
Reference in New Issue
Block a user