-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
82 lines (77 loc) · 3.66 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
"name": "kv-storage",
"version": "0.0.9",
"description": "💾 Create data storage that uses a simple key-value method for Node, Browser, Deno, Bun, Cloudflare Workers",
"main": "dist/cjs/kv-storage.js",
"module": "dist/mjs/kv-storage.js",
"exports": {
".": {
"import": "./dist/mjs/kv-storage.js",
"require": "./dist/cjs/kv-storage.js"
}
},
"scripts": {
"start": "npm run dev-node",
"build-dev-cjs": "tsc -p tsconfig-devcjs.json",
"build-dev-esm": "tsc -p tsconfig-devesm.json",
"dev-node": "nodemon -e js,ts --watch src --watch test --exec \"npm run build-dev-cjs && node public/cjs/test/server-node.js\"",
"dev-ts-node": "nodemon -e js,ts --watch src --watch test --exec \"npm run build-dev-cjs && ts-node public/cjs/test/server-node.js\"",
"dev-bun": "nodemon -e js,ts --watch src --watch test --exec \"bun run test/server-node.ts\"",
"dev-deno": "nodemon -e js,ts --watch src --watch test --exec \"deno run --allow-read --allow-write test/test-deno/server-deno.ts\"",
"dev-cf": "nodemon -e js,ts,html --watch src --watch test --exec \"wrangler dev\"",
"dev-browser": "nodemon -e js,ts,html --watch src --watch test --exec \"npm run build-dev-esm && tsc -p tsconfig-umd.json && rollup -c public/config/rollup.config.dev.js && ts-node test/server-browser.ts\"",
"dev":"npm run test-all",
"removedir": "node -e \"var fs = require('fs'); try{process.argv.slice(1).map((fpath) => fs.rmdirSync(fpath, { recursive: true }))}catch(err){console.log(`Dist not found`)}; process.exit(0);\"",
"build-all":"tsc -p tsconfig-mjs.json && tsc -p tsconfig-cjs.json && tsc -p tsconfig-umd.json && rollup -c public/config/rollup.config.umd.js && echo {\"type\": \"commonjs\"}>dist\\cjs\\package.json && echo {\"type\": \"module\"}>dist\\mjs\\package.json",
"build":"npm run removedir dist && npm run build-all",
"backup": "node -e \"var fs = require('fs'); try{fs.copyFileSync('package.json', 'package-backup.json')}catch(err){console.log(`Copy failed`)}; process.exit(0);\"",
"restore": "node -e \"var fs = require('fs'); try{fs.copyFileSync('package-backup.json', 'package.json')}catch(err){console.log(`Copy failed`)}; process.exit(0);\"",
"prepublishOnly":"npm run backup && npm pkg delete devDependencies",
"postpublish":"npm run restore",
"gh-deploy-init": "git push origin && git subtree push --prefix docs origin gh-pages",
"gh-deploy": "git push origin :gh-pages && git subtree push --prefix docs origin gh-pages",
"typedoc": "npm run removedir docs && typedoc src/kv-storage.ts src/kv-storage-module.ts",
"gh-deploydoc": "npm run typedoc && git add docs -f && git commit -m \"docs\" && npm run gh-deploy && git reset --soft HEAD~ && git restore --staged .",
"doc":"npm run gh-deploydoc",
"test-all": "nodemon -e js,ts --watch src --watch test --exec \"npm run build-dev-cjs && node public/cjs/test/test-all.js\"",
"test": "npm run test-all"
},
"files": [
"dist/",
"LICENSE"
],
"repository": {
"type": "git",
"url": "git+https://github.com/nuzulul/kv-storage.git"
},
"keywords": [
"nodejs",
"nosql",
"data-storage",
"data-store",
"node-js",
"nosql-database",
"file-storage",
"kv-storage",
"cloudflare-workers",
"file-database",
"storage",
"db"
],
"author": "Nuzulul Zulkarnain",
"license": "MIT",
"bugs": {
"url": "https://github.com/nuzulul/kv-storage/issues"
},
"homepage": "https://github.com/nuzulul/kv-storage#readme",
"devDependencies": {
"@rollup/plugin-typescript": "^11.1.6",
"nodemon": "^3.0.3",
"rollup": "^4.9.6",
"ts-node": "^10.9.2",
"tslib": "^2.6.2",
"typedoc": "^0.25.7",
"typescript": "^5.3.3",
"wrangler": "^3.26.0"
}
}