summaryrefslogtreecommitdiff
path: root/node_modules/postcss-load-config
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/postcss-load-config')
-rw-r--r--node_modules/postcss-load-config/README.md35
-rw-r--r--node_modules/postcss-load-config/package.json20
-rw-r--r--node_modules/postcss-load-config/src/index.js10
3 files changed, 26 insertions, 39 deletions
diff --git a/node_modules/postcss-load-config/README.md b/node_modules/postcss-load-config/README.md
index c1700f4e..9de4de2e 100644
--- a/node_modules/postcss-load-config/README.md
+++ b/node_modules/postcss-load-config/README.md
@@ -1,10 +1,4 @@
-[![npm][npm]][npm-url]
-[![node][node]][node-url]
-[![deps][deps]][deps-url]
-[![test][test]][test-url]
-[![coverage][cover]][cover-url]
-[![code style][style]][style-url]
-[![chat][chat]][chat-url]
+
<div align="center">
<img width="100" height="100" title="Load Options" src="http://michael-ciniawsky.github.io/postcss-load-options/logo.svg">
@@ -97,16 +91,18 @@ In this case create JS file named:
- `.postcssrc.mjs`
- `.postcssrc.cjs`
- `.postcssrc.ts`
+- `.postcssrc.cts`
- `postcss.config.js`
- `postcss.config.mjs`
- `postcss.config.cjs`
- `postcss.config.ts`
+- `postcss.config.cts`
```
Project (Root)
|– client
|– public
- |- (.postcssrc|postcss.config).(js|mjs|cjs|ts)
+ |- (.postcssrc|postcss.config).(js|mjs|cjs|ts|cts)
|- package.json
```
@@ -459,29 +455,8 @@ module.exports = (env) => ({
</td>
</tr>
<tbody>
-</table>
-
-
-[npm]: https://img.shields.io/npm/v/postcss-load-config.svg
-[npm-url]: https://npmjs.com/package/postcss-load-config
-
-[node]: https://img.shields.io/node/v/postcss-load-plugins.svg
-[node-url]: https://nodejs.org/
-
-[deps]: https://david-dm.org/michael-ciniawsky/postcss-load-config.svg
-[deps-url]: https://david-dm.org/michael-ciniawsky/postcss-load-config
-
-[test]: http://img.shields.io/travis/michael-ciniawsky/postcss-load-config.svg
-[test-url]: https://travis-ci.org/michael-ciniawsky/postcss-load-config
-
-[cover]: https://coveralls.io/repos/github/michael-ciniawsky/postcss-load-config/badge.svg
-[cover-url]: https://coveralls.io/github/michael-ciniawsky/postcss-load-config
-
-[style]: https://img.shields.io/badge/code%20style-standard-yellow.svg
-[style-url]: http://standardjs.com/
+</table
-[chat]: https://img.shields.io/gitter/room/postcss/postcss.svg
-[chat-url]: https://gitter.im/postcss/postcss
## Security Contact
diff --git a/node_modules/postcss-load-config/package.json b/node_modules/postcss-load-config/package.json
index 7e40f912..80b41160 100644
--- a/node_modules/postcss-load-config/package.json
+++ b/node_modules/postcss-load-config/package.json
@@ -1,6 +1,6 @@
{
"name": "postcss-load-config",
- "version": "4.0.1",
+ "version": "4.0.2",
"description": "Autoload Config for PostCSS",
"main": "src/index.js",
"types": "src/index.d.ts",
@@ -10,13 +10,19 @@
"engines": {
"node": ">= 14"
},
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/postcss/"
- },
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
"dependencies": {
- "lilconfig": "^2.0.5",
- "yaml": "^2.1.1"
+ "lilconfig": "^3.0.0",
+ "yaml": "^2.3.4"
},
"peerDependencies": {
"postcss": ">=8.0.9",
diff --git a/node_modules/postcss-load-config/src/index.js b/node_modules/postcss-load-config/src/index.js
index a7d16703..ce86aaad 100644
--- a/node_modules/postcss-load-config/src/index.js
+++ b/node_modules/postcss-load-config/src/index.js
@@ -85,10 +85,12 @@ const addTypeScriptLoader = (options = {}, loader) => {
`.${moduleName}rc.yaml`,
`.${moduleName}rc.yml`,
`.${moduleName}rc.ts`,
+ `.${moduleName}rc.cts`,
`.${moduleName}rc.js`,
`.${moduleName}rc.cjs`,
`.${moduleName}rc.mjs`,
`${moduleName}.config.ts`,
+ `${moduleName}.config.cts`,
`${moduleName}.config.js`,
`${moduleName}.config.cjs`,
`${moduleName}.config.mjs`
@@ -100,7 +102,8 @@ const addTypeScriptLoader = (options = {}, loader) => {
'.js': importDefault,
'.cjs': importDefault,
'.mjs': importDefault,
- '.ts': loader
+ '.ts': loader,
+ '.cts': loader
}
}
}
@@ -112,7 +115,10 @@ const withTypeScriptLoader = (rcFunc) => {
try {
// Register TypeScript compiler instance
- registerer = require('ts-node').register()
+ registerer = require('ts-node').register({
+ // transpile to cjs even if compilerOptions.module in tsconfig is not Node16/NodeNext.
+ moduleTypes: { '**/*.cts': 'cjs' }
+ })
return require(configFile)
} catch (err) {