@endemolshinegroup/cosmiconfig-typescript-loader
Advanced tools
Comparing version 1.0.2 to 2.0.0
@@ -0,1 +1,13 @@ | ||
# [2.0.0](https://github.com/EndemolShineGroup/cosmiconfig-typescript-loader/compare/v1.0.2...v2.0.0) (2020-06-20) | ||
### Features | ||
* **deps:** update `cosmiconfig` ([dc9a903](https://github.com/EndemolShineGroup/cosmiconfig-typescript-loader/commit/dc9a903)) | ||
### BREAKING CHANGES | ||
* **deps:** `cosmiconfig` API has changed in latest version | ||
## [1.0.2](https://github.com/EndemolShineGroup/cosmiconfig-typescript-loader/compare/v1.0.1...v1.0.2) (2020-06-20) | ||
@@ -2,0 +14,0 @@ |
@@ -1,3 +0,3 @@ | ||
import { AsyncLoader } from 'cosmiconfig'; | ||
declare const loader: AsyncLoader; | ||
import { Loader } from 'cosmiconfig'; | ||
declare const loader: Loader; | ||
export default loader; |
{ | ||
"name": "@endemolshinegroup/cosmiconfig-typescript-loader", | ||
"description": "A TypeScript loader for Cosmiconfig", | ||
"version": "1.0.2", | ||
"version": "2.0.0", | ||
"license": "MIT", | ||
@@ -37,3 +37,3 @@ "main": "dist/index.js", | ||
"peerDependencies": { | ||
"cosmiconfig": ">=5 < 6" | ||
"cosmiconfig": ">=6" | ||
}, | ||
@@ -59,3 +59,3 @@ "dependencies": { | ||
"commitizen": "^3", | ||
"cosmiconfig": "^5", | ||
"cosmiconfig": "^6", | ||
"husky": "^3", | ||
@@ -62,0 +62,0 @@ "jest": "^24", |
@@ -27,2 +27,27 @@ ![Banner][icon-banner] | ||
With cosmiconfig 6.x | ||
```typescript | ||
import cosmiconfig from 'cosmiconfig'; | ||
import TypeScriptLoader from '@endemolshinegroup/cosmiconfig-typescript-loader'; | ||
const moduleName = 'myModuleName'; | ||
const explorer = cosmiconfig(moduleName, { | ||
searchPlaces: [ | ||
'package.json', | ||
`.${moduleName}rc`, | ||
`.${moduleName}rc.json`, | ||
`.${moduleName}rc.yaml`, | ||
`.${moduleName}rc.yml`, | ||
`.${moduleName}rc.ts`, | ||
`.${moduleName}rc.js`, | ||
`${moduleName}.config.ts`, | ||
`${moduleName}.config.js`, | ||
], | ||
loaders: { | ||
'.ts': TypeScriptLoader, | ||
}, | ||
}); | ||
``` | ||
With cosmiconfig 5.x | ||
@@ -29,0 +54,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
394508
94