Skip to content

Commit cde28f9

Browse files
authored
update and cleanup (#271)
* Clean up change log * bump node version * - clean up some deps that are unused - add setup test script - chane node version - update build script to use tsupconfig * add utils and keys to build * update node version
1 parent 29a7931 commit cde28f9

File tree

6 files changed

+31
-254
lines changed

6 files changed

+31
-254
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- uses: actions/checkout@v4
2020
- uses: actions/setup-node@v4
2121
with:
22-
node-version: 19.0.0
22+
node-version: 20.10.0
2323
- name: Build
2424
run: yarn --frozen-lockfile --network-timeout 180000
2525
- name: Lint

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v19.0.0
1+
v20.10.0

CHANGELOG.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,26 @@
1-
[0.1.2] - Amun - 2023-12-12 (entropy-core compatibility: 0.0.9)
2-
Added
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
6+
7+
At the moment this project **does not** adhere to
8+
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
9+
10+
## [Unreleased]
11+
12+
## [0.1.2] Amun - 2023-12-12 (entropy-core compatibility: 0.0.9)
13+
14+
### Added
15+
316
- now supports separate keys for registering and program management (#252)
417
- add entropy class type (#259)
518

6-
Changed
19+
### Changed
720

821
- register now returns the registration record from storage (#264)
922

10-
Fixed
23+
### Fixed
1124
- entropy now validates proofs from tss nodes before returning signature. Will error if no valid proof is given (#230)
1225
- Eth adapter (#260)
1326
- getWallet no longer returns a nested signer (#263)

package.json

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"module": "dist/index.cjs",
1212
"browser": "dist/index.js",
1313
"scripts": {
14-
"test": "yarn removedb && jest --runInBand --detectOpenHandles",
14+
"test": "yarn test:setup && yarn removedb && jest --runInBand --detectOpenHandles",
15+
"test:setup": "docker version && [ \"$(cat .nvmrc)\" = \"$(node --version)\" ] && echo \"\\nCORRECT NODE VERSION\\n\" || { echo \"\\nINCOREECT NODE VERSION\\n\"; exit 1; }",
1516
"test:log": "yarn removedb && jest --runInBand --detectOpenHandles --silent=false --verbose",
1617
"lint:ts": "tsc",
1718
"lint:eslint": "eslint . --ext .ts",
@@ -22,7 +23,7 @@
2223
"peek": "tsc --build --clean",
2324
"burn": "rm -Rf node_modules && yarn cache clean --all && yarn install",
2425
"removedb": "rm -rf .entropy",
25-
"bundle": "tsup --dts --format cjs,esm src/index.ts",
26+
"bundle": "tsup",
2627
"bundle:watch": "tsup --watch",
2728
"bundle:node": "tsup --platform node ",
2829
"bundle:browser": "tsup --platform browser",
@@ -52,20 +53,14 @@
5253
"@babel/preset-typescript": "^7.21.0",
5354
"@changesets/cli": "^2.26.0",
5455
"@polkadot/typegen": "^10.11.1",
55-
"@swc/core": "^1.3.32",
56-
"@tsconfig/node18": "^1.0.1",
56+
"@tsconfig/node20": "^1.0.1",
5757
"@types/jest": "^29.4.0",
5858
"@types/mocha": "^10.0.0",
5959
"@typescript-eslint/eslint-plugin": "^5.43.0",
6060
"@typescript-eslint/parser": "^5.43.0",
61-
"chai": "^4.3.7",
62-
"child_process": "^1.0.2",
63-
"dotenv": "^16.0.3",
6461
"eslint": "^8.27.0",
6562
"jest": "^29.4.3",
6663
"prettier": "2.2.1",
67-
"rimraf": "^4.1.2",
68-
"should": "^13.2.3",
6964
"ts-jest": "^29.0.5",
7065
"ts-node": "^10.9.1",
7166
"ts-prune": "^0.10.3",

tsup.config.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
import { defineConfig } from 'tsup'
22

33
export default defineConfig((options) => {
4-
let path = `src/index.ts`
5-
if (process.env.BUILD) path = `src/${process.env.BUILD}/index.ts`
64
return {
7-
entry: [path],
5+
entry: [`src/index.ts`, 'src/keys/index.ts', 'src/utils/index.ts', 'src/utils/crypto.ts'],
86
replaceNodeEnv: true,
97
format: ['esm'],
10-
external: ['dotenv', 'node:fs', 'fs', '**/*.test.ts', 'src/utils/index.ts'],
118
dts: true,
12-
sourcemap: true,
9+
// todo: env var for this?
10+
sourcemap: false,
1311
clean: true,
1412
target: 'es2022',
1513
minify: options.minify,

0 commit comments

Comments
 (0)