Skip to content

Commit

Permalink
feat: Apply lerna to move src to core (#67)
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas <[email protected]>
  • Loading branch information
lukasjhan authored Feb 19, 2024
1 parent 51512d8 commit c4d555c
Show file tree
Hide file tree
Showing 48 changed files with 3,602 additions and 108 deletions.
5 changes: 0 additions & 5 deletions jest.config.js

This file was deleted.

7 changes: 7 additions & 0 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"version": "2.0.1",
"npmClient": "pnpm",
"exact": true,
"message": "chore(release): %s"
}
45 changes: 7 additions & 38 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,12 @@
"name": "@hopae/sd-jwt",
"version": "2.0.1",
"description": "sd-jwt draft 7 implementation in typescript",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.js"
}
},
"scripts": {
"build": "tsup",
"test": "vitest ./src/test/*.spec.ts",
"test:browser": "vitest ./src/test/*.spec.ts --environment jsdom",
"test:e2e": "vitest ./test/*e2e.spec.ts --environment node",
"test:cov": "vitest run --coverage"
"build": "pnpm -r build",
"test": "pnpm -r test",
"test:browser": "pnpm -r test:browser",
"test:e2e": "pnpm -r test:e2e",
"test:cov": "pnpm -r test:cov"
},
"keywords": [
"verifiable-credentials",
Expand All @@ -30,34 +21,12 @@
"url": "https://github.com/openwallet-foundation-labs/sd-jwt-js"
},
"author": "Lukas.J.Han <[email protected]>",
"homepage": "https://github.com/openwallet-foundation-labs/sd-jwt-js/wiki",
"homepage": "https://sdjwt.js.org",
"bugs": {
"url": "https://github.com/openwallet-foundation-labs/sd-jwt-js/issues"
},
"license": "Apache-2.0",
"devDependencies": {
"@types/node": "^20.10.2",
"@vitest/coverage-v8": "^1.2.2",
"jsdom": "^24.0.0",
"ts-node": "^10.9.1",
"tsup": "^8.0.2",
"typescript": "^5.3.2",
"vite": "^5.1.1",
"vitest": "^1.2.2",
"@noble/hashes": "1.0.0",
"js-base64": "^3.7.6"
},
"tsup": {
"entry": [
"./src/index.ts"
],
"sourceMap": true,
"splitting": false,
"clean": true,
"dts": true,
"format": [
"cjs",
"esm"
]
"lerna": "^8.1.2"
}
}
64 changes: 64 additions & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"name": "@hopae/sd-jwt",
"version": "2.0.1",
"description": "sd-jwt draft 7 implementation in typescript",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.js"
}
},
"scripts": {
"build": "rm -rf **/dist && tsup",
"test": "vitest ./src/test/*.spec.ts",
"test:browser": "vitest ./src/test/*.spec.ts --environment jsdom",
"test:e2e": "vitest ./test/*e2e.spec.ts --environment node",
"test:cov": "vitest run --coverage"
},
"keywords": [
"verifiable-credentials",
"digital-wallet",
"sd-jwt",
"sdjwt",
"sd-jwt-vc"
],
"repository": {
"type": "git",
"url": "https://github.com/openwallet-foundation-labs/sd-jwt-js"
},
"author": "Lukas.J.Han <[email protected]>",
"homepage": "https://github.com/openwallet-foundation-labs/sd-jwt-js/wiki",
"bugs": {
"url": "https://github.com/openwallet-foundation-labs/sd-jwt-js/issues"
},
"license": "Apache-2.0",
"devDependencies": {
"@noble/hashes": "1.0.0",
"@types/node": "^20.10.2",
"@vitest/coverage-v8": "^1.2.2",
"js-base64": "^3.7.6",
"jsdom": "^24.0.0",
"lerna": "^8.1.2",
"ts-node": "^10.9.1",
"tsup": "^8.0.2",
"typescript": "^5.3.2",
"vite": "^5.1.1",
"vitest": "^1.2.2"
},
"tsup": {
"entry": [
"./src/index.ts"
],
"sourceMap": true,
"splitting": false,
"clean": true,
"dts": true,
"format": [
"cjs",
"esm"
]
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions packages/core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "src",
"outDir": "dist"
}
}
14 changes: 14 additions & 0 deletions packages/core/vitest.config.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// vite.config.ts
import { defineConfig } from 'vite';

export default defineConfig({
test: {
// Common test configuration
globals: true,
coverage: {
reporter: ['text', 'json', 'html'],
},
environment: 'node', // Default environment
// Override per environment as needed
},
});
Loading

0 comments on commit c4d555c

Please sign in to comment.