@workleap/postcss-configs 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/index.js.map +1 -1
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @workleap/postcss-configs
|
|
2
2
|
|
|
3
|
+
## 1.1.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#339](https://github.com/workleap/wl-web-configs/pull/339) [`4a85b91`](https://github.com/workleap/wl-web-configs/commit/4a85b9105a02f3fdad19beae1792a5cd096a2e47) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Bumped dependency versions.
|
|
8
|
+
|
|
3
9
|
## 1.1.3
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["import type { Config as PostCSSConfig } from \"postcss-load-config\";\nimport postcssPresetEnv, { type pluginOptions as PostcssPresetEnvOptions } from \"postcss-preset-env\";\n\nexport type { PostCSSConfig };\n\nexport type PostcssConfigTransformer = (config: PostCSSConfig) => PostCSSConfig;\n\nfunction applyTransformers(config: PostCSSConfig, transformers: PostcssConfigTransformer[]) {\n return transformers.reduce((acc, transformer) => transformer(acc), config);\n}\n\nexport const DefaultPresetEnvOptions = {\n autoprefixer: {\n flexbox: \"no-2009\"\n },\n stage: 3\n} satisfies PostcssPresetEnvOptions;\n\nexport interface DefineConfigOptions {\n browsers?: Required<PostcssPresetEnvOptions[\"browsers\"]>;\n presetEnvOptions?: Omit<PostcssPresetEnvOptions, \"browsers\">;\n transformers?: PostcssConfigTransformer[];\n}\n\nexport function defineConfig(options: DefineConfigOptions = {}) {\n const {\n browsers,\n presetEnvOptions = DefaultPresetEnvOptions,\n transformers = []\n } = options;\n\n let _options: PostcssPresetEnvOptions = presetEnvOptions;\n\n if (browsers) {\n _options = {\n ...presetEnvOptions,\n browsers\n };\n }\n\n const config: PostCSSConfig = {\n plugins: [\n // Typings are wrong, it's callable.\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n postcssPresetEnv(_options)\n ]\n };\n\n const transformedConfig = applyTransformers(config, transformers);\n\n return transformedConfig;\n}\n"],"names":["postcssPresetEnv","applyTransformers","config","transformers","acc","transformer","DefaultPresetEnvOptions","defineConfig","options","browsers","presetEnvOptions","_options","transformedConfig"],"mappings":";;;;;AACqG;AAMrG,SAASC,kBAAkBC,MAAqB,EAAEC,YAAwC;IACtF,OAAOA,aAAa,MAAM,CAAC,CAACC,KAAKC,cAAgBA,YAAYD,MAAMF;AACvE;AAEO,MAAMI,0BAA0B;IACnC,cAAc;QACV,SAAS;IACb;IACA,OAAO;AACX,EAAoC;AAQ7B,SAASC,aAAaC,UAA+B,CAAC,CAAC;IAC1D,MAAM,EACFC,QAAQ,EACRC,mBAAmBJ,uBAAuB,EAC1CH,eAAe,EAAE,EACpB,GAAGK;IAEJ,IAAIG,WAAoCD;IAExC,IAAID,UAAU;QACVE,WAAW;YACP,GAAGD,gBAAgB;YACnBD;QACJ;IACJ;IAEA,MAAMP,SAAwB;QAC1B,SAAS;YACL,oCAAoC;YACpC,6DAA6D;YAC7D,aAAa;YACbF,kBAAgBA,CAACW;SACpB;IACL;IAEA,MAAMC,oBAAoBX,kBAAkBC,QAAQC;IAEpD,OAAOS;AACX"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@workleap/postcss-configs",
|
|
3
3
|
"author": "Workleap",
|
|
4
4
|
"description": "Workleap's recommended PostCSS configurations",
|
|
5
|
-
"version": "1.1.
|
|
5
|
+
"version": "1.1.4",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public",
|
|
@@ -31,24 +31,24 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"postcss-load-config": "^6.0.1",
|
|
34
|
-
"postcss-preset-env": "^10.
|
|
34
|
+
"postcss-preset-env": "^10.5.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@eslint/js": "9.
|
|
38
|
-
"@rslib/core": "0.
|
|
39
|
-
"@types/node": "
|
|
40
|
-
"@typescript-eslint/parser": "8.
|
|
41
|
-
"eslint": "9.
|
|
37
|
+
"@eslint/js": "9.39.1",
|
|
38
|
+
"@rslib/core": "0.18.4",
|
|
39
|
+
"@types/node": "25.0.0",
|
|
40
|
+
"@typescript-eslint/parser": "8.49.0",
|
|
41
|
+
"eslint": "9.39.1",
|
|
42
42
|
"typescript": "5.9.3",
|
|
43
|
-
"typescript-eslint": "8.
|
|
44
|
-
"vitest": "4.0.
|
|
45
|
-
"@workleap/eslint-configs": "
|
|
46
|
-
"@workleap/rslib-configs": "1.1.
|
|
43
|
+
"typescript-eslint": "8.49.0",
|
|
44
|
+
"vitest": "4.0.15",
|
|
45
|
+
"@workleap/eslint-configs": "1.1.7",
|
|
46
|
+
"@workleap/rslib-configs": "1.1.4",
|
|
47
47
|
"@workleap/typescript-configs": "3.0.7"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"build": "rslib build -c rslib.config.ts",
|
|
51
|
-
"eslint": "eslint . --max-warnings
|
|
51
|
+
"eslint": "eslint . --max-warnings=0 --cache --cache-location node_modules/.cache/eslint",
|
|
52
52
|
"typecheck": "tsc",
|
|
53
53
|
"test": "vitest --config vitest.config.ts --no-watch"
|
|
54
54
|
}
|