Skip to content

Commit

Permalink
fix: typecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
Nelfimov committed Apr 3, 2024
1 parent 3548541 commit 923259a
Show file tree
Hide file tree
Showing 13 changed files with 45 additions and 71 deletions.
49 changes: 21 additions & 28 deletions .pnp.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions libcnb/libcnb/src/platform.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { readFile } from 'fs/promises'
import { readdir } from 'fs/promises'
import { readFile } from 'node:fs/promises'
import { readdir } from 'node:fs/promises'
import { join } from 'path'

export class Platform {
Expand Down
5 changes: 2 additions & 3 deletions libcnb/libcnb/src/run.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import path from 'path'

import { basename } from 'path'
import { Builder } from './build'
import { Detector } from './detect'
import { ExitHandler } from './exit.handler'
import { build } from './build'
import { detect } from './detect'

export const run = async (detector: Detector, builder?: Builder) => {
const phase = path.basename(process.argv[1])
const phase = basename(process.argv[1])

if (!['detect', 'build'].includes(phase)) {
ExitHandler.error(new Error(`Unsupported phase ${phase}`))
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@types/jest": "29",
"@types/node": "20",
"eslint": "8.57.0",
"typescript": "5.4.3"
"typescript": "5.2.2"
},
"packageManager": "[email protected]",
"schematic": {
Expand Down
16 changes: 9 additions & 7 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"forceConsistentCasingInFileNames": true,
"importHelpers": false,
"isolatedModules": false,
"moduleResolution": "nodenext",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"noFallthroughCasesInSwitch": true,
"noImplicitAny": false,
"noImplicitReturns": false,
Expand All @@ -19,12 +20,13 @@
"removeComments": true,
"resolveJsonModule": true,
"strict": true,
"strictPropertyInitialization": false,
"sourceMap": false,
"module": "esnext",
"target": "es2022",
"jsx": "react",
"outDir": "./dist"
"target": "ES2022",
"types": ["node"],
"jsx": "react"
},
"include": ["buildpacks/**/*", "libcnb/**/*"]
"include": [
"buildpacks/**/*",
"libcnb/**/*"
]
}
40 changes: 10 additions & 30 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2855,7 +2855,7 @@ __metadata:
"@types/jest": "npm:29"
"@types/node": "npm:20"
eslint: "npm:8.57.0"
typescript: "npm:5.4.3"
typescript: "npm:5.2.2"
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -5795,26 +5795,26 @@ __metadata:
linkType: hard

"postcss-modules-local-by-default@npm:^4.0.3":
version: 4.0.4
resolution: "postcss-modules-local-by-default@npm:4.0.4"
version: 4.0.5
resolution: "postcss-modules-local-by-default@npm:4.0.5"
dependencies:
icss-utils: "npm:^5.0.0"
postcss-selector-parser: "npm:^6.0.2"
postcss-value-parser: "npm:^4.1.0"
peerDependencies:
postcss: ^8.1.0
checksum: 10/45790af417b2ed6ed26e9922724cf3502569995833a2489abcfc2bb44166096762825cc02f6132cc6a2fb235165e76b859f9d90e8a057bc188a1b2c17f2d7af0
checksum: 10/b08b01aa7f3d1a80bb1a5508ba3a208578fdd2fb6e54e5613fac244a4e014aa7ca639a614859fec93b399e5a6f86938f7690ca60f7e57c4e35b75621d3c07734
languageName: node
linkType: hard

"postcss-modules-scope@npm:^3.0.0":
version: 3.1.1
resolution: "postcss-modules-scope@npm:3.1.1"
version: 3.1.2
resolution: "postcss-modules-scope@npm:3.1.2"
dependencies:
postcss-selector-parser: "npm:^6.0.4"
peerDependencies:
postcss: ^8.1.0
checksum: 10/ca035969eba62cf126864b10d7722e49c0d4f050cbd4618b6e9714d81b879cf4c53a5682501e00f9622e8f4ea6d7d7d53af295ae935fa833e0cc0bda416a287b
checksum: 10/e4b09460ebd041f7d8c9704b426186b918fbc6a35bf287f60af0e448d931272b7d431a6b78df19f27ea05b26e44b3e67aa2fff2586b08598988011e05fb690e3
languageName: node
linkType: hard

Expand Down Expand Up @@ -6682,16 +6682,16 @@ __metadata:
linkType: hard

"terser@npm:^5.26.0":
version: 5.30.2
resolution: "terser@npm:5.30.2"
version: 5.30.3
resolution: "terser@npm:5.30.3"
dependencies:
"@jridgewell/source-map": "npm:^0.3.3"
acorn: "npm:^8.8.2"
commander: "npm:^2.20.0"
source-map-support: "npm:~0.5.20"
bin:
terser: bin/terser
checksum: 10/df671714eb9160cc61d340ddbe6e54f66060bc893c2d420090e10df7f1a2e459725a56dc2e547e992c021ad4523b81eabc8f5a551c53505def80b7320a72506a
checksum: 10/f4ee378065a327c85472f351ac232fa47ec84d4f15df7ec58c044b41e3c063cf11aaedd90dcfe9c7f2a6ef01d4aab23deb61622301170dc77d0a8b6a6a83cf5e
languageName: node
linkType: hard

Expand Down Expand Up @@ -6898,16 +6898,6 @@ __metadata:
languageName: node
linkType: hard

"typescript@npm:5.4.3":
version: 5.4.3
resolution: "typescript@npm:5.4.3"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 10/de4c69f49a7ad4b1ea66a6dcc8b055ac34eb56af059a069d8988dd811c5e649be07e042e5bf573e8d0ac3ec2f30e6c999aa651cd09f6e9cbc6113749e8b6be20
languageName: node
linkType: hard

"typescript@patch:typescript@npm%3A5.2.2#optional!builtin<compat/typescript>":
version: 5.2.2
resolution: "typescript@patch:typescript@npm%3A5.2.2#optional!builtin<compat/typescript>::version=5.2.2&hash=f3b441"
Expand All @@ -6918,16 +6908,6 @@ __metadata:
languageName: node
linkType: hard

"typescript@patch:typescript@npm%3A5.4.3#optional!builtin<compat/typescript>":
version: 5.4.3
resolution: "typescript@patch:typescript@npm%3A5.4.3#optional!builtin<compat/typescript>::version=5.4.3&hash=d69c25"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 10/3abea475798fdf7ee46e75dafc50c85f30fd1e7061559ec2af61646f23d16c91742703f04f0ac55be52f58ca05c02f77404b7b94bbad16278c9a54c9eeb4f4ea
languageName: node
linkType: hard

"undici-types@npm:~5.26.4":
version: 5.26.5
resolution: "undici-types@npm:5.26.5"
Expand Down

0 comments on commit 923259a

Please sign in to comment.