@ornikar/repo-config-react-legacy-css 10.0.0

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 ADDED
@@ -0,0 +1,15 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ ## 10.0.0 (2023-04-20)
7
+
8
+
9
+ ### ⚠ BREAKING CHANGES
10
+
11
+ * **repo-config-react:** if you used css files, replace repo-config-react by repo-config-react-legacy-css
12
+
13
+ ### Features
14
+
15
+ * **repo-config-react:** create repo-config-react-legacy-css with typed-css-modules [no issue] ([#883](https://github.com/ornikar/shared-configs/issues/883)) ([3dacc47](https://github.com/ornikar/shared-configs/commit/3dacc47b418b71e8dd966a7d3cb14c4cff7e0d42))
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+
3
+ const fs = require('fs');
4
+ const path = require('path');
5
+ const createBaseLintStagedConfig = require('@ornikar/repo-config-react/createLintStagedConfig');
6
+
7
+ const pkg = JSON.parse(fs.readFileSync(path.resolve('package.json')));
8
+
9
+ module.exports = function createLintStagedConfig(options = {}) {
10
+ const config = createBaseLintStagedConfig(options);
11
+
12
+ const srcDirectories = createBaseLintStagedConfig.getSrcDirectories(options.srcDirectoryName);
13
+
14
+ if (pkg.devDependencies.typescript) {
15
+ Object.assign(config, {
16
+ [`${srcDirectories}/**/*.module.{css,css.d.ts}`]: (filenames) => ["tcm -s -p '**/*.module.css'"],
17
+ });
18
+ }
19
+
20
+ return config;
21
+ };
package/package.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "@ornikar/repo-config-react-legacy-css",
3
+ "version": "10.0.0",
4
+ "description": "🔧⚛️ react repo config legacy css",
5
+ "repository": {
6
+ "directory": "@ornikar/repo-config-react-legacy-css",
7
+ "type": "git",
8
+ "url": "https://github.com/ornikar/shared-configs.git"
9
+ },
10
+ "license": "ISC",
11
+ "engines": {
12
+ "node": ">=16.16.0"
13
+ },
14
+ "publishConfig": {
15
+ "access": "public"
16
+ },
17
+ "bin": {
18
+ "ornikar-ci-comment-pr": "./bin/ornikar-ci-comment-pr.mjs"
19
+ },
20
+ "dependencies": {
21
+ "@ornikar/repo-config-react": "^10.0.0",
22
+ "typed-css-modules": "0.7.2"
23
+ },
24
+ "scripts": {
25
+ "lint:eslint": "yarn ../.. eslint --report-unused-disable-directives --quiet @ornikar/repo-config-react-legacy-css"
26
+ },
27
+ "gitHead": "35cbf35ff8063baebcb68432bf33ff4bb79158f0"
28
+ }