@p8ec/shared 2.5.0 → 2.5.2

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
@@ -6,12 +6,6 @@ Shared TypeScript/JavaScript libraries for P(8) products.
6
6
 
7
7
  Shared (**and very opinionated**) configuration for P(8) projects.
8
8
 
9
- **Contents:**
10
- - ESLint configuration
11
- - Prettier configuration
12
- - Commitlint configuration
13
- - Lefthook configuration
14
-
15
9
  ### Usage
16
10
 
17
11
  #### Installation
@@ -62,9 +56,16 @@ p8-cli [command] [options]
62
56
 
63
57
  ### Commands
64
58
 
65
- - `init` - Initialize P(8) shared configuration in your project. Options: `cleanup` - remove configuration entries from `package.json`
66
- - Example: `p8-cli init --cleanup` - initializes the shared configuration and removes corresponding entries from `package.json`.
59
+ - `init` - Initialize P(8) shared configuration in your project. Options: `cleanup` - remove configuration entries from
60
+ `package.json`
61
+ - Example: `p8-cli init --cleanup` - initializes the shared configuration and removes corresponding entries from
62
+ `package.json`.
67
63
  - `dirn` - Get the directory name. Options: `0` - current directory (default), `1` - parent directory, `2` - 2 levels up
68
64
  directory, etc.
69
- - Example: `p8-cli dirn 1` - shows the parent directory name.
70
-
65
+ - Example: `p8-cli dirn 1` - shows the parent directory name.
66
+ - `run` - Returns a script string using the detected or specified package manager. Options: `script` - script name,
67
+ `packageManager` - npm, yarn, or pnpm (auto-detected by default), `workspaceMode` - mode of concurrency for workspaces
68
+ (if applicable): `seq` (default) or `par`.
69
+ - Example: `p8-cli run build` - returns the `build` script using the detected package manager.
70
+ - Example: `p8-cli run test pnpm par` - returns the `test` script using
71
+ `pnpm` in parallel mode for workspaces.
@@ -8,5 +8,5 @@ interface EslintConfigOverrideInterface {
8
8
  eslintConfig?: ConfigWithExtends;
9
9
  }
10
10
  export type EslintConfigOverride = EslintConfigOverrideInterface;
11
- declare const _default: (override?: EslintConfigOverride) => import("@typescript-eslint/utils/ts-eslint").FlatConfig.ConfigArray;
11
+ declare const _default: (override?: EslintConfigOverride) => import("typescript-eslint").FlatConfig.ConfigArray;
12
12
  export default _default;
@@ -28,7 +28,7 @@ declare const _default: (overrides?: PrettierConfigOverride) => {
28
28
  requirePragma?: boolean | undefined;
29
29
  insertPragma?: boolean | undefined;
30
30
  checkIgnorePragma?: boolean | undefined;
31
- proseWrap?: "preserve" | "always" | "never" | undefined;
31
+ proseWrap?: "always" | "never" | "preserve" | undefined;
32
32
  arrowParens?: "always" | "avoid" | undefined;
33
33
  plugins?: (string | URL | import("prettier").Plugin<any>)[] | undefined;
34
34
  htmlWhitespaceSensitivity?: "strict" | "ignore" | "css" | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@p8ec/shared",
3
- "version": "2.5.0",
3
+ "version": "2.5.2",
4
4
  "description": "P(8) Global Shared Library for Javascript",
5
5
  "repository": {
6
6
  "type": "git",
@@ -23,9 +23,9 @@
23
23
  "test:cov": "jest --coverage --no-cache --runInBand",
24
24
  "lint": "eslint --cache \"src/**/*.{js,jsx,ts,tsx}\"",
25
25
  "lint:fix": "eslint --cache --fix \"src/**/*.{js,jsx,ts,tsx}\"",
26
- "docs:build": "typedoc --name 'P(8) Global Shared Library' --includeVersion --readme README_GENERATED.md --out docs src",
27
- "docs:patch": "mv docs/functions docs/funcs && sed -i'.bak' 's/href=\\\"functions/href=\\\"funcs/g' docs/*.html",
28
- "docs:clean": "rimraf docs"
26
+ "docs:build": "typedoc --name 'P(8) Global Shared Library' --includeVersion --out docs src",
27
+ "docs:patch": "(mv docs/functions docs/funcs && sed -i'.bak' 's/href=\\\"functions/href=\\\"funcs/g' docs/*.html) || true",
28
+ "docs:clean": "rm -rf docs"
29
29
  },
30
30
  "bin": {
31
31
  "p8-cli": "dist/cjs/bin/p8-shared-cli.js"
@@ -35,13 +35,13 @@
35
35
  "types": "dist/types/index.d.ts",
36
36
  "license": "MIT",
37
37
  "dependencies": {
38
- "@eslint/js": "^9.32.0",
39
- "eslint": "^9.32.0",
38
+ "@eslint/js": "^9.39.2",
39
+ "eslint": "^9.39.2",
40
40
  "eslint-config-prettier": "^10.1.8",
41
41
  "eslint-plugin-headers": "^1.3.3",
42
42
  "eslint-plugin-prettier": "^5.5.4",
43
43
  "ferramenta": "^1.3.2",
44
- "prettier": "^3.6.2",
45
- "typescript-eslint": "^8.39.0"
44
+ "prettier": "^3.7.4",
45
+ "typescript-eslint": "^8.52.0"
46
46
  }
47
47
  }