Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Housekeeping updates #4

Merged
merged 8 commits into from
Jan 2, 2024
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
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
timeout-minutes: 10
strategy:
matrix:
node-version: [20.x]
node-version: [18.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
Expand All @@ -26,7 +26,7 @@ jobs:
timeout-minutes: 10
strategy:
matrix:
node-version: [20.x]
node-version: [18.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
Expand All @@ -40,7 +40,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
node-version: [18.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
Expand Down
3 changes: 0 additions & 3 deletions .prettierignore

This file was deleted.

7 changes: 0 additions & 7 deletions .prettierrc.js

This file was deleted.

1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodejs 18.16.0
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ TBD

## Install

- Node.js 16+ is recommended.
- Node.js 18+ is recommended.

### NPM

Expand Down
1 change: 1 addition & 0 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module.exports = function (config) {
],

karmaTypescriptConfig: {
tsconfig: './tsconfig.spec.json',
reports: {} // Disables the code coverage report
},

Expand Down
17 changes: 11 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
"scripts": {
"build": "npm run clear && tsc -d && tsc -p tsconfig.esm.json",
"clear": "rimraf dist/*",
"lint": "ts-standard --fix",
"lint": "ts-standard --fix --project tsconfig.spec.json",
"prepare": "npm run build",
"prettier": "prettier src --write",
"rebuild": "npm run clear && npm run build",
"test": "npm run lint && npm run test-node",
"test-karma": "karma start karma.conf.js",
"test": "npm run lint && npm run test-node && npm run test-karma",
"test-karma": "karma start",
"test-node": "cross-env NODE_ENV=test TS_NODE_PROJECT=tsconfig.spec.json TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\" }' mocha -r ts-node/register --project tsconfig.spec.json 'test/*.ts'"
},
"files": [
Expand All @@ -20,7 +19,13 @@
],
"main": "dist/index.js",
"module": "dist/esm/index.js",
"browser": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"dependencies": {
},
"resolutions": {
"@typescript-eslint/typescript-estree": "^6.1.6"
},
"devDependencies": {
"@types/chai": "^4.3.5",
"@types/mocha": "^10.0.1",
Expand All @@ -41,7 +46,7 @@
"rimraf": "^5.0.1",
"ts-node": "^10.9.1",
"ts-standard": "^12.0.2",
"typescript": "^5.1.6"
"typescript": "5.2.2"
},
"publishConfig": {
"access": "public"
Expand All @@ -62,7 +67,7 @@
"dcc"
],
"engines": {
"node": ">=20.0"
"node": ">=18.0"
},
"author": {
"name": "Digital Credentials Consortium",
Expand Down
7 changes: 5 additions & 2 deletions tsconfig.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,24 @@
"lib": ["es2022", "dom"],
"module": "es6",
"moduleResolution": "node",
"outDir": "dist",
"outDir": "dist/esm",
"sourceMap": true,
"declaration": true,
"declarationMap": true,
"noImplicitAny": true,
"removeComments": false,
"preserveConstEnums": true,
"baseUrl": ".",
"allowSyntheticDefaultImports": true,
"skipLibCheck": true,
"skipDefaultLibCheck": true,
"resolveJsonModule": true
},
"ts-node": {
"files": true
},
"include": [
"src/**/*",
"test",
".eslintrc.js",
"karma.conf.js"
],
Expand Down
6 changes: 4 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,23 @@
"lib": ["es2022", "dom"],
"module": "commonjs",
"moduleResolution": "node",
"outDir": "dist/esm",
"outDir": "dist/",
"sourceMap": true,
"declaration": false,
"noImplicitAny": true,
"removeComments": false,
"preserveConstEnums": true,
"baseUrl": ".",
"allowSyntheticDefaultImports": true,
"skipLibCheck": true,
"skipDefaultLibCheck": true,
"resolveJsonModule": true
},
"ts-node": {
"files": true
},
"include": [
"src/**/*",
"test/*.spec.ts",
".eslintrc.js",
"karma.conf.js"
],
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
},
"include": [
"src/**/*",
"test/**/*.spec.ts",
".eslintrc.js",
"karma.conf.js"
],
"exclude": ["node_modules", "dist", "test"]
"exclude": ["node_modules", "dist"]
}
Loading