-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
49 lines (49 loc) · 1.54 KB
/
package.json
File metadata and controls
49 lines (49 loc) · 1.54 KB
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
39
40
41
42
43
44
45
46
47
48
49
{
"name": "@seedao/sns-js",
"version": "0.3.1",
"homepage": "https://github.com/Taoist-Labs/sns-js",
"repository": "github:Taoist-Labs/sns-js",
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"keywords": [
"sns",
"js",
"sdk"
],
"main": "lib/cjs/index.js",
"module": "./lib/esm/index.js",
"types": "./lib/esm/index.d.ts",
"files": [
"lib",
"dist",
"package.json",
"README.md",
"LICENSE"
],
"scripts": {
"prettier": "prettier --write 'src/**/*.{js,ts}'",
"test": "env TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\" }' mocha -r ts-node/register --timeout 20000 'tests/**/*.ts'",
"package": "npm run build && npm run dist",
"build": "npm run build:esm && npm run build:cjs",
"build:esm": "tsc",
"build:cjs": "tsc --module commonjs --outDir lib/cjs",
"dist": "npm run dist:esm && npm run dist:iife",
"dist:esm": "esbuild src/index.ts --bundle --minify --target=esnext --format=esm --platform=browser --outfile=dist/esm/index.min.js",
"dist:iife": "esbuild src/index.ts --bundle --minify --target=esnext --format=iife --platform=browser --global-name=snsjs --footer:js=\"var sns = snsjs.default;\" --outfile=dist/iife/index.min.js"
},
"dependencies": {
"@seedao/sns-safe": "^0.1.4"
},
"devDependencies": {
"@types/chai": "^4.3.9",
"@types/mocha": "^10.0.3",
"chai": "^4.3.10",
"mocha": "^10.2.0",
"esbuild": "^0.19.4",
"prettier": "3.0.3",
"ts-node": "^10.9.1",
"typescript": "^5.2.2"
}
}