chore: remove bun and pnpm
This commit is contained in:
@@ -3,19 +3,19 @@
|
||||
## Build Commands
|
||||
|
||||
```bash
|
||||
bun run dev # Development: runs build.js + tailwindcss --watch
|
||||
bun run build # Production build → extension/output
|
||||
bun run package:chrome # Creates extension/releases/nostrconnect_chrome.zip
|
||||
bun run package:firefox # Creates extension/releases/nostrconnect_firefox.xpi
|
||||
bun run lint # Run Biome linter
|
||||
bun run format # Format with Biome (auto-fix)
|
||||
bun run test # Run tests with Vitest
|
||||
bun run test:watch # Run tests in watch mode
|
||||
npm run dev # Development: runs build.js + tailwindcss --watch
|
||||
npm run build # Production build → extension/output
|
||||
npm run package:chrome # Creates extension/releases/nostrconnect_chrome.zip
|
||||
npm run package:firefox # Creates extension/releases/nostrconnect_firefox.xpi
|
||||
npm run lint # Run Biome linter
|
||||
npm run format # Format with Biome (auto-fix)
|
||||
npm run test # Run tests with Vitest
|
||||
npm run test:watch # Run tests in watch mode
|
||||
```
|
||||
|
||||
## Key Facts
|
||||
|
||||
- **Package manager**: bun (preferred) or pnpm. Uses `@jsr` registry for `@nostr/tools`
|
||||
- **Package manager**: npm. Peer dependency conflicts are tolerated via `legacy-peer-deps=true` in `.npmrc`
|
||||
- **Build output**: `extension/output/` (not `dist/`)
|
||||
- **Ignore `extension/output/`**: It contains generated JS/HTML/CSS and is gitignored
|
||||
- **Tailwind source**: `extension/style.css` → `extension/output/style.css`
|
||||
|
||||
@@ -23,8 +23,8 @@ async window.nostr.nip44.decrypt(pubkey, ciphertext): string // NIP-44 decryptio
|
||||
```bash
|
||||
git clone https://git.reya.su/reya/nostr-connect
|
||||
cd nostr-connect
|
||||
bun install
|
||||
bun run build
|
||||
npm install
|
||||
npm run build
|
||||
```
|
||||
|
||||
Then:
|
||||
@@ -37,9 +37,9 @@ Then:
|
||||
## Commands
|
||||
|
||||
```bash
|
||||
bun run dev # Development mode
|
||||
bun run build # Production build
|
||||
bun run lint # Lint code
|
||||
bun run test # Run tests
|
||||
bun run package:chrome # Package for Chrome
|
||||
npm run dev # Development mode
|
||||
npm run build # Production build
|
||||
npm run lint # Lint code
|
||||
npm run test # Run tests
|
||||
npm run package:chrome # Package for Chrome
|
||||
```
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -21,9 +21,9 @@
|
||||
mod
|
||||
));
|
||||
|
||||
// node_modules/.pnpm/webextension-polyfill@0.8.0/node_modules/webextension-polyfill/dist/browser-polyfill.js
|
||||
// node_modules/webextension-polyfill/dist/browser-polyfill.js
|
||||
var require_browser_polyfill = __commonJS({
|
||||
"node_modules/.pnpm/webextension-polyfill@0.8.0/node_modules/webextension-polyfill/dist/browser-polyfill.js"(exports, module) {
|
||||
"node_modules/webextension-polyfill/dist/browser-polyfill.js"(exports, module) {
|
||||
(function(global, factory) {
|
||||
if (typeof define === "function" && define.amd) {
|
||||
define("webextension-polyfill", ["module"], factory);
|
||||
|
||||
+3639
-1648
File diff suppressed because it is too large
Load Diff
+3519
-1560
File diff suppressed because it is too large
Load Diff
+546
-211
File diff suppressed because it is too large
Load Diff
+1125
-1
File diff suppressed because one or more lines are too long
Generated
+4050
File diff suppressed because it is too large
Load Diff
+4
-6
@@ -1,7 +1,6 @@
|
||||
{
|
||||
"license": "WTFPL",
|
||||
"dependencies": {
|
||||
"@nostr/tools": "npm:@jsr/nostr__tools@^2.23.3",
|
||||
"@radix-ui/react-checkbox": "^1.3.3",
|
||||
"@radix-ui/react-tabs": "^1.1.13",
|
||||
"async-mutex": "^0.3.2",
|
||||
@@ -11,17 +10,16 @@
|
||||
"nostr-tools": "^2.8.1",
|
||||
"react": "^17.0.2",
|
||||
"react-dom": "^17.0.2",
|
||||
"react-native-svg": "^13.14.1",
|
||||
"react-qr-code": "^2.0.18",
|
||||
"use-boolean-state": "^1.0.2",
|
||||
"use-debounce": "^7.0.1",
|
||||
"webextension-polyfill": "^0.8.0"
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "./build.js; bunx tailwindcss -i ./extension/style.css -o ./extension/output/style.css --watch",
|
||||
"build": "bunx tailwindcss -i ./extension/style.css -o ./extension/output/style.css; ./build.js prod",
|
||||
"package:chrome": "bunx tailwindcss -i ./extension/style.css -o ./extension/output/style.css --minify; ./build.js prod; cd extension/output; zip -r archive *; cd ../../; mv extension/output/archive.zip extension/releases/nostrconnect_chrome.zip",
|
||||
"package:firefox": "bunx tailwindcss -i ./extension/style.css -o ./extension/output/style.css --minify; ./build.js prod firefox; cd extension/output; zip -r archive *; cd ../../; mv extension/output/archive.zip extension/releases/nostrconnect_firefox.xpi",
|
||||
"dev": "./build.js; npx tailwindcss -i ./extension/style.css -o ./extension/output/style.css --watch",
|
||||
"build": "npx tailwindcss -i ./extension/style.css -o ./extension/output/style.css; ./build.js prod",
|
||||
"package:chrome": "npx tailwindcss -i ./extension/style.css -o ./extension/output/style.css --minify; ./build.js prod; cd extension/output; zip -r archive *; cd ../../; mv extension/output/archive.zip extension/releases/nostrconnect_chrome.zip",
|
||||
"package:firefox": "npx tailwindcss -i ./extension/style.css -o ./extension/output/style.css --minify; ./build.js prod firefox; cd extension/output; zip -r archive *; cd ../../; mv extension/output/archive.zip extension/releases/nostrconnect_firefox.xpi",
|
||||
"lint": "biome lint ./extension/background.js ./extension/common.js ./extension/nostr-provider.js ./extension/content-script.js ./extension/popup.jsx ./extension/prompt.jsx ./extension/options.jsx ./extension/icons.jsx ./extension/utils.js",
|
||||
"format": "biome format --write ./extension/background.js ./extension/common.js ./extension/nostr-provider.js ./extension/content-script.js ./extension/popup.jsx ./extension/prompt.jsx ./extension/options.jsx ./extension/icons.jsx ./extension/utils.js",
|
||||
"test": "vitest run",
|
||||
|
||||
Generated
-7612
File diff suppressed because it is too large
Load Diff
@@ -1,2 +0,0 @@
|
||||
allowBuilds:
|
||||
esbuild: false
|
||||
Reference in New Issue
Block a user