Skip to content

Commit

Permalink
Move dist/types/ to types/
Browse files Browse the repository at this point in the history
  • Loading branch information
MattiasBuelens committed Sep 5, 2021
1 parent 443e389 commit 0999b8f
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 deletions.
7 changes: 3 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,8 @@ typings/
.serverless

### Project
/dist/*.js
/dist/*.mjs
/dist/types/ponyfill.d.ts
/dist/types/tsdoc-metadata.json
/dist/
/lib/
/temp/
/types/ponyfill.d.ts
/types/tsdoc-metadata.json
2 changes: 1 addition & 1 deletion api-extractor.json
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@
* SUPPORTED TOKENS: <projectFolder>, <packageName>, <unscopedPackageName>
* DEFAULT VALUE: "<projectFolder>/dist/<unscopedPackageName>.d.ts"
*/
"untrimmedFilePath": "<projectFolder>/dist/types/ponyfill.d.ts",
"untrimmedFilePath": "<projectFolder>/types/ponyfill.d.ts",

/**
* Specifies the output path for a .d.ts rollup file to be generated with trimming for a "beta" release.
Expand Down
14 changes: 8 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,24 @@
"./polyfill": "./dist/polyfill.js",
"./polyfill/es5": "./dist/polyfill.es5.js",
"./dist/*": "./dist/*",
"./types/*": "./types/*",
"./package": "./package.json",
"./package.json": "./package.json"
},
"types": "dist/types/ponyfill.d.ts",
"types": "types/ponyfill.d.ts",
"typesVersions": {
">=3.6": {
".": [
"./dist/types/ponyfill.d.ts"
"./types/ponyfill.d.ts"
],
"./es5": [
"./dist/types/ponyfill.d.ts"
"./types/ponyfill.d.ts"
],
"./polyfill": [
"./dist/types/polyfill.d.ts"
"./types/polyfill.d.ts"
],
"./polyfill/es5": [
"./dist/types/polyfill.d.ts"
"./types/polyfill.d.ts"
]
}
},
Expand All @@ -53,7 +54,8 @@
"prepare": "npm run build"
},
"files": [
"dist"
"dist",
"types"
],
"engines": {
"node": ">= 12"
Expand Down
2 changes: 1 addition & 1 deletion test/types/polyfill.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* This test verifies that the polyfill's type definitions correctly augment TypeScript's built-in DOM types.
*/
import '../../dist/types/polyfill';
import '../../types/polyfill';

const readable = new ReadableStream<Uint8Array>({
// TODO Figure out a way to augment the type of "declare var ReadableStream"?
Expand Down
File renamed without changes.

0 comments on commit 0999b8f

Please sign in to comment.