Add package.json

This commit is contained in:
Jacob Karlsson 2024-05-16 15:47:14 +02:00
parent 65b2d8287f
commit 49918890bf
3 changed files with 94 additions and 0 deletions

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
pnpm-lock.yaml
package-lock.json
node_modules/

65
package.json Normal file
View File

@ -0,0 +1,65 @@
{
"name": "pzp-sdk",
"version": "0.0.1",
"description": "JS module for helping you get started with PZP development",
"author": "Andre Staltz <contact@staltz.com>",
"license": "MIT",
"homepage": "https://codeberg.org/pzp/pzp-sdk",
"repository": {
"type": "git",
"url": "git@codeberg.org:pzp/pzp-sdk.git"
},
"type": "commonjs",
"main": "lib/index.js",
"files": [
"lib/**/*"
],
"exports": {
".": {
"require": "./lib/index.js"
}
},
"engines": {
"node": ">=18"
},
"dependencies": {
"pzp-caps": "^1.0.0",
"pzp-conductor": "^1.0.0",
"pzp-db": "^1.0.1",
"pzp-dict": "^1.0.0",
"pzp-gc": "^1.0.0",
"pzp-goals": "^1.0.0",
"pzp-hub-client": "^1.0.0",
"pzp-invite": "^1.0.0",
"pzp-keypair": "^1.0.0",
"pzp-net": "^1.0.1",
"pzp-promise": "^1.0.0",
"pzp-set": "^1.0.0",
"pzp-sync": "^1.0.0",
"secret-handshake-ext": "0.0.11",
"secret-stack": "~8.1.0"
},
"devDependencies": {
"@types/node": "^20.2.5",
"c8": "^7.11.0",
"husky": "^4.3.0",
"prettier": "^2.6.2",
"pretty-quick": "^3.1.3",
"rimraf": "^5.0.7",
"typescript": "^5.4.5"
},
"scripts": {
"clean-check": "tsc --build --clean",
"prepublishOnly": "npm run clean-check && tsc --build",
"postpublish": "npm run clean-check",
"test": "npm run clean-check && node --test",
"format-code": "prettier --write \"*.js\" \"(test|lib)/*.js\"",
"format-code-staged": "pretty-quick --staged --pattern \"*.js\" --pattern \"(test|lib)/*.js\"",
"coverage": "c8 --reporter=lcov npm run test"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged"
}
}
}

25
tsconfig.json Normal file
View File

@ -0,0 +1,25 @@
{
"include": [
"lib/**/*.js"
],
"exclude": [
"coverage/",
"node_modules/",
"test/"
],
"compilerOptions": {
"checkJs": true,
"declaration": true,
"emitDeclarationOnly": true,
"exactOptionalPropertyTypes": true,
"forceConsistentCasingInFileNames": true,
"lib": [
"es2022",
"dom"
],
"module": "node16",
"skipLibCheck": true,
"strict": true,
"target": "es2021"
}
}