Skip to content

Commit d5878f2

Browse files
committed
yay
1 parent 23bdc77 commit d5878f2

5 files changed

Lines changed: 30 additions & 3 deletions

File tree

.envrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
use flake
2+
dotenv_if_exists
3+
PATH_add ./node_modules/.bin

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ dist-dts
1212
rollup.config-*.mjs
1313
*.log
1414
.DS_Store
15-
drizzle-seed/src/dev
15+
drizzle-seed/src/dev
16+
.direnv

drizzle-kit/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pnpm install && pnpm build
99
```
1010

1111
#### Development
12-
Make any changes you require to the `drizzle-kit/api` file ([see here](./drizzle-kit/src/api.ts)), then run:
12+
Make any changes you require to the `drizzle-kit/api` file ([see here](./drizzle-kit/src/api.ts)), then run (from `drizzle-kit`):
1313
```bash
1414
pnpm build
1515
```

drizzle-kit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@drizzle-team/drizzle-kit",
3-
"version": "0.31.11",
3+
"version": "0.32.0",
44
"homepage": "https://orm.drizzle.team",
55
"keywords": [
66
"drizzle",

flake.nix

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
inputs.nixpkgs.url = "github:NixOS/nixpkgs/master";
3+
inputs.flake-utils.url = "github:numtide/flake-utils";
4+
5+
outputs = { self, nixpkgs, flake-utils }:
6+
flake-utils.lib.eachDefaultSystem (system: let
7+
pkgs = nixpkgs.legacyPackages.${system};
8+
in {
9+
devShell = pkgs.mkShell {
10+
nativeBuildInputs = [ pkgs.bashInteractive ];
11+
buildInputs = with pkgs; [
12+
nodePackages.prisma
13+
];
14+
shellHook = with pkgs; ''
15+
export PRISMA_MIGRATION_ENGINE_BINARY="${prisma-engines}/bin/migration-engine"
16+
export PRISMA_QUERY_ENGINE_BINARY="${prisma-engines}/bin/query-engine"
17+
export PRISMA_QUERY_ENGINE_LIBRARY="${prisma-engines}/lib/libquery_engine.node"
18+
export PRISMA_INTROSPECTION_ENGINE_BINARY="${prisma-engines}/bin/introspection-engine"
19+
export PRISMA_FMT_BINARY="${prisma-engines}/bin/prisma-fmt"
20+
'';
21+
};
22+
});
23+
}

0 commit comments

Comments
 (0)