-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.json
38 lines (38 loc) · 1.61 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
"name": "js-srp",
"version": "0.0.2",
"description": "A TypeScript implementation of SRP-6a with some tweaks, designed to be compatible with opencoff/go-srp.",
"main": "dist/index.node.cjs",
"browser": "dist/index.browser.js",
"module": "dist/index.node.mjs",
"exports": {
".": {
"browser": "./dist/index.browser.js",
"require": "./dist/index.node.cjs",
"default": "./dist/index.node.mjs",
"types": "./dist/index.d.ts"
}
},
"scripts": {
"test": "npm run build:test && node ./dist/test.js",
"check": "tsc --noEmit",
"build": "npm run build:browser && npm run build:node:cjs && npm run build:node:esm && npm run build:types",
"build:browser": "esbuild --minify --bundle --platform=browser --inject:src/webcrypto.browser.ts --format=esm --outfile=dist/index.browser.js src/index.ts",
"build:node:cjs": "esbuild --minify --bundle --platform=node --inject:src/webcrypto.nodejs.cjs.ts --format=cjs --outfile=dist/index.node.cjs src/index.ts",
"build:node:esm": "esbuild --minify --bundle --platform=node --inject:src/webcrypto.nodejs.esm.ts --format=esm --outfile=dist/index.node.mjs src/index.ts",
"build:test": "esbuild --bundle --platform=node --inject:src/webcrypto.nodejs.esm.ts --format=esm --outfile=dist/test.js src/test.ts",
"build:types": "tsc --declaration --emitDeclarationOnly"
},
"author": "John Chadwick",
"repository": {
"type": "git",
"url": "git+https://github.com/jchv/js-srp.git"
},
"license": "ISC",
"devDependencies": {
"@types/node": "^18.7.23",
"esbuild": "^0.16.3",
"typescript": "^4"
},
"type": "module"
}