Skip to content

Commit

Permalink
Export version from index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
hildjj committed Aug 30, 2024
1 parent 78554ad commit f4f0ce8
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 20 deletions.
21 changes: 7 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
"type": "module",
"repository": {
"type": "git",
"url": "http://github.com/hildjj/cbor2.git"
"url": "git+ssh://git@github.com/hildjj/cbor2.git"
},
"homepage": "https://github.com/hildjj/cbor2",
"scripts": {
"clean": "rimraf lib coverage docs",
"clean": "rimraf lib coverage docs src/version.ts",
"docs": "typedoc && cd web && npm run build",
"lint": "eslint .",
"start": "cd web && npm start",
Expand All @@ -31,10 +31,12 @@
"posttest": "tsup --silent",
"test:noBuild": "c8 node --enable-source-maps --test test/*.test.js",
"test:web": "cd web && npm test",
"build": "tsup",
"build": "npm run ver && tsup",
"build:sourcemap": "npm run build -- --sourcemap inline",
"watch": "tsup --sourcemap inline --watch src/ --watch test/ --onSuccess 'npm run test:noBuild'",
"ci": "npm run clean && npm run build:sourcemap && npm run lint && npm run test:noBuild"
"ci": "npm run clean && npm run build:sourcemap && npm run lint && npm run test:noBuild",
"ver": "package-extract -st -o src/version.ts",
"version": "npm run clean && npm run ci && git add src/version.ts"
},
"keywords": [
"coap",
Expand All @@ -54,21 +56,12 @@
"eslint": "9.9.1",
"eslint-plugin-jsdoc": "50.2.2",
"eslint-plugin-markdown": "5.1.0",
"package-extract": "2.0.2",
"rimraf": "^6.0.1",
"tsup": "8.2.4",
"typedoc": "0.26.6",
"typescript-eslint": "8.3.0"
},
"overrides": {
"@typescript-eslint/utils": "8.0.0-alpha.44",
"@typescript-eslint/parser": "8.0.0-alpha.44"
},
"pnpm": {
"overrides": {
"@typescript-eslint/utils": "8.0.0-alpha.44",
"@typescript-eslint/parser": "8.0.0-alpha.44"
}
},
"packageManager": "pnpm@9.9.0",
"engines": {
"node": ">=18"
Expand Down
18 changes: 18 additions & 0 deletions pnpm-lock.yaml

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

1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
*/

import './types.js';
export {version} from './version.js';
import {CBORcontainer} from './container.js';
export type {DecodeStream, ValueGenerator} from './decodeStream.js';
export type {
Expand Down
4 changes: 4 additions & 0 deletions src/version.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Generated by package-extract v2.0.2
// Do not modify by hand.

export const version = '1.5.3';
2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"license": "MIT",
"devDependencies": {
"@playwright/test": "1.46.1",
"cbor-edn": "0.0.6",
"cbor-edn": "0.1.0",
"cbor2": "link:..",
"css-loader": "7.1.2",
"five-server": "0.3.3",
Expand Down
10 changes: 5 additions & 5 deletions web/pnpm-lock.yaml

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

0 comments on commit f4f0ce8

Please sign in to comment.