Comments (4)
Hi @m0ar,
Thanks for using caxa and for reaching out.
caxa preserves symlinks. For example, suppose your project looks like the following:
package.json
{
"type": "module",
"dependencies": {
"caxa": "^2.1.0"
}
}
index.js
import fs from "node:fs/promises";
import path from "node:path";
import url from "node:url";
console.log(
await fs.readFile(
path.join(url.fileURLToPath(import.meta.url), "../symlink"),
"utf-8"
)
);
$ echo Hello > original
$ ln -s original symlink
Then you package it with caxa:
$ npx caxa --input . --output example -- "{{caxa}}/node_modules/.bin/node" "{{caxa}}/index.js"
And run the executable:
$ ./example
Hello
So unfortunately there’s something else about your infrastructure that’s going wrong. Maybe it might help you to check the contents of caxa/applications
folder where your application will be unpackaged for running:
$ node -p "require(\"os\").tmpdir()"
Good luck and feel free to reopen the issue in case you think there’s something we can do to help.
from caxa.
OK, that's great to know! This information will definitely help with the debugging :)
from caxa.
Hi @m0ar,
Could you find a solution, I have a similar issue where my local dependencies are not included in the package.
Edit: I believe the package does not scan the upper directories when local packages are linked. There needs to be a way to somehow add packages from an upper directory.
from caxa.
@erdemert nope, wasn't a good fit for our use case. We have embraced Nix instead :)
from caxa.
Related Issues (20)
- Feature request: file for exclusions, configuration file HOT 1
- caxa with adonisJs It doesn't work for me can you help please!! HOT 3
- API usage in ESM module: TypeError: caxa is not a function HOT 3
- Hide console window HOT 11
- Windows executable can't be code-signed HOT 3
- "Unsupported 16-Bit Application" error on Windows exe HOT 1
- Freebsd stub ? HOT 2
- Guidance to change from os.tmpDir() to arbitrary path HOT 1
- Executable binary reading from a new file at runtime HOT 1
- MODULE_NOT_FOUND for any additional library HOT 1
- TypeError: Class extends value undefined is not a constructor or null HOT 1
- Current working directory on macos not per documentation HOT 1
- Are multiple commands supported? HOT 1
- Instead of replacing the previous executable entirely, it adds content of the previous executable to the new one and then replaces it. HOT 3
- Windows exe error .node dependencies HOT 1
- libnode.so.108: cannot open shared object file HOT 1
- My code becomes exposed HOT 2
- can i tell caxa where it extracts itself too? HOT 1
- Caxa using current working directory instead of TMP dir for Express static serving HOT 1
- Cannot find module 'date-fns' HOT 1
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 caxa.