Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better exit process behavior #2

Merged
merged 1 commit into from
Mar 23, 2021
Merged

Better exit process behavior #2

merged 1 commit into from
Mar 23, 2021

Conversation

bigtimebuddy
Copy link
Contributor

@bigtimebuddy bigtimebuddy commented Mar 23, 2021

This does a hard exit when hitting errors. Here's the example of it in action:

@pixi/utils ---------------------------------------------
Analysis will use the bundled TypeScript version 3.9.5
@pixi/utils failed:
Error: The expression contains an import() type, which is not yet supported by API Extractor:
/Users/mattkarl/GitHub/pixijs/pixi.js/out/packages/utils/src/index.d.ts:82:12
    at ExportAnalyzer._tryMatchImportDeclaration (/Users/mattkarl/GitHub/pixijs/pixi.js/node_modules/@microsoft/api-extractor/lib/analyzer/ExportAnalyzer.js:451:19)
    at ExportAnalyzer.fetchReferencedAstEntity (/Users/mattkarl/GitHub/pixijs/pixi.js/node_modules/@microsoft/api-extractor/lib/analyzer/ExportAnalyzer.js:251:45)
    at ExportAnalyzer._tryGetExportOfAstModule (/Users/mattkarl/GitHub/pixijs/pixi.js/node_modules/@microsoft/api-extractor/lib/analyzer/ExportAnalyzer.js:496:34)
    at ExportAnalyzer._getExportOfAstModule (/Users/mattkarl/GitHub/pixijs/pixi.js/node_modules/@microsoft/api-extractor/lib/analyzer/ExportAnalyzer.js:469:32)
    at /Users/mattkarl/GitHub/pixijs/pixi.js/node_modules/@microsoft/api-extractor/lib/analyzer/ExportAnalyzer.js:216:60
    at Map.forEach (<anonymous>)
    at ExportAnalyzer._collectAllExportsRecursive (/Users/mattkarl/GitHub/pixijs/pixi.js/node_modules/@microsoft/api-extractor/lib/analyzer/ExportAnalyzer.js:207:48)
    at ExportAnalyzer.fetchAstModuleExportInfo (/Users/mattkarl/GitHub/pixijs/pixi.js/node_modules/@microsoft/api-extractor/lib/analyzer/ExportAnalyzer.js:157:18)
    at AstSymbolTable.fetchAstModuleExportInfo (/Users/mattkarl/GitHub/pixijs/pixi.js/node_modules/@microsoft/api-extractor/lib/analyzer/AstSymbolTable.js:63:37)
    at Collector.analyze (/Users/mattkarl/GitHub/pixijs/pixi.js/node_modules/@microsoft/api-extractor/lib/collector/Collector.js:128:57)
npm ERR! code 1
npm ERR! path /Users/mattkarl/GitHub/pixijs/pixi.js
npm ERR! command failed
npm ERR! command sh -c rimraf out && tsc && api-extractor-lerna-monorepo && rimraf out && ts-node-script ./scripts/injectGlobalMixins.ts

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/mattkarl/.npm/_logs/2021-03-23T03_30_11_929Z-debug.log

@ShukantPal ShukantPal merged commit 9d32e67 into ShukantPal:master Mar 23, 2021
@ShukantPal
Copy link
Owner

I'll try to release this again ASAP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants