@apitree.cz/lint-staged-config 0.2.7 → 1.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/README.md +1 -9
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
- package/dist/library.d.ts +0 -8
- package/dist/library.js +0 -9
- package/dist/library.js.map +0 -1
package/README.md
CHANGED
|
@@ -34,15 +34,7 @@ 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
|
-
|
|
38
|
-
|
|
39
|
-
If the workspace contains a distributable package (aka library), use the following configuration instead:
|
|
40
|
-
|
|
41
|
-
```js
|
|
42
|
-
export { library as default } from '@apitree.cz/lint-staged-config';
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
> 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.
|
|
37
|
+
> **Note:** The `library` export was previously recommended for workspaces with distributable packages but is now deprecated. Use `workspace` for all workspace configurations.
|
|
46
38
|
|
|
47
39
|
### Single-package repos
|
|
48
40
|
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apitree.cz/lint-staged-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Lint-staged configuration for ApiTree projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"apitree",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"type": "module",
|
|
17
17
|
"exports": {
|
|
18
18
|
".": {
|
|
19
|
-
"
|
|
20
|
-
"
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"import": "./dist/index.js"
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"types": "./dist/index.d.ts",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dist"
|
|
26
26
|
],
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"lint-staged": "^16.2.
|
|
28
|
+
"lint-staged": "^16.2.7"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"lint-staged": "^16.1.0"
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
"scripts": {
|
|
39
39
|
"prebuild": "del dist tsconfig.build.tsbuildinfo",
|
|
40
40
|
"build": "tsc --build tsconfig.build.json",
|
|
41
|
-
"cleanup": "del .eslintcache .turbo tsconfig.tsbuildinfo tsconfig.build.tsbuildinfo
|
|
41
|
+
"cleanup": "del .eslintcache .turbo tsconfig.tsbuildinfo tsconfig.build.tsbuildinfo dist node_modules",
|
|
42
42
|
"fix": "run-p ts format:fix lint:fix",
|
|
43
43
|
"format": "prettier --check \"./**/*.{js,json,md,ts}\"",
|
|
44
44
|
"format:fix": "pnpm run format --write",
|
|
45
45
|
"lint": "eslint --cache .",
|
|
46
46
|
"lint:fix": "pnpm run lint --fix",
|
|
47
47
|
"qa": "run-p ts format lint",
|
|
48
|
-
"ts": "tsc --build tsconfig.
|
|
48
|
+
"ts": "tsc --build tsconfig.json"
|
|
49
49
|
}
|
|
50
50
|
}
|
package/dist/library.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
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
|
-
};
|
package/dist/library.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
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
|
package/dist/library.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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"}
|