diff --git a/.github/workflows/pull_request.yaml b/.github/workflows/pull_request.yaml index 0bf4b2b..d8553f6 100644 --- a/.github/workflows/pull_request.yaml +++ b/.github/workflows/pull_request.yaml @@ -38,9 +38,12 @@ jobs: - name: Install ๐Ÿ“ฆ run: yarn --immutable + - name: Typecheck ๐Ÿงช + run: yarn typecheck + - name: Build ๐Ÿ— run: yarn build - name: Test ๐Ÿงช timeout-minutes: 10 - run: yarn turbo test --continue --concurrency=1 + run: yarn test diff --git a/packages/ci/test/cleanup.ts b/packages/ci/test/cleanup.ts index d43f590..91c1f2f 100644 --- a/packages/ci/test/cleanup.ts +++ b/packages/ci/test/cleanup.ts @@ -152,7 +152,7 @@ test('workflow cleanup workflow', async () => { const dbValue = pipe(dbFx.deref(), Effect.runSync) // expect(typeof dbValue.summary?.numberOfIterations === 'number').toEqual(true) - expect(R.omit(['summary'], dbValue)).toEqual({ + expect(dbValue).toEqual({ config: { iterMs: 60000, versionInfo: { diff --git a/packages/migrate/test/index.ts b/packages/migrate/test/index.ts index 9685374..9fbe28a 100644 --- a/packages/migrate/test/index.ts +++ b/packages/migrate/test/index.ts @@ -1013,7 +1013,7 @@ test.concurrent('getDelayFunctionName', () => { fc.property(getArbitrary(XStateTimerId), (id) => { expect(id.startsWith('xstate.after(')).toEqual(true) const fn = id.slice('xstate.after('.length, id.lastIndexOf('#') - 1) - console.log({ id, fn }) + // console.log({ id, fn }) }) ) }) diff --git a/packages/toolbox/package.json b/packages/toolbox/package.json index cecbe09..9839f3b 100644 --- a/packages/toolbox/package.json +++ b/packages/toolbox/package.json @@ -14,11 +14,9 @@ "email": "opensource@embeddedinsurance.com", "url": "https://embeddedinsurance.com" }, - "main": "./dist/index.js", + "main": "index.js", "exports": { - "./*": "./src/*.ts", - "./infra/*": "./src/infra/*.ts", - ".": "./src/index.ts" + "./*": "./src/*.ts" }, "license": "MIT", "dependencies": { @@ -40,11 +38,10 @@ "@types/ramda": "^0.29.2", "fast-check": "^3.8.1", "prettier": "2.8.8", - "ts-node": "^10.9.1", - "typescript": "5.2.2" + "ts-node": "^10.9.1" }, "engines": { - "node": ">=18" + "node": ">=20" }, "publishConfig": { "access": "restricted" diff --git a/packages/toolbox/src/infra/dependencies.ts b/packages/toolbox/src/infra/dependencies.ts index fc72b7f..0dd981c 100644 --- a/packages/toolbox/src/infra/dependencies.ts +++ b/packages/toolbox/src/infra/dependencies.ts @@ -1,7 +1,7 @@ import { Effect, pipe } from 'effect' import { getGitRepoRoot } from './git' import path from 'path' -import { listWorkspaceDependents } from '@diachronic/toolbox/workspace' +import { listWorkspaceDependents } from '../workspace' /** * Returns absolute filepaths to the local monorepo modules that diff --git a/packages/util/package.json b/packages/util/package.json index 356446f..21fae49 100644 --- a/packages/util/package.json +++ b/packages/util/package.json @@ -30,10 +30,12 @@ "dependencies": { "@effect/schema": "0.61.5", "effect": "2.2.3", + "js-yaml": "4.1.0", "uuid": "9.0.1" }, "devDependencies": { "@types/jest": "^29.5.5", + "@types/js-yaml": "4.0.9", "@types/uuid": "^9.0.8", "jest": "^29.7.0", "ts-jest": "^29.1.1" diff --git a/yarn.lock b/yarn.lock index 6512068..a81ce2d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -570,7 +570,6 @@ __metadata: ms: ^2.1.3 prettier: 2.8.8 ts-node: ^10.9.1 - typescript: 5.2.2 languageName: unknown linkType: soft @@ -580,9 +579,11 @@ __metadata: dependencies: "@effect/schema": 0.61.5 "@types/jest": ^29.5.5 + "@types/js-yaml": 4.0.9 "@types/uuid": ^9.0.8 effect: 2.2.3 jest: ^29.7.0 + js-yaml: 4.1.0 ts-jest: ^29.1.1 uuid: 9.0.1 languageName: unknown @@ -1896,6 +1897,13 @@ __metadata: languageName: node linkType: hard +"@types/js-yaml@npm:4.0.9": + version: 4.0.9 + resolution: "@types/js-yaml@npm:4.0.9" + checksum: e5e5e49b5789a29fdb1f7d204f82de11cb9e8f6cb24ab064c616da5d6e1b3ccfbf95aa5d1498a9fbd3b9e745564e69b4a20b6c530b5a8bbb2d4eb830cda9bc69 + languageName: node + linkType: hard + "@types/json-schema@npm:*, @types/json-schema@npm:^7.0.8": version: 7.0.13 resolution: "@types/json-schema@npm:7.0.13" @@ -4697,26 +4705,26 @@ __metadata: languageName: node linkType: hard -"js-yaml@npm:^3.13.1": - version: 3.14.1 - resolution: "js-yaml@npm:3.14.1" +"js-yaml@npm:4.1.0, js-yaml@npm:^4.1.0": + version: 4.1.0 + resolution: "js-yaml@npm:4.1.0" dependencies: - argparse: ^1.0.7 - esprima: ^4.0.0 + argparse: ^2.0.1 bin: js-yaml: bin/js-yaml.js - checksum: bef146085f472d44dee30ec34e5cf36bf89164f5d585435a3d3da89e52622dff0b188a580e4ad091c3341889e14cb88cac6e4deb16dc5b1e9623bb0601fc255c + checksum: c7830dfd456c3ef2c6e355cc5a92e6700ceafa1d14bba54497b34a99f0376cecbb3e9ac14d3e5849b426d5a5140709a66237a8c991c675431271c4ce5504151a languageName: node linkType: hard -"js-yaml@npm:^4.1.0": - version: 4.1.0 - resolution: "js-yaml@npm:4.1.0" +"js-yaml@npm:^3.13.1": + version: 3.14.1 + resolution: "js-yaml@npm:3.14.1" dependencies: - argparse: ^2.0.1 + argparse: ^1.0.7 + esprima: ^4.0.0 bin: js-yaml: bin/js-yaml.js - checksum: c7830dfd456c3ef2c6e355cc5a92e6700ceafa1d14bba54497b34a99f0376cecbb3e9ac14d3e5849b426d5a5140709a66237a8c991c675431271c4ce5504151a + checksum: bef146085f472d44dee30ec34e5cf36bf89164f5d585435a3d3da89e52622dff0b188a580e4ad091c3341889e14cb88cac6e4deb16dc5b1e9623bb0601fc255c languageName: node linkType: hard