Skip to content

Commit

Permalink
feat: add package for nodejs basic imports
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorsalgado committed Feb 14, 2021
1 parent cd40706 commit 997fbbd
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"workspaces": [
"benchmarks",
"internal/*",
"pkgs/*"
"pkgs/*",
"examples/*"
],
"keywords": [
"http",
Expand Down
2 changes: 1 addition & 1 deletion pkgs/drizzle-http-logging-interceptor/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@drizzle-http/logging-interceptor",
"version": "1.0.0",
"version": "0.0.1",
"description": "Logging Interceptor for Drizzle-HTTP",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
9 changes: 9 additions & 0 deletions pkgs/drizzle-http-nodejs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Drizzle-HTTP Node.js

Basic packages for Node.js

## Installation

```
npm i @drizzle-http/nodejs
```
25 changes: 25 additions & 0 deletions pkgs/drizzle-http-nodejs/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "@drizzle-http/nodejs",
"version": "0.0.1",
"description": "Drizzle-HTTP default packages for Node.js",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": "./dist/index.js",
"./package.json": "./package.json"
},
"scripts": {
"preinstall": "tsc --build --force",
"build": "tsc --build --force"
},
"author": {
"name": "Vitor Hugo Salgado",
"url": "https://github.com/vitorsalgado"
},
"license": "MIT",
"dependencies": {
"@drizzle-http/core": "0.0.1",
"@drizzle-http/logging-interceptor": "0.0.1",
"@drizzle-http/undici": "0.0.1"
}
}
3 changes: 3 additions & 0 deletions pkgs/drizzle-http-nodejs/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export * from '@drizzle-http/core'
export * from '@drizzle-http/undici'
export * from '@drizzle-http/logging-interceptor'
14 changes: 14 additions & 0 deletions pkgs/drizzle-http-nodejs/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "src",
"outDir": "./dist"
},
"references": [
{ "path": "../drizzle-http", "prepend": false },
{ "path": "../drizzle-http-undici", "prepend": false },
{ "path": "../drizzle-http-logging-interceptor", "prepend": false },
{ "path": "../../internal/test-utils", "prepend": false }
],
"include": ["src/**/*"]
}
12 changes: 11 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1794,7 +1794,7 @@ __metadata:
languageName: unknown
linkType: soft

"@drizzle-http/logging-interceptor@workspace:pkgs/drizzle-http-logging-interceptor":
"@drizzle-http/logging-interceptor@0.0.1, @drizzle-http/logging-interceptor@workspace:pkgs/drizzle-http-logging-interceptor":
version: 0.0.0-use.local
resolution: "@drizzle-http/logging-interceptor@workspace:pkgs/drizzle-http-logging-interceptor"
dependencies:
Expand Down Expand Up @@ -1833,6 +1833,16 @@ __metadata:
languageName: unknown
linkType: soft

"@drizzle-http/nodejs@workspace:pkgs/drizzle-http-nodejs":
version: 0.0.0-use.local
resolution: "@drizzle-http/nodejs@workspace:pkgs/drizzle-http-nodejs"
dependencies:
"@drizzle-http/core": 0.0.1
"@drizzle-http/logging-interceptor": 0.0.1
"@drizzle-http/undici": 0.0.1
languageName: unknown
linkType: soft

"@drizzle-http/rxjs-adapter@workspace:pkgs/drizzle-http-rxjs-adapter":
version: 0.0.0-use.local
resolution: "@drizzle-http/rxjs-adapter@workspace:pkgs/drizzle-http-rxjs-adapter"
Expand Down

0 comments on commit 997fbbd

Please sign in to comment.