macos-vision 0.1.2 → 0.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/.husky/commit-msg +2 -0
- package/.husky/pre-commit +3 -0
- package/.prettierignore +4 -0
- package/.prettierrc.json +7 -0
- package/.release-it.json +20 -0
- package/CHANGELOG.md +3 -0
- package/commitlint.config.js +1 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +1 -0
- package/eslint.config.js +21 -0
- package/package.json +27 -4
package/.prettierignore
ADDED
package/.prettierrc.json
ADDED
package/.release-it.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://unpkg.com/release-it/schema/release-it.json",
|
|
3
|
+
"plugins": {
|
|
4
|
+
"@release-it/conventional-changelog": {
|
|
5
|
+
"preset": "conventionalcommits",
|
|
6
|
+
"infile": "CHANGELOG.md"
|
|
7
|
+
}
|
|
8
|
+
},
|
|
9
|
+
"git": {
|
|
10
|
+
"commitMessage": "chore(release): v${version}",
|
|
11
|
+
"tagName": "v${version}"
|
|
12
|
+
},
|
|
13
|
+
"github": {
|
|
14
|
+
"release": false
|
|
15
|
+
},
|
|
16
|
+
"npm": {
|
|
17
|
+
"publish": true,
|
|
18
|
+
"tag": "latest"
|
|
19
|
+
}
|
|
20
|
+
}
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default { extends: ['@commitlint/config-conventional'] };
|
package/dist/cli.d.ts
CHANGED
package/dist/cli.js
CHANGED
package/eslint.config.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import tseslint from 'typescript-eslint';
|
|
2
|
+
import prettier from 'eslint-config-prettier';
|
|
3
|
+
|
|
4
|
+
export default tseslint.config(
|
|
5
|
+
...tseslint.configs.recommended,
|
|
6
|
+
prettier,
|
|
7
|
+
{
|
|
8
|
+
files: ['src/**/*.ts'],
|
|
9
|
+
languageOptions: {
|
|
10
|
+
parser: tseslint.parser,
|
|
11
|
+
parserOptions: {
|
|
12
|
+
project: true, // Szuka najbliższego tsconfig.json
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
rules: {
|
|
16
|
+
'@typescript-eslint/no-explicit-any': 'warn',
|
|
17
|
+
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
{ ignores: ['dist/**', 'node_modules/**', 'bin/**'] }
|
|
21
|
+
);
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "macos-vision",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Apple Vision OCR & image analysis for Node.js — native, fast, offline, no API keys",
|
|
5
5
|
"author": "Adrian Wolczuk",
|
|
6
|
-
"license": "MIT",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"type": "module",
|
|
7
8
|
"main": "./dist/index.js",
|
|
8
9
|
"types": "./dist/index.d.ts",
|
|
9
10
|
"bin": {
|
|
@@ -12,13 +13,19 @@
|
|
|
12
13
|
"repository": {
|
|
13
14
|
"type": "git",
|
|
14
15
|
"url": "git+https://github.com/woladi/macos-vision.git"
|
|
15
|
-
},
|
|
16
|
+
},
|
|
16
17
|
"scripts": {
|
|
17
18
|
"build-native": "node scripts/build-native.js",
|
|
18
19
|
"postinstall": "node scripts/build-native.js",
|
|
19
20
|
"build": "tsc",
|
|
20
21
|
"prepublishOnly": "npm run build",
|
|
21
|
-
"test": "vitest run"
|
|
22
|
+
"test": "vitest run",
|
|
23
|
+
"prepare": "[ -d .git ] && husky || true",
|
|
24
|
+
"typecheck": "tsc --noEmit",
|
|
25
|
+
"lint": "eslint src/**/*.ts",
|
|
26
|
+
"format": "prettier --write src/**/*.ts",
|
|
27
|
+
"release": "release-it",
|
|
28
|
+
"release:beta": "release-it --preRelease=beta"
|
|
22
29
|
},
|
|
23
30
|
"keywords": [
|
|
24
31
|
"ocr",
|
|
@@ -35,6 +42,12 @@
|
|
|
35
42
|
"document-detection",
|
|
36
43
|
"image-classification"
|
|
37
44
|
],
|
|
45
|
+
"lint-staged": {
|
|
46
|
+
"src/**/*.ts": [
|
|
47
|
+
"prettier --write",
|
|
48
|
+
"eslint --fix"
|
|
49
|
+
]
|
|
50
|
+
},
|
|
38
51
|
"os": [
|
|
39
52
|
"darwin"
|
|
40
53
|
],
|
|
@@ -42,8 +55,18 @@
|
|
|
42
55
|
"node": ">=18.0.0"
|
|
43
56
|
},
|
|
44
57
|
"devDependencies": {
|
|
58
|
+
"@commitlint/cli": "^20.5.0",
|
|
59
|
+
"@commitlint/config-conventional": "^20.5.0",
|
|
60
|
+
"@release-it/conventional-changelog": "^10.0.6",
|
|
45
61
|
"@types/node": "^20.0.0",
|
|
62
|
+
"eslint": "^10.2.0",
|
|
63
|
+
"eslint-config-prettier": "^10.1.8",
|
|
64
|
+
"husky": "^9.1.7",
|
|
65
|
+
"lint-staged": "^16.4.0",
|
|
66
|
+
"prettier": "^3.8.1",
|
|
67
|
+
"release-it": "^19.2.4",
|
|
46
68
|
"typescript": "^5.4.0",
|
|
69
|
+
"typescript-eslint": "^8.58.0",
|
|
47
70
|
"vitest": "^2.1.9"
|
|
48
71
|
}
|
|
49
72
|
}
|