-
Notifications
You must be signed in to change notification settings - Fork 33
Andrew/ts config2 #104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Andrew/ts config2 #104
Changes from 6 commits
867ba0e
1c7e956
1cff5f1
172e965
4f9bfee
60fe060
ed4bc3d
9b32a96
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ __MACOSX | |
/.idea/ | ||
/node_modules/ | ||
/dist/ | ||
.env | ||
.env | ||
.rollup.cache/ | ||
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export default class Sleeper { | ||
constructor(); | ||
sleep(seconds: number): Promise<unknown>; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,7 @@ | |
], | ||
"main": "dist/cjs/index.cjs", | ||
"module": "dist/esm/index.mjs", | ||
"types": "dist/types/index.d.ts", | ||
"exports": { | ||
".": { | ||
"import": "./dist/esm/index.mjs", | ||
|
@@ -45,18 +46,22 @@ | |
"url": "github:smartystreets/smartystreets-javascript-sdk" | ||
}, | ||
"devDependencies": { | ||
"@babel/preset-env": "^7.25.8", | ||
"@rollup/plugin-commonjs": "^28.0.1", | ||
"@babel/preset-env": "^7.27.2", | ||
"@rollup/plugin-commonjs": "^28.0.3", | ||
"@rollup/plugin-json": "^6.1.0", | ||
"@rollup/plugin-node-resolve": "^15.3.0", | ||
"@rollup/plugin-node-resolve": "^16.0.1", | ||
"@rollup/plugin-terser": "^0.4.4", | ||
"@rollup/plugin-typescript": "^12.1.2", | ||
"@types/node": "^22.15.17", | ||
"chai": "^4.3.6", | ||
"mocha": "^10.2.0", | ||
"rollup": "^4.22.5", | ||
"rollup-plugin-delete": "^2.1.0" | ||
"mocha": "^11.2.2", | ||
"rollup": "^4.40.2", | ||
"rollup-plugin-delete": "^3.0.1", | ||
"typescript": "^5.8.3" | ||
}, | ||
"dependencies": { | ||
"axios": "^1.7.7", | ||
"axios-retry": "^4.5.0" | ||
"axios": "^1.9.0", | ||
"axios-retry": "^4.5.0", | ||
"tslib": "^2.8.1" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's the purpose of this dependency? I don't see it referenced anywhere, but maybe I'm not looking in the right place There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good catch, I don't think we need this |
||
} | ||
} |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export default class Sleeper { | ||
constructor () {} | ||
sleep(seconds: number) { | ||
return new Promise<void>((resolve: () => void) => setTimeout(resolve, seconds*1000)); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we don't need to state the type here for |
||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"compilerOptions": { | ||
"emitDeclarationOnly": true, | ||
"declaration": true, | ||
"outDir": "dist/types", | ||
"baseUrl": ".", | ||
"paths": { | ||
"@/*": ["./*"] | ||
}, | ||
"allowJs": true, | ||
"alwaysStrict": true, | ||
"exactOptionalPropertyTypes": true, | ||
"noPropertyAccessFromIndexSignature": true, | ||
"noImplicitAny": true, | ||
"noImplicitReturns": true, | ||
"noImplicitOverride": true, | ||
"noFallthroughCasesInSwitch": true, | ||
"allowUnreachableCode": false, | ||
"allowUnusedLabels": false, | ||
"noImplicitThis": true, | ||
"noUnusedLocals": true, | ||
"noUnusedParameters": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"skipLibCheck": true, | ||
"strict": true, | ||
"noEmit": true, | ||
"incremental": true, | ||
"module": "esnext", | ||
"esModuleInterop": true, | ||
"moduleResolution": "node", | ||
"resolveJsonModule": true, | ||
"isolatedModules": true, | ||
"jsx": "preserve" | ||
}, | ||
"include": ["src/**/*"], | ||
"exclude": [ | ||
"node_modules" | ||
] | ||
} |
Uh oh!
There was an error while loading. Please reload this page.