176 lines
4.7 KiB
JSON
176 lines
4.7 KiB
JSON
|
|
{
|
||
|
|
"name": "cborg",
|
||
|
|
"version": "2.0.5",
|
||
|
|
"description": "Fast CBOR with a focus on strictness",
|
||
|
|
"main": "./cjs/cborg.js",
|
||
|
|
"bin": {
|
||
|
|
"cborg": "cli.js"
|
||
|
|
},
|
||
|
|
"scripts": {
|
||
|
|
"lint": "standard *.js lib/*.js test/*.js",
|
||
|
|
"build": "npm run build:js && npm run build:types",
|
||
|
|
"build:js": "ipjs build --tests --main",
|
||
|
|
"build:copy": "mkdir -p dist/test && cp test/*.js dist/test/ && cp -a tsconfig.json *.js *.ts lib dist/",
|
||
|
|
"build:types": "npm run build:copy && cd dist && tsc --build",
|
||
|
|
"test:cjs": "npm run build && mocha dist/cjs/node-test/test-*.js dist/cjs/node-test/node-test-*.js",
|
||
|
|
"test:esm": "npm run build && mocha dist/esm/node-test/test-*.js dist/esm/node-test/node-test-*.js",
|
||
|
|
"test:node": "c8 --check-coverage --branches 100 --functions 100 --lines 100 mocha test/test-*.js test/node-test-*.js",
|
||
|
|
"test:browser:cjs": "polendina --page --worker --serviceworker --cleanup dist/cjs/browser-test/test-*.js",
|
||
|
|
"test:browser:esm": "polendina --page --worker --serviceworker --cleanup dist/esm/browser-test/test-*.js",
|
||
|
|
"test:browser": "npm run test:browser:cjs && npm run test:browser:cjs",
|
||
|
|
"test": "npm run lint && npm run test:node && npm run test:esm && npm run test:browser:esm",
|
||
|
|
"test:ci": "npm run lint && npm run test:node && npm run test:cjs && npm run test:esm && npm run test:browser",
|
||
|
|
"coverage": "c8 --reporter=html mocha test/test-*.js && npx st -d coverage -p 8080"
|
||
|
|
},
|
||
|
|
"repository": {
|
||
|
|
"type": "git",
|
||
|
|
"url": "https://github.com/rvagg/cborg.git"
|
||
|
|
},
|
||
|
|
"keywords": [
|
||
|
|
"cbor"
|
||
|
|
],
|
||
|
|
"author": "Rod <rod@vagg.org> (http://r.va.gg/)",
|
||
|
|
"license": "Apache-2.0",
|
||
|
|
"devDependencies": {
|
||
|
|
"c8": "^8.0.0",
|
||
|
|
"chai": "^4.3.4",
|
||
|
|
"ipjs": "^5.2.0",
|
||
|
|
"ipld-garbage": "^5.0.0",
|
||
|
|
"mocha": "^10.0.0",
|
||
|
|
"polendina": "~3.2.1",
|
||
|
|
"standard": "^17.0.0",
|
||
|
|
"typescript": "~5.2.2"
|
||
|
|
},
|
||
|
|
"exports": {
|
||
|
|
".": {
|
||
|
|
"browser": "./esm/cborg.js",
|
||
|
|
"require": "./cjs/cborg.js",
|
||
|
|
"import": "./esm/cborg.js"
|
||
|
|
},
|
||
|
|
"./length": {
|
||
|
|
"browser": "./esm/lib/length.js",
|
||
|
|
"require": "./cjs/lib/length.js",
|
||
|
|
"import": "./esm/lib/length.js"
|
||
|
|
},
|
||
|
|
"./taglib": {
|
||
|
|
"browser": "./esm/taglib.js",
|
||
|
|
"require": "./cjs/taglib.js",
|
||
|
|
"import": "./esm/taglib.js"
|
||
|
|
},
|
||
|
|
"./json": {
|
||
|
|
"browser": "./esm/lib/json/json.js",
|
||
|
|
"require": "./cjs/lib/json/json.js",
|
||
|
|
"import": "./esm/lib/json/json.js"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"types": "cborg.d.ts",
|
||
|
|
"typesVersions": {
|
||
|
|
"*": {
|
||
|
|
"json": [
|
||
|
|
"types/lib/json/json.d.ts"
|
||
|
|
],
|
||
|
|
"length": [
|
||
|
|
"types/lib/length.d.ts"
|
||
|
|
],
|
||
|
|
"*": [
|
||
|
|
"types/*"
|
||
|
|
],
|
||
|
|
"types/*": [
|
||
|
|
"types/*"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"release": {
|
||
|
|
"branches": [
|
||
|
|
"master"
|
||
|
|
],
|
||
|
|
"plugins": [
|
||
|
|
[
|
||
|
|
"@semantic-release/commit-analyzer",
|
||
|
|
{
|
||
|
|
"preset": "conventionalcommits",
|
||
|
|
"releaseRules": [
|
||
|
|
{
|
||
|
|
"breaking": true,
|
||
|
|
"release": "major"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"revert": true,
|
||
|
|
"release": "patch"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "feat",
|
||
|
|
"release": "minor"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "fix",
|
||
|
|
"release": "patch"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "chore",
|
||
|
|
"release": "patch"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "docs",
|
||
|
|
"release": "patch"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "test",
|
||
|
|
"release": "patch"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"scope": "no-release",
|
||
|
|
"release": false
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
],
|
||
|
|
[
|
||
|
|
"@semantic-release/release-notes-generator",
|
||
|
|
{
|
||
|
|
"preset": "conventionalcommits",
|
||
|
|
"presetConfig": {
|
||
|
|
"types": [
|
||
|
|
{
|
||
|
|
"type": "feat",
|
||
|
|
"section": "Features"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "fix",
|
||
|
|
"section": "Bug Fixes"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "chore",
|
||
|
|
"section": "Trivial Changes"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "docs",
|
||
|
|
"section": "Trivial Changes"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "test",
|
||
|
|
"section": "Tests"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"@semantic-release/changelog",
|
||
|
|
[
|
||
|
|
"@semantic-release/npm",
|
||
|
|
{
|
||
|
|
"pkgRoot": "dist"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"@semantic-release/github",
|
||
|
|
"@semantic-release/git"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"browser": {
|
||
|
|
".": "./cjs/cborg.js",
|
||
|
|
"./length": "./cjs/lib/length.js",
|
||
|
|
"./taglib": "./cjs/taglib.js",
|
||
|
|
"./json": "./cjs/lib/json/json.js"
|
||
|
|
}
|
||
|
|
}
|