Comments (8)
Perhaps functionless/register
instead of the lib
from functionless.
Perhaps
functionless/register
instead of thelib
This is what I originally wanted but I'm not sure how to reconcile this with how the project is currently packaged in the lib director.
from functionless.
Perhaps
functionless/register
instead of thelib
This is what I originally wanted but I'm not sure how to reconcile this with how the project is currently packaged in the lib director.
I'm pretty sure that is only true when importing the "functionless"
- which refers to the package.json/main
property. If you import a file directly, you have access to the root folder of the package.
We should verify, but i think this is how it works.
// "node_modules/functionless/lib/index.ts" because of package.json/main
import "functionless";
// "node_modules/functionless/register.js"
import "functionless/register"
from functionless.
Just tried this and it fails due to being unable to find the module. There has to be a way to make it work though. Probably some other config in the package.json
. I'll keep digging since I think it looks much cleaner without the lib.
from functionless.
Is it included in the tgz?
from functionless.
Yeah it is but its in the lib directory. For some reason node doesn't seem to treat the main entrypoint as the root when resolving nested files, it treats the package.json location as the root.
from functionless.
Yeah it is but its in the lib directory. For some reason node doesn't seem to treat the main entrypoint as the root when resolving nested files, it treats the package.json location as the root.
Move it to the root and it'll work.
functionless/register.js
from functionless.
The only special case is when importing the module by name. All other file references start from the root. main
only affects the default import.
from functionless.
Related Issues (20)
- Feature: escape hatch for Step Function Tasks HOT 2
- Resolve dead links in type docs.
- Support forward-referencing (or late-bound references) from closures
- StepFunctions: support `flatMap`
- Step Functions: String startsWith and contains
- StepFunctions: Promise.all(array.map) should be parallel HOT 2
- Design: Post-Deployment Fragment Executable.
- Step Functions: Retry HOT 2
- Bus: Step Function fails when there are uninitialized members and map/parallel states.
- Bug: `$AWS.SDK` method types return `Date` in step functions HOT 2
- Step Functions: implement `?.` for undefined literals HOT 1
- Bug: Step Functions truthy logic on an object return undefined. HOT 1
- Optimization Feature - Step Functions: Type Hints
- Bug: $SFN.ForEach bound argument uses the wrong source path HOT 2
- Deprecate V1 closure serializer and default to V2 HOT 1
- Step Functions and AppSync : document supported built-in functions and integrations.
- create-functionless-app: Created app cannot synth when using npm
- create-functionless fails with yarn 3
- Is functionless still alive HOT 5
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 functionless.