Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/docs-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ jobs:
publish_dir: docs
publish_branch: gh-pages
destination_dir: docs
force_orphan: true
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ jobs:
with:
docs: true
script: ci
force_orphan: true
8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"homepage": "https://github.com/hildjj/cbor2",
"scripts": {
"clean": "rimraf lib coverage docs src/version.ts",
"clean": "rimraf lib coverage docs",
"docs": "typedoc && cd web && npm run build",
"lint": "eslint .",
"start": "cd web && npm start",
Expand All @@ -35,10 +35,9 @@
"posttest": "npm run build",
"test:noBuild": "c8 node --enable-source-maps --test test/*.test.js",
"test:web": "cd web && npm test",
"build": "npm run ver && tsc",
"build": "tsc",
"build:sourcemap": "npm run build -- --inlineSourceMap",
"ci": "npm run clean && npm run build:sourcemap && npm run lint && npm run test:noBuild",
"ver": "package-extract -st -o src/version.ts"
"ci": "npm run clean && npm run test && npm run lint && npm run docs"
},
"keywords": [
"coap",
Expand Down Expand Up @@ -91,7 +90,6 @@
"cbor-edn": "^0.2.2",
"eslint-plugin-jsdoc": "^64.5.4",
"eslint": "^10.11.0",
"package-extract": "^4.0.1",
"rimraf": "^6.1.3",
"superc8": "^12.7.0",
"typedoc": "^0.28.20",
Expand Down
13 changes: 0 additions & 13 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
*/

import './types.js';
export {version} from './version.js';
import {CBORcontainer} from './container.js';
import pkg from '../package.json' with {type: 'json'};
export const {version} = pkg;
export type {DecodeStream, ValueGenerator} from './decodeStream.js';
export type {
BaseDecoder,
Expand Down
Loading