Merge pull request #6 from proudparrot2/main

Make publishable on NPM
This commit is contained in:
Avad3 2024-06-29 17:03:56 -04:00 committed by GitHub
commit 71b02202cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 2 deletions

5
lib/index.js Normal file
View file

@ -0,0 +1,5 @@
import { resolve } from 'node:path'
const scramjetPath = resolve(import.meta.dirname, '..', 'dist');
export { scramjetPath }

View file

@ -1,12 +1,17 @@
{ {
"name": "scramjet", "name": "scramjet",
"version": "1.0.0", "version": "1.0.0",
"description": "", "description": "An experimental web proxy that aims to be the successor to Ultraviolet",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"build": "node esbuild.js", "build": "node esbuild.js",
"dev": "concurrently -n dev-server,bare-server-node -c blue,green -k \"node esbuild.dev.js\" \"bare-server-node -p 3000 -e\"" "dev": "concurrently -n dev-server,bare-server-node -c blue,green -k \"node esbuild.dev.js\" \"bare-server-node -p 3000 -e\"",
"publish": "npm run publish && npm publish --access public"
}, },
"files": [
"dist",
"lib"
],
"keywords": [], "keywords": [],
"author": "", "author": "",
"license": "ISC", "license": "ISC",