Skip to content

Commit

Permalink
feat: add getDimensionByDOM
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Works committed Jan 25, 2024
1 parent f4a90b9 commit 3dc15d1
Show file tree
Hide file tree
Showing 11 changed files with 2,785 additions and 1,821 deletions.
5 changes: 5 additions & 0 deletions .changeset/giant-emus-nail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@masknet/kit': patch
---

rename getDimensionAsPNG to getDimensionOfPNG
5 changes: 5 additions & 0 deletions .changeset/pink-rules-fail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@masknet/kit': patch
---

rename getDimensionAsJPEG to getDimensionOfJPEG
5 changes: 5 additions & 0 deletions .changeset/rude-chicken-wait.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@masknet/kit': minor
---

add getDimensionByDOM
42 changes: 21 additions & 21 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
name: Publish

on:
push:
branches: [master]
push:
branches: [master]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'pnpm'
- run: pnpm install
- run: npx tsc
- uses: changesets/action@v1
with:
publish: pnpm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'pnpm'
- run: pnpm install
- run: npx tsc
- uses: changesets/action@v1
with:
publish: pnpm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
5 changes: 3 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": true
}
"source.fixAll": "explicit"
},
"typescript.tsdk": "node_modules/typescript/lib"
}
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
"release": "pnpm run build && npx changeset publish"
},
"devDependencies": {
"@changesets/cli": "^2.26.1",
"@masknet/config": "^0.2.0",
"prettier": "^2.8.8",
"typescript": "^5.0.4",
"user-agent-data-types": "^0.3.1"
"@changesets/cli": "^2.27.1",
"@masknet/config": "^0.2.1",
"prettier": "^3.2.4",
"typescript": "^5.3.3",
"user-agent-data-types": "^0.4.2"
}
}
Loading

0 comments on commit 3dc15d1

Please sign in to comment.