Giter VIP home page Giter VIP logo

Comments (6)

crazy-max avatar crazy-max commented on May 20, 2024

@rethab Agree with that. Would also need to indicate es2015 support:

{
  "compilerOptions": {
    "target": "es2015",
    "moduleResolution": "node"
  }
}

from typescript-action.

cdeutsch avatar cdeutsch commented on May 20, 2024

Just got confused by the lib/dist thing so +1 for simplifying.

Would be even better if you could build/package on the fly so you didn't have to checkin the dist folder (which I've forgotten to do and spent hours trying to figure out what went wrong 🤦‍♂️ )

from typescript-action.

rethab avatar rethab commented on May 20, 2024

Would be even better if you could build/package on the fly so you didn't have to checkin the dist folder (which I've forgotten to do and spent hours trying to figure out what went wrong 🤦‍♂️ )

How would you do that?

Note that forgetting to update the dist folder is a common problem. What you would typically do to mitigate this is to add a step to the workflow of your action that makes sure you didn't forget to update the dist folder. You can do this by running generating the dist folder as part of the workflow and then check whether anything changed. If something changed, you forgot to update the folder. Here's an example of how this could work in practice: https://github.com/actions/checkout/blob/main/.github/workflows/check-dist.yml

from typescript-action.

cdeutsch avatar cdeutsch commented on May 20, 2024

How would you do that?

I don't know and when I looked into it yesterday couldn't figure it out. I assume this is something GitHub would have to implement?

Thanks for the link to check-dist. I'll add that 👍

from typescript-action.

rethab avatar rethab commented on May 20, 2024

I don't know and when I looked into it yesterday couldn't figure it out. I assume this is something GitHub would have to implement?

I think you want to have it packaged by the action author, because otherwise the action might behave differently based on what versions of tools are used when packaging it on the fly.

What they could do instead would be to allow publishing actions to a registry (like npmjs.org) and then make them usable in a workflow like so:

uses: npmjs://@actions/checkout

But this is kinda ugly and they started with the dist approach. Changing it now might lead to friction. Also, while having the packaged action in the dist folder is not very nice from an engineering perspective, it is very straightforward as less tools are involved.

from typescript-action.

ncalteen avatar ncalteen commented on May 20, 2024

👋🏻 Hello! Apologies for the delay on this issue. I am going through this repository and making some large updates. This will be resolved by #732

from typescript-action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.