Skip to content

Commit b588449

Browse files
chore: add prettier and format (#17)
* chore: add prettier and format * chore: bump version
1 parent 0ba17a1 commit b588449

File tree

5 files changed

+3041
-1256
lines changed

5 files changed

+3041
-1256
lines changed

.prettierrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"semi": true,
3+
"trailingComma": "es5",
4+
"singleQuote": false,
5+
"printWidth": 100,
6+
"tabWidth": 2,
7+
"useTabs": true
8+
}

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# tfjs-image-node
22

3+
## 2.0.2
4+
5+
### Patch Changes
6+
7+
- Add prettier and format
8+
39
## 2.0.1
410

511
### Patch Changes

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tfjs-image-node",
3-
"version": "2.0.1",
3+
"version": "2.0.2",
44
"description": "A simple image classifier using tfjs and running in node.js",
55
"main": "./dist/index.js",
66
"module": "./dist/index.mjs",
@@ -14,8 +14,9 @@
1414
"test": "vitest run",
1515
"lint": "tsc",
1616
"ci": "pnpm run lint && pnpm run test && pnpm run build",
17-
"prerelease": "pnpm run lint && pnpm run test && pnpm run build",
18-
"release": "changeset publish"
17+
"prerelease": "pnpm run lint && pnpm format && pnpm run test && pnpm run build",
18+
"release": "changeset publish",
19+
"format": "prettier --write ."
1920
},
2021
"homepage": "https://github.com/kevinanielsen/tfjs-image-node/",
2122
"repository": {
@@ -45,6 +46,7 @@
4546
"@changesets/changelog-github": "^0.5.0",
4647
"@changesets/cli": "^2.27.1",
4748
"@types/node": "^20.10.0",
49+
"prettier": "^3.1.0",
4850
"ts-node": "^10.9.1",
4951
"tsup": "^8.0.1",
5052
"typescript": "^5.3.2",

0 commit comments

Comments
 (0)