Comments (12)
How about ncc build ./src/main.ts -o dist
?
from actions-netlify.
@nwtgck even though they don't use Typescript, they compile their package to a CJS format using webpack/babel and something is either wrong with that compile or it needs to go to more formats - I'm not very well versed in package formats (CJS/UMD etc) so I can't offer much more than blaming the netlify
package 😄
Even so I would say it is certainly their packages issue - there is nothing wrong with your package here.
I have another Github action (its not really useful, just a playground action really) but I also checked how it built and I don't get the weird dist/typescript
folder when I build using ncc
either
from actions-netlify.
You may not need to run tsc
before ncc build
in your release process.
from actions-netlify.
Thanks!
I ran as follows, but "./dist/typescript" was still generated.
rm -r dist
# NOTE: I don't run "npm run build" not to run `tsc`
npm run format && npm run lint && npm run pack && npm test
from actions-netlify.
Thanks! I removed ./dist
and ran the ./node_modules/.bin/ncc build ./src/main.ts -o dist
, but still generated.
from actions-netlify.
note for me
Here are the whole diffs between the template and current files: 0340e02...825cfca. It seems there is no difference related to some configurations.
from actions-netlify.
Somehow it's related to the netlify
import... might be something to do with how they export it 🤔
Removing the netlify
import and then running ncc
for me;
If I bring back the netlify import, it builds dist/typescript
again.
from actions-netlify.
@South-Paw Thank you very much for the information! According your investigation, import NetlifyAPI from 'netlify'
creates /dist/typescript.
from actions-netlify.
@nwtgck 👍
It might be because of how they build/distribute their package... might be best to raise and issue over there to see if you can get anywhere.
from actions-netlify.
@South-Paw Thanks. Maybe I should post the issue. But, netlify/js-client doesn't use TypeScript at all, written in JavaScript. I'd like to investigate the reason more.
from actions-netlify.
@South-Paw Thanks.
I'm not very well versed in package formats (CJS/UMD etc)
Me too.
Your are the finder of import "netlify"
thing. I think it is better to create the issue by you because you can be a contributor!
from actions-netlify.
#178 solves this issue! Thanks @rajington!
tsconfig.json
: https://github.com/nwtgck/actions-netlify/pull/178/files#diff-e5e546dd2eb0351f813d63d1b39dbc48
from actions-netlify.
Related Issues (20)
- output deploy id
- Invalid action input 'enable-github-deployment' HOT 6
- Release HOT 2
- Error: Unprocessable Entity HOT 2
- Update node version to 20 HOT 1
- Page Not Found for Remix + Vite App HOT 1
- No such file or directory when deploying HOT 3
- Netlify preview build not using netlify.toml HOT 2
- netlify-config-path not working for me HOT 1
- Production deployment not working HOT 1
- How to delete deploy preview on PR merge? HOT 4
- Critical security issue with preview deployments HOT 5
- Netlify Large Media? HOT 1
- Upload crashes when using TS files in the 'functions' folder HOT 2
- Wich is the right publish-dir path to Nextjs? HOT 4
- Deprecation warning for Node 12 HOT 7
- (More) deprecation warning for Node 12 HOT 2
- ✨ add input to enable/disable github deployment
- Post 2 comments for two separate builds HOT 1
- Support for edge-functions HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from actions-netlify.