@apitree.cz/lint-staged-config 0.2.2 → 0.2.3

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/README.md CHANGED
@@ -34,6 +34,14 @@ Then, create a `lint-staged.config.js` file in each workspace:
34
34
  export { workspace as default } from '@apitree.cz/lint-staged-config';
35
35
  ```
36
36
 
37
+ If the workspace contains a distributable package (aka library), use the following configuration instead:
38
+
39
+ ```js
40
+ export { library as default } from '@apitree.cz/lint-staged-config';
41
+ ```
42
+
43
+ > See the [WebStorm Settings in PNPM Monorepos](../ts-config/README.md#webstorm-settings-in-pnpm-monorepos) section in `@apitree.cz/ts-config` for further information.
44
+
37
45
  ### Single-package repos
38
46
 
39
47
  Install the package and create a `lint-staged.config.js` file in the root of your project:
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export * from './library.js';
1
2
  export * from './root.js';
2
3
  export * from './single-package.js';
3
4
  export * from './workspace.js';
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ export * from './library.js';
1
2
  export * from './root.js';
2
3
  export * from './single-package.js';
3
4
  export * from './workspace.js';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Lint-staged configuration for monorepo workspace containing distributable library.
3
+ */
4
+ export declare const library: {
5
+ './**/*.{ts,tsx}': (() => string)[];
6
+ './**/*.{js,mdx,ts,tsx}': string[];
7
+ './**/*.{css,ejs,graphql,html,js,json,md,mdx,ts,tsx,yml,yaml}': string[];
8
+ };
@@ -0,0 +1,9 @@
1
+ import { workspace } from './workspace.js';
2
+ /**
3
+ * Lint-staged configuration for monorepo workspace containing distributable library.
4
+ */
5
+ export const library = {
6
+ ...workspace,
7
+ './**/*.{ts,tsx}': [() => 'tsc --build tsconfig.lib.json'],
8
+ };
9
+ //# sourceMappingURL=library.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"library.js","sourceRoot":"","sources":["../src/library.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C;;GAEG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,GAAG,SAAS;IACZ,iBAAiB,EAAE,CAAC,GAAG,EAAE,CAAC,+BAA+B,CAAC;CACnC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apitree.cz/lint-staged-config",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Lint-staged configuration for ApiTree projects.",
5
5
  "keywords": [
6
6
  "apitree",