GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — compile producing empty output · Issue #10 · typescript-ruby/typescript-node-ruby

compile producing empty output #10

New issue
Copy link
New issue
Copy link
Open
Open
compile producing empty output#10
Copy link

Description

@kikonen
kikonen
opened on Jul 10, 2016
Issue body actions

Noticed when tried to use typescript-rails, actual issue is apparently within this gem.

typescript-ruby/typescript-rails#42

Based into documentation (https://www.typescriptlang.org/docs/handbook/compiler-options.html), "--out" options is deprecated and should use "--outFile". Did quick hack to test that, and didn't notice any change in behavior (output_js still became empty, and "/tmp" appears to contain generated temp files instead).

Activity

  1. kikonen commented on Jul 10, 2016

    @kikonen
    kikonen
    on Jul 10, 2016
    Author
    More actions

    Seems to work with following patch

    module TypeScript
      module Node
    ...
          def compile_file(source_file, *tsc_options)
    ...
    #          output_file = File.join(output_dir, 'out.js')
    #          stdout, stderr, exit_status = tsc(*tsc_options, '--out', output_file, source_file)
              output_file = source_file.sub(/\.ts\z/, '.js')
              stdout, stderr, exit_status = tsc(*tsc_options, source_file)
    ...

    Issue occurred when using command line options

    [
      '--target', 'ES5',
      '--noImplicitAny',
      '--module', 'system',
      ]
  2. arnvald
    added a commit that references this issue on Aug 13, 2017

    Fixed generating output

    6dec35d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.