Skip to content

[typescript] Make module usable with esbuild #11298

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

Merged
merged 3 commits into from
Jan 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<div align="center">

[![Stable releaases in Maven Central](https://img.shields.io/maven-metadata/v/https/repo1.maven.org/maven2/org/openapitools/openapi-generator/maven-metadata.xml.svg)](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.openapitools%22%20AND%20a%3A%22openapi-generator%22) [![Apache 2.0 License](https://img.shields.io/badge/License-Apache%202.0-orange)](./LICENSE) [![Open Collective backers](https://img.shields.io/opencollective/backers/openapi_generator?color=orange&label=OpenCollective%20Backers)](https://opencollective.com/openapi_generator) [![Join the Slack chat room](https://img.shields.io/badge/Slack-Join%20the%20chat%20room-orange)](https://join.slack.com/t/openapi-generator/shared_invite/enQtNzAyNDMyOTU0OTE1LTY5ZDBiNDI5NzI5ZjQ1Y2E5OWVjMjZkYzY1ZGM2MWQ4YWFjMzcyNDY5MGI4NjQxNDBiMTlmZTc5NjY2ZTQ5MGM) [![Follow OpenAPI Generator Twitter account to get the latest update](https://img.shields.io/twitter/follow/oas_generator.svg?style=social&label=Follow)](https://twitter.com/oas_generator)
[![Stable releases in Maven Central](https://img.shields.io/maven-metadata/v/https/repo1.maven.org/maven2/org/openapitools/openapi-generator/maven-metadata.xml.svg)](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.openapitools%22%20AND%20a%3A%22openapi-generator%22) [![Apache 2.0 License](https://img.shields.io/badge/License-Apache%202.0-orange)](./LICENSE) [![Open Collective backers](https://img.shields.io/opencollective/backers/openapi_generator?color=orange&label=OpenCollective%20Backers)](https://opencollective.com/openapi_generator) [![Join the Slack chat room](https://img.shields.io/badge/Slack-Join%20the%20chat%20room-orange)](https://join.slack.com/t/openapi-generator/shared_invite/enQtNzAyNDMyOTU0OTE1LTY5ZDBiNDI5NzI5ZjQ1Y2E5OWVjMjZkYzY1ZGM2MWQ4YWFjMzcyNDY5MGI4NjQxNDBiMTlmZTc5NjY2ZTQ5MGM) [![Follow OpenAPI Generator Twitter account to get the latest update](https://img.shields.io/twitter/follow/oas_generator.svg?style=social&label=Follow)](https://twitter.com/oas_generator)

</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ import { URLSearchParams } from 'url';
{{/platforms}}
{{#platforms}}
{{^deno}}
// typings of url-parse are incorrect...
// @ts-ignore
import * as URLParse from "url-parse";
import URLParse from "url-parse";
{{/deno}}
{{/platforms}}
import { Observable, from } from {{#useRxJS}}'rxjs'{{/useRxJS}}{{^useRxJS}}'../rxjsStub{{extensionForDeno}}'{{/useRxJS}};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
"url-parse": "^1.4.3"
},
"devDependencies": {
"typescript": "^3.9.3"
"typescript": "^3.9.3",
"@types/url-parse": "1.4.4"
}{{#npmRepository}},{{/npmRepository}}
{{#npmRepository}}
"publishConfig":{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
"noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
"noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */

/* To import url-parse */
"allowSyntheticDefaultImports": true,

"removeComments": true,
"sourceMap": true,
"outDir": "./dist",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// typings of url-parse are incorrect...
// @ts-ignore
import * as URLParse from "url-parse";
import URLParse from "url-parse";
import { Observable, from } from '../rxjsStub';

export * from './isomorphic-fetch';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"url-parse": "^1.4.3"
},
"devDependencies": {
"typescript": "^3.9.3"
"typescript": "^3.9.3",
"@types/url-parse": "1.4.4"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
"noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
"noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */

/* To import url-parse */
"allowSyntheticDefaultImports": true,

"removeComments": true,
"sourceMap": true,
"outDir": "./dist",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// TODO: evaluate if we can easily get rid of this library
import * as FormData from "form-data";
import { URLSearchParams } from 'url';
// typings of url-parse are incorrect...
// @ts-ignore
import * as URLParse from "url-parse";
import URLParse from "url-parse";
import { Observable, from } from '../rxjsStub';

export * from './isomorphic-fetch';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"url-parse": "^1.4.3"
},
"devDependencies": {
"typescript": "^3.9.3"
"typescript": "^3.9.3",
"@types/url-parse": "1.4.4"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
"noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
"noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */

/* To import url-parse */
"allowSyntheticDefaultImports": true,

"removeComments": true,
"sourceMap": true,
"outDir": "./dist",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// TODO: evaluate if we can easily get rid of this library
import * as FormData from "form-data";
import { URLSearchParams } from 'url';
// typings of url-parse are incorrect...
// @ts-ignore
import * as URLParse from "url-parse";
import URLParse from "url-parse";
import { Observable, from } from '../rxjsStub';

export * from './isomorphic-fetch';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"url-parse": "^1.4.3"
},
"devDependencies": {
"typescript": "^3.9.3"
"typescript": "^3.9.3",
"@types/url-parse": "1.4.4"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
"noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
"noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */

/* To import url-parse */
"allowSyntheticDefaultImports": true,

"removeComments": true,
"sourceMap": true,
"outDir": "./dist",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// typings of url-parse are incorrect...
// @ts-ignore
import * as URLParse from "url-parse";
import URLParse from "url-parse";
import { Observable, from } from '../rxjsStub';

export * from './jquery';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"url-parse": "^1.4.3"
},
"devDependencies": {
"typescript": "^3.9.3"
"typescript": "^3.9.3",
"@types/url-parse": "1.4.4"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
"noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
"noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */

/* To import url-parse */
"allowSyntheticDefaultImports": true,

"removeComments": true,
"sourceMap": true,
"outDir": "./dist",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// TODO: evaluate if we can easily get rid of this library
import * as FormData from "form-data";
import { URLSearchParams } from 'url';
// typings of url-parse are incorrect...
// @ts-ignore
import * as URLParse from "url-parse";
import URLParse from "url-parse";
import { Observable, from } from '../rxjsStub';

export * from './isomorphic-fetch';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"url-parse": "^1.4.3"
},
"devDependencies": {
"typescript": "^3.9.3"
"typescript": "^3.9.3",
"@types/url-parse": "1.4.4"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
"noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
"noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */

/* To import url-parse */
"allowSyntheticDefaultImports": true,

"removeComments": true,
"sourceMap": true,
"outDir": "./dist",
Expand Down