Skip to content

Commit

Permalink
typecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-dixon committed May 23, 2024
1 parent 474871d commit bf1c759
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 23 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion packages/ci/test/cleanup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
2 changes: 1 addition & 1 deletion packages/migrate/test/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
})
)
})
Expand Down
11 changes: 4 additions & 7 deletions packages/toolbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@
"email": "[email protected]",
"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": {
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/toolbox/src/infra/dependencies.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions packages/util/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
32 changes: 20 additions & 12 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit bf1c759

Please sign in to comment.