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

Accept custom tsconfig in deno bundle #5632

Closed
amatiasq opened this issue May 19, 2020 · 2 comments
Closed

Accept custom tsconfig in deno bundle #5632

amatiasq opened this issue May 19, 2020 · 2 comments

Comments

@amatiasq
Copy link

Related to #5631

It would be helpful if deno bundle script.ts had a way to specify a custom tsconfig file in order to bundle scripts that access DOM.

@davidcallanan
Copy link

Does -c tsconfig.json not work? This could be the cause of a problem I am having...

@bartlomieju bartlomieju added bug Something isn't working correctly cli related to cli/ dir good first issue Good for newcomers and removed bug Something isn't working correctly cli related to cli/ dir good first issue Good for newcomers labels May 21, 2020
@bartlomieju
Copy link
Member

--config argument is available for deno bundle:

eno bundle --help
deno-bundle
Output a single JavaScript file with all dependencies.
  deno bundle https://deno.land/std/examples/colors.ts colors.bundle.js

If no output file is given, the output is written to standard output:
  deno bundle https://deno.land/std/examples/colors.ts

USAGE:
    deno bundle [OPTIONS] <source_file> [out_file]

OPTIONS:
        --cert <FILE>
            Load certificate authority from PEM encoded file

    -c, --config <FILE>
            Load tsconfig.json configuration file

    -h, --help
            Prints help information

        --importmap <FILE>
            UNSTABLE:
            Load import map file
            Docs: https://deno.land/manual/linking_to_external_code/import_maps
            Specification: https://wicg.github.io/import-maps/
            Examples: https://github.com/WICG/import-maps#the-import-map
    -L, --log-level <log-level>
            Set log level [possible values: debug, info]

    -q, --quiet
            Suppress diagnostic output
            By default, subcommands print human-readable diagnostic messages to stderr.
            If the flag is set, restrict these messages to errors.
        --unstable
            Enable unstable APIs

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