-
Notifications
You must be signed in to change notification settings - Fork 23
feat: add types #39
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
feat: add types #39
Changes from all commits
b6fcfad
32e8545
571e844
e6c858e
c095f71
b163e22
051a339
0fec2ac
1064e2d
b9bad9d
2a03f54
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 |
---|---|---|
|
@@ -20,6 +20,7 @@ | |
"src", | ||
"dist" | ||
], | ||
"types": "./dist/src/index.d.ts", | ||
"main": "src/index.js", | ||
"browser": { | ||
"fs": false | ||
|
@@ -29,28 +30,27 @@ | |
"url": "https://github.com/ipfs/is-ipfs.git" | ||
}, | ||
"scripts": { | ||
"prepare": "aegir build --no-bundle", | ||
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. @hugomrdias What does 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. It skips the browser bundle step as you don't need it during development, i.e. it only generates types from the jsdoc comments. |
||
"test:node": "aegir test --target node", | ||
"test:browser": "aegir test --target browser", | ||
"test": "aegir test", | ||
"prepublishOnly": "aegir build", | ||
"lint": "aegir lint && aegir lint-package-json", | ||
"release": "aegir release", | ||
"release-minor": "aegir release --type minor", | ||
"release-major": "aegir release --type major", | ||
"build": "aegir build", | ||
"coverage": "aegir coverage", | ||
"coverage-publish": "aegir coverage --upload" | ||
"release-major": "aegir release --type major" | ||
}, | ||
"dependencies": { | ||
"cids": "^1.1.5", | ||
"iso-url": "^1.0.0", | ||
"iso-url": "^1.1.0", | ||
"mafmt": "^8.0.4", | ||
"multiaddr": "^8.1.2", | ||
"multibase": "^3.1.1", | ||
"multihashes": "^3.1.2", | ||
"multibase": "^4.0.1", | ||
"multihashes": "^4.0.0", | ||
"uint8arrays": "^2.0.5" | ||
}, | ||
"devDependencies": { | ||
"aegir": "^30.3.0", | ||
"aegir": "^31.0.0", | ||
"pre-commit": "^1.2.2" | ||
}, | ||
"engines": { | ||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,10 @@ | ||||||
{ | ||||||
"extends": "./node_modules/aegir/src/config/tsconfig.aegir.json", | ||||||
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. Let's not assume where exactly aegir is.
Suggested change
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. That started failing recently and we don't know why yet. 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. The typescript team broke this a minor release last week:
😭 |
||||||
"compilerOptions": { | ||||||
"outDir": "dist" | ||||||
}, | ||||||
"include": [ | ||||||
"src", | ||||||
"test" | ||||||
] | ||||||
} |
Uh oh!
There was an error while loading. Please reload this page.