Skip to content

Commit b59461a

Browse files
committed
chore: publish on npm
1 parent 8bc7a27 commit b59461a

21 files changed

+1798
-118
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/bright-cougars-drive.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@dimensiondev/kit': minor
3+
---
4+
5+
remove getCookieValue

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "master",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.changeset/shiny-glasses-return.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@dimensiondev/kit': minor
3+
---
4+
5+
remove blobToText

.changeset/stupid-onions-cover.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@dimensiondev/kit': minor
3+
---
4+
5+
remove AbortSignal.timeout

.changeset/yellow-badgers-itch.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@masknet/kit': minor
3+
---
4+
5+
remove dependency to lodash

.github/workflows/build.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/workflows/lint.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Lint
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-20.04
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: pnpm/action-setup@v2
15+
- uses: actions/setup-node@v2
16+
with:
17+
node-version: '18'
18+
cache: 'pnpm'
19+
- uses: DimensionDev/github-token-action@latest
20+
with:
21+
registry: true
22+
- run: pnpm install
23+
- run: npx tsc --noEmit
24+
- run: pnpm run lint
25+
- run: pnpm test

.github/workflows/publish.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
branches: [master]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
with:
13+
fetch-depth: 0
14+
- uses: pnpm/action-setup@v2
15+
- uses: actions/setup-node@v3
16+
with:
17+
node-version: '18'
18+
cache: 'pnpm'
19+
- run: pnpm install
20+
- run: npx tsc
21+
- uses: changesets/action@v1
22+
with:
23+
publish: pnpm run release
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
2-
"name": "@dimensiondev/kit",
2+
"name": "@masknet/kit",
33
"version": "0.0.0",
4+
"packageManager": "[email protected]",
45
"description": "A toolkit library.",
56
"license": "MIT",
6-
"author": "Septs",
7+
"author": "DimensionDev",
78
"main": "./esm/index.js",
89
"module": "./esm/index.js",
910
"types": "./esm/index.d.ts",
@@ -13,15 +14,14 @@
1314
"src"
1415
],
1516
"scripts": {
16-
"build": "tsc -p ./tsconfig.json"
17+
"build": "tsc -p ./tsconfig.json",
18+
"release": "pnpm run build && npx changeset publish"
1719
},
1820
"devDependencies": {
19-
"@types/lodash-es": "^4.17.6",
20-
"prettier": "^2.5.1",
21-
"typescript": "^4.7.0-dev.20220223",
22-
"user-agent-data-types": "^0.2.0"
21+
"@changesets/cli": "^2.25.2",
22+
"prettier": "^2.7.1",
23+
"typescript": "^4.8.4",
24+
"user-agent-data-types": "^0.3.0"
2325
},
24-
"dependencies": {
25-
"lodash-es": "^4.17.21"
26-
}
26+
"dependencies": {}
2727
}

0 commit comments

Comments
 (0)