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

Same result as typescript cli command #128

Open
FDiskas opened this issue Mar 2, 2020 · 2 comments
Open

Same result as typescript cli command #128

FDiskas opened this issue Mar 2, 2020 · 2 comments

Comments

@FDiskas
Copy link

FDiskas commented Mar 2, 2020

Im getting the same results as

tsc -d --emitDeclarationOnly --module System --resolveJsonModule false --outFile dist/index.d.ts

and

dts-generator --project . --out index.d.ts

image

@millsp
Copy link

millsp commented May 21, 2020

Yeah, I've been doing this like

#!/bin/bash

mkdir -p out

npx tsc ./src/index.ts --declaration --emitDeclarationOnly --out out/index.js --module amd &&

echo "
declare module 'YOUR_PACKAGE_NAME' {
    import main = require('index');
    export = main;
}
" >> out/index.d.ts

@zyf0330
Copy link

zyf0330 commented Feb 1, 2021

At lease, exclude option works differently.

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

No branches or pull requests

3 participants