Skip to content

Commit 9a01fd6

Browse files
committed
migrate to monorepo
1 parent b6a1dec commit 9a01fd6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+2905
-695
lines changed

README.md

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,3 @@
11
# effect-mongodb
22

3-
A [MongoDB](https://github.com/mongodb/node-mongodb-native) toolkit for [Effect](https://github.com/Effect-TS/effect/).
4-
5-
## Install
6-
7-
```shell
8-
pnpm install @doubleloop-io/effect-mongodb effect @effect/schema mongodb
9-
```
10-
11-
Note that `effect`, `@effect/schema` and `mongodb` are requested as peer dependencies.
12-
13-
## Usage
14-
15-
TODO
16-
17-
## Development
18-
19-
Export `EFFECT_MONGODB_DEBUG` environment variable to see debug logs in tests.
20-
21-
To inspect MongoDB test instance:
22-
23-
1. Copy the connection string from the console
24-
2. Open Mongo Compass
25-
3. Paste the URI
26-
4. Click Advanced Connection Options
27-
5. Enable `Direct Connection`
28-
6. Click `Connect`
3+
TODO

package.json

Lines changed: 62 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,82 +1,90 @@
11
{
2-
"name": "@doubleloop-io/effect-mongodb",
3-
"author": "doubleloop.io",
4-
"version": "0.0.1",
2+
"private": true,
53
"type": "module",
6-
"license": "MIT",
7-
"description": "A MongoDB toolkit for Effect",
8-
"homepage": "https://github.com/doubleloop-io/effect-mongodb",
9-
"repository": {
10-
"type": "git",
11-
"url": "https://github.com/doubleloop-io/effect-mongodb"
12-
},
13-
"bugs": {
14-
"url": "https://github.com/doubleloop-io/effect-mongodb/issues"
15-
},
16-
"keywords": [
17-
"typescript",
18-
"mongodb"
19-
],
20-
"publishConfig": {
21-
"access": "public",
22-
"directory": "dist",
23-
"provenance": true
24-
},
254
"packageManager": "[email protected]",
5+
"workspaces": [
6+
"packages/*"
7+
],
268
"scripts": {
27-
"codegen": "build-utils prepare-v2",
28-
"build": "pnpm build-esm && pnpm build-cjs && pnpm build-annotate && build-utils pack-v2",
29-
"build-esm": "tsc -b tsconfig.build.json",
30-
"build-cjs": "babel build/esm --plugins @babel/transform-export-namespace-from --plugins @babel/transform-modules-commonjs --out-dir build/cjs --source-maps",
31-
"build-annotate": "babel build --plugins annotate-pure-calls --out-dir build --source-maps",
32-
"typecheck": "pnpm check",
33-
"typecheck:w": "pnpm check --watch",
34-
"check": "tsc -b tsconfig.json",
9+
"clean": "node scripts/clean.mjs",
10+
"codegen": "pnpm --recursive --parallel run codegen",
11+
"codemod": "node scripts/codemod.mjs",
12+
"build": "tsc -b tsconfig.build.json && pnpm --recursive --parallel run build",
13+
"circular": "node scripts/circular.mjs",
3514
"test": "vitest",
3615
"coverage": "vitest --coverage",
16+
"check": "tsc -b tsconfig.json",
17+
"check-recursive": "pnpm --recursive exec tsc -b tsconfig.json",
3718
"lint": "eslint \"**/{src,test,examples,scripts,dtslint}/**/*.{ts,mjs}\"",
3819
"lint-fix": "pnpm lint --fix",
20+
"docgen": "pnpm --recursive --parallel exec docgen && node scripts/docs.mjs",
21+
"dtslint": "pnpm --recursive --parallel run dtslint",
22+
"dtslint-clean": "dtslint --installAll",
23+
"changeset-version": "changeset version && node scripts/version.mjs",
24+
"changeset-publish": "pnpm codemod && pnpm lint-fix && pnpm build && TEST_DIST= pnpm vitest && changeset publish",
3925
"check-source-state": "git add src && git diff-index --cached HEAD --exit-code src"
4026
},
41-
"peerDependencies": {
42-
"@effect/schema": "^0.73.4",
43-
"effect": "^3.8.3",
44-
"mongodb": "^6.8.0"
27+
"resolutions": {
28+
"dependency-tree": "^10.0.9",
29+
"detective-amd": "^5.0.2",
30+
"detective-cjs": "^5.0.1",
31+
"detective-es6": "^4.0.1",
32+
"detective-less": "^1.0.2",
33+
"detective-postcss": "^6.1.3",
34+
"detective-sass": "^5.0.3",
35+
"detective-scss": "^4.0.3",
36+
"detective-stylus": "^4.0.0",
37+
"detective-typescript": "^11.1.0",
38+
"@types/node": "^22.5.4"
4539
},
4640
"devDependencies": {
47-
"@effect/schema": "^0.73.4",
48-
"effect": "^3.8.3",
49-
"mongodb": "^6.8.0",
5041
"@babel/cli": "^7.24.8",
5142
"@babel/core": "^7.25.2",
5243
"@babel/plugin-transform-export-namespace-from": "^7.24.7",
5344
"@babel/plugin-transform-modules-commonjs": "^7.24.8",
54-
"@effect/build-utils": "^0.7.8",
45+
"@changesets/changelog-github": "^0.5.0",
46+
"@changesets/cli": "^2.27.7",
47+
"@effect/build-utils": "^0.7.7",
5548
"@effect/docgen": "^0.4.4",
5649
"@effect/dtslint": "^0.1.1",
5750
"@effect/eslint-plugin": "^0.2.0",
5851
"@effect/language-service": "^0.1.0",
59-
"@types/node": "^20.14.8",
60-
"@typescript-eslint/eslint-plugin": "^7.18.0",
61-
"@typescript-eslint/parser": "^7.18.0",
62-
"@vitest/coverage-v8": "^1.5.2",
63-
"@vitest/expect": "^1.5.3",
52+
"@eslint/compat": "1.1.1",
53+
"@eslint/eslintrc": "3.1.0",
54+
"@eslint/js": "9.9.1",
55+
"@types/jscodeshift": "^0.11.11",
56+
"@types/node": "^22.5.4",
57+
"@typescript-eslint/eslint-plugin": "^7.16.0",
58+
"@typescript-eslint/parser": "^7.16.0",
59+
"@vitest/coverage-v8": "^2.0.5",
60+
"@vitest/expect": "^2.0.5",
61+
"ast-types": "^0.14.2",
6462
"babel-plugin-annotate-pure-calls": "^0.4.0",
65-
"eslint": "^8.57.0",
66-
"eslint-import-resolver-typescript": "^3.6.1",
63+
"eslint": "^9.9.1",
64+
"eslint-import-resolver-typescript": "^3.6.3",
6765
"eslint-plugin-codegen": "^0.28.0",
6866
"eslint-plugin-deprecation": "^3.0.0",
69-
"eslint-plugin-import": "^2.29.1",
70-
"eslint-plugin-simple-import-sort": "^12.1.0",
67+
"eslint-plugin-import": "^2.30.0",
68+
"eslint-plugin-simple-import-sort": "^12.1.1",
7169
"eslint-plugin-sort-destructure-keys": "^2.0.0",
72-
"fast-check": "^3.22.0",
73-
"glob": "^10.4.2",
74-
"prettier": "^3.3.2",
75-
"rimraf": "^5.0.7",
76-
"tsx": "^4.19.1",
70+
"fast-check": "^3.21.0",
71+
"glob": "^11.0.0",
72+
"jscodeshift": "^0.16.1",
73+
"madge": "^8.0.0",
74+
"prettier": "^3.3.3",
75+
"rimraf": "^6.0.1",
76+
"tsx": "^4.17.0",
7777
"typescript": "^5.6.2",
78-
"vite": "^5.3.1",
79-
"vitest": "^1.5.3",
78+
"vite": "^5.4.0",
79+
"vitest": "^2.0.5",
8080
"@testcontainers/mongodb": "^10.10.4"
81+
},
82+
"pnpm": {
83+
"overrides": {
84+
"vitest": "^2.0.5"
85+
},
86+
"patchedDependencies": {
87+
88+
}
8189
}
8290
}

packages/effect-mongodb/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024-present doubleloop.io
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

packages/effect-mongodb/README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# effect-mongodb
2+
3+
A [MongoDB](https://github.com/mongodb/node-mongodb-native) toolkit for [Effect](https://github.com/Effect-TS/effect/).
4+
5+
## Install
6+
7+
```shell
8+
pnpm install @doubleloop-io/effect-mongodb effect @effect/schema mongodb
9+
```
10+
11+
Note that `effect`, `@effect/schema` and `mongodb` are requested as peer dependencies.
12+
13+
## Usage
14+
15+
TODO
16+
17+
## Development
18+
19+
Export `EFFECT_MONGODB_DEBUG` environment variable to see debug logs in tests.
20+
21+
To inspect MongoDB test instance:
22+
23+
1. Copy the connection string from the console
24+
2. Open Mongo Compass
25+
3. Paste the URI
26+
4. Click Advanced Connection Options
27+
5. Enable `Direct Connection`
28+
6. Click `Connect`

packages/effect-mongodb/package.json

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"name": "@doubleloop-io/effect-mongodb",
3+
"author": "doubleloop.io",
4+
"version": "0.0.1",
5+
"type": "module",
6+
"license": "MIT",
7+
"description": "A MongoDB toolkit for Effect",
8+
"homepage": "https://github.com/doubleloop-io/effect-mongodb",
9+
"repository": {
10+
"type": "git",
11+
"url": "https://github.com/doubleloop-io/effect-mongodb"
12+
},
13+
"bugs": {
14+
"url": "https://github.com/doubleloop-io/effect-mongodb/issues"
15+
},
16+
"keywords": [
17+
"typescript",
18+
"mongodb"
19+
],
20+
"publishConfig": {
21+
"access": "public",
22+
"directory": "dist",
23+
"provenance": true
24+
},
25+
"packageManager": "[email protected]",
26+
"scripts": {
27+
"codegen": "build-utils prepare-v2",
28+
"build": "pnpm build-esm && pnpm build-annotate && pnpm build-cjs && build-utils pack-v2",
29+
"build-esm": "tsc -b tsconfig.build.json",
30+
"build-cjs": "babel build/esm --plugins @babel/transform-export-namespace-from --plugins @babel/transform-modules-commonjs --out-dir build/cjs --source-maps",
31+
"build-annotate": "babel build/esm --plugins annotate-pure-calls --out-dir build/esm --source-maps",
32+
"typecheck": "pnpm check",
33+
"typecheck:w": "pnpm check --watch",
34+
"dtslint": "dtslint dtslint",
35+
"check": "tsc -b tsconfig.json",
36+
"test": "vitest",
37+
"coverage": "vitest --coverage"
38+
},
39+
"peerDependencies": {
40+
"@effect/schema": "^0.73.4",
41+
"effect": "^3.8.3",
42+
"mongodb": "^6.8.0"
43+
},
44+
"devDependencies": {
45+
"@effect/schema": "^0.73.4",
46+
"effect": "^3.8.3",
47+
"mongodb": "^6.8.0",
48+
"@types/node": "^22.5.4"
49+
}
50+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)