feat: migrate to pnpm, add dev flake

This commit is contained in:
Naxdy 2025-04-21 16:48:40 +02:00
parent 8d6607ef96
commit 01fb464e56
Signed by: Naxdy
GPG key ID: CC15075846BCE91B
8 changed files with 12097 additions and 7904 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
use flake

5
.gitignore vendored
View file

@ -9,3 +9,8 @@ node_modules
docs
.parcel-cache
# nix
.direnv
/result
/result-*

27
flake.lock generated Normal file
View file

@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1744932701,
"narHash": "sha256-fusHbZCyv126cyArUwwKrLdCkgVAIaa/fQJYFlCEqiU=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "b024ced1aac25639f8ca8fdfc2f8c4fbd66c48ef",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

45
flake.nix Normal file
View file

@ -0,0 +1,45 @@
{
description = "Svelte on Solana Wallet Adapter";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};
outputs =
{ self, nixpkgs }:
let
supportedSystems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
forEachSupportedSystem =
f:
nixpkgs.lib.genAttrs supportedSystems (
system:
let
pkgs = import nixpkgs {
inherit system;
};
in
f {
inherit pkgs;
}
);
in
{
devShells = forEachSupportedSystem (
{ pkgs, ... }:
{
default = pkgs.mkShell {
nativeBuildInputs = [
pkgs.pnpm
pkgs.nodejs
];
};
}
);
};
}

View file

@ -25,6 +25,7 @@
"access": "public"
},
"scripts": {
"preinstall": "npx only-allow pnpm",
"clean": "lerna run clean",
"build": "lerna run build",
"test": "lerna run test",

12016
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load diff

2
pnpm-workspace.yaml Normal file
View file

@ -0,0 +1,2 @@
packages:
- 'packages/**'

7904
yarn.lock

File diff suppressed because it is too large Load diff