Prepare script should conditionally compile

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.0.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None

      The typescript code base needs to be distributed in compiled form for user's to be able to use it. Our prepare script should run and conditionally compile when a src directory is present and tsc is available. 
      Situations to consider:

      • A contributor clones and runs npm install to get dependencies, this should compile the driver
      • A user npm installs the driver, no src is present, tsc is a dev dep (they could be using typescript so it might be present)
      • A user specifies a git revision as a version number, this is not precisely a supported downstream method but it would be good to not dump error messages in this use case either

            Assignee:
            Neal Beeken
            Reporter:
            Neal Beeken
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: