Comments (4)
Is this even possible? 🤔
from typedb-driver-nodejs.
@vmax ?
from typedb-driver-nodejs.
Is this even possible?
we'll first need to do the research on whether it is possible. @haikalpribadi
from typedb-driver-nodejs.
@lolski This is technically possible, but not recommended. (Almost) all JavaScript and TypeScript projects use the package.json
format for declaring dependencies. There are alternatives - a couple of Medium articles discuss this, including https://blog.bitsrc.io/4-npm-alternatives-best-js-package-managers-and-publishing-tools-fe6779937ee9 - but they are not well-known and it would not be beneficial for us to use a package manager with very low adoption in a secondary language in our ecosystem.
We will surely continue to use Bazel, and so it makes sense for us to use the prebuilt Bazel npm
rules that we already use:
# Load package.json
node_repositories(
package_json = ["//:package.json"]
)
yarn_install(
name = "npm",
package_json = "//:package.json",
yarn_lock = "//:yarn.lock",
)
Note that this then allows our yarn
-installed packages to be referenced as Bazel targets, akin to our usage of Maven inside Bazel:
ts_project(
name = "client-nodejs",
srcs = glob([
"*.ts",
"api/**/*.ts",
"common/**/*.ts",
"connection/**/*.ts",
"concept/**/*.ts",
"logic/**/*.ts",
"query/**/*.ts",
"stream/**/*.ts",
]),
tsconfig = "tsconfig.json",
declaration = True,
deps = [
"@npm//@grpc/grpc-js",
"@npm//@types/node",
"@npm//@types/uuid",
"@npm//typedb-protocol",
"@npm//typescript",
"@npm//uuid",
],
)
I will close this issue - feel free to reopen if there is anything I'm missing that would cause our current behaviour to be incorrect.
from typedb-driver-nodejs.
Related Issues (20)
- Is this library functional yet? HOT 4
- QueryManager's matchAggregate, matchGroup and matchGroupAggregate send queries with incorrect type
- matchAggregate queries throw an exception
- Enable BDD tests for all Graql Queries on Client Nodejs HOT 1
- Upgrade client-nodejs to use the latest @graknlabs_common HOT 1
- The package deployed to `npm` uses UMD modules, not CommonJS, causing incompatibility with Workbase
- 'npm install typedb-client' on MacOS fails HOT 2
- BDD: User management
- TypeDB Cluster: Update password
- Use `yarn` instead of `npm` to install dependencies HOT 1
- Determine which of our direct dependencies pull in the most transitive deps HOT 1
- Support user token mechanism for faster authentication
- User role management HOT 1
- Replica tracking simplification HOT 1
- Node.js build fails on Apple Silicon HOT 1
- Add a function to the Cluster client to return the current user
- Integration tests fail locally with `undefined` errors
- Typescript Definition file needed HOT 14
- Un-ignore test for modifying schema in a READ transaction 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 typedb-driver-nodejs.