diff --git a/package.json b/package.json index ba2c43c..cbdf239 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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", @@ -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" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 08ca967..2135061 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -27,6 +27,9 @@ importers: eslint-plugin-markdown: specifier: 5.1.0 version: 5.1.0(eslint@9.9.1) + package-extract: + specifier: 2.0.2 + version: 2.0.2 rimraf: specifier: ^6.0.1 version: 6.0.1 @@ -607,6 +610,10 @@ packages: color-name@1.1.4: resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} + commander@12.1.0: + resolution: {integrity: sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==} + engines: {node: '>=18'} + commander@4.1.1: resolution: {integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==} engines: {node: '>= 6'} @@ -1078,6 +1085,11 @@ packages: resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==} engines: {node: '>=10'} + package-extract@2.0.2: + resolution: {integrity: sha512-aZosgc0hC+uPkAKlnTIaXZ5cR0zniFVGf6vVNZOpgEdpmgd/Caxlk6BJt23qe7uRGQhjro2yhO5XY7kLgv5Syg==} + engines: {node: '>=18'} + hasBin: true + package-json-from-dist@1.0.0: resolution: {integrity: sha512-dATvCeZN/8wQsGywez1mzHtTlP22H8OEfPrVMLNr4/eGa+ijtLn/6M5f0dY8UKNrC2O9UCU6SSoG3qRKnt7STw==} @@ -1931,6 +1943,8 @@ snapshots: color-name@1.1.4: {} + commander@12.1.0: {} + commander@4.1.1: {} comment-parser@1.4.1: {} @@ -2442,6 +2456,10 @@ snapshots: dependencies: p-limit: 3.1.0 + package-extract@2.0.2: + dependencies: + commander: 12.1.0 + package-json-from-dist@1.0.0: {} parent-module@1.0.1: diff --git a/src/index.ts b/src/index.ts index 7bcfd9f..6246508 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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 { diff --git a/src/version.ts b/src/version.ts new file mode 100644 index 0000000..38d4510 --- /dev/null +++ b/src/version.ts @@ -0,0 +1,4 @@ +// Generated by package-extract v2.0.2 +// Do not modify by hand. + +export const version = '1.5.3'; diff --git a/web/package.json b/web/package.json index a331bd8..dea6eb1 100644 --- a/web/package.json +++ b/web/package.json @@ -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", diff --git a/web/pnpm-lock.yaml b/web/pnpm-lock.yaml index 8aaee9b..01c70bc 100644 --- a/web/pnpm-lock.yaml +++ b/web/pnpm-lock.yaml @@ -15,8 +15,8 @@ importers: specifier: 1.46.1 version: 1.46.1 cbor-edn: - specifier: 0.0.6 - version: 0.0.6 + specifier: 0.1.0 + version: 0.1.0 cbor2: specifier: link:.. version: link:.. @@ -297,8 +297,8 @@ packages: caniuse-lite@1.0.30001653: resolution: {integrity: sha512-XGWQVB8wFQ2+9NZwZ10GxTYC5hk0Fa+q8cSkr0tgvMhYhMHP/QC+WTgrePMDBWiWc/pV+1ik82Al20XOK25Gcw==} - cbor-edn@0.0.6: - resolution: {integrity: sha512-YwREhwANiTeT55BuK4cx4hrqCzkVImQqN+zrSheCX1GVmbvC4Zq5On8KmQuzCpYUzowYmy2KuWv1lp8t/cVqcQ==} + cbor-edn@0.1.0: + resolution: {integrity: sha512-Hm9t2yaKuYd+OvRhvbLfAkazEHOwI23eOeNe/gK9hHFEVWD7bjvt0krRQXvEjiZVPGgljCM2zf9jgtWloJvM+Q==} engines: {node: '>=18'} hasBin: true @@ -1594,7 +1594,7 @@ snapshots: caniuse-lite@1.0.30001653: {} - cbor-edn@0.0.6: + cbor-edn@0.1.0: dependencies: '@scure/base': 1.1.7 cbor2: link:..