Skip to content

Commit

Permalink
chore(package): save typescript to devDependencies and add tsconfig.json
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Aug 10, 2023
1 parent 246a6f5 commit 77f4774
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 4 deletions.
22 changes: 21 additions & 1 deletion package-lock.json

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

9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
{
"scripts": {
"build": "p2o postman/collection.json --file openapi/spec.json --options postman-to-openapi.json",
"build": "npm run build:openapi",
"build:openapi": "p2o postman/collection.json --file openapi/spec.json --options postman-to-openapi.json",
"clean": "rm -rf .cache openapi",
"lint": "spectral lint openapi/spec.json --display-only-failures"
"lint": "spectral lint openapi/spec.json --display-only-failures",
"lint:tsc": "tsc --noEmit"
},
"dependencies": {
"postman-to-openapi": "^3.0.1"
},
"devDependencies": {
"@stoplight/spectral-cli": "^6.10.1",
"prettier": "^3.0.1"
"prettier": "^3.0.1",
"typescript": "^5.1.6"
}
}
12 changes: 12 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"compilerOptions": {
"target": "es2016",
"module": "commonjs",
"noEmit": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true
}
}

0 comments on commit 77f4774

Please sign in to comment.