Skip to content

Commit 1730b84

Browse files
update package lock
1 parent d29e264 commit 1730b84

7 files changed

Lines changed: 7098 additions & 49 deletions

File tree

.changeset/config.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"access": "public",
6+
"baseBranch": "main"
7+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Continuous Integration
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- "main"
8+
pull_request:
9+
branches:
10+
- "**"
11+
12+
jobs:
13+
ci:
14+
strategy:
15+
matrix:
16+
os: [ubuntu-latest]
17+
node: [22]
18+
runs-on: ${{ matrix.os }}
19+
steps:
20+
- name: Checkout project
21+
uses: actions/checkout@v4
22+
23+
- name: Setup Pnpm
24+
uses: pnpm/action-setup@v4
25+
with:
26+
version: 10.23.0
27+
28+
- name: Install node
29+
uses: actions/setup-node@v4
30+
with:
31+
node-version: ${{ matrix.node }}
32+
cache: "pnpm"
33+
34+
- name: Install dependencies
35+
run: pnpm install
36+
37+
- name: Run CI
38+
run: pnpm run ci
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: publish npm packages
2+
3+
on:
4+
workflow_dispatch:
5+
workflow_run:
6+
workflows: ["Continuous Integration"]
7+
branches: [main]
8+
types:
9+
- completed
10+
11+
permissions:
12+
id-token: write
13+
contents: read
14+
15+
jobs:
16+
publish:
17+
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
18+
runs-on: ubuntu-latest
19+
environment: production
20+
steps:
21+
- name: Checkout Repo
22+
uses: actions/checkout@v4
23+
24+
- name: Setup Pnpm
25+
uses: pnpm/action-setup@v4
26+
with:
27+
version: 10.23.0
28+
29+
- name: Setup Node.js 22
30+
uses: actions/setup-node@v4
31+
with:
32+
node-version: 24
33+
registry-url: "https://registry.npmjs.org"
34+
cache: "pnpm"
35+
36+
- name: Install Dependencies
37+
run: pnpm install --frozen-lockfile
38+
39+
- name: Upgrade npm for trusted publishing
40+
run: npm install -g "npm@^11.5.1"
41+
42+
- name: Build
43+
run: pnpm build
44+
45+
- name: Publish packages
46+
run: pnpm exec changeset publish

.github/workflows/versioning.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# see https://github.com/changesets/action#without-publishing
2+
3+
name: versioning
4+
5+
on:
6+
# trigger this workflow when the CI workflow is completed
7+
workflow_run:
8+
workflows: ["Continuous Integration"]
9+
branches: [main]
10+
types:
11+
- completed
12+
workflow_dispatch:
13+
concurrency: ${{ github.workflow }}-${{ github.ref }}
14+
15+
jobs:
16+
versioning:
17+
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
18+
name: versioning
19+
environment: production
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout Repo
23+
uses: actions/checkout@v4
24+
25+
- name: Setup Pnpm
26+
uses: pnpm/action-setup@v4
27+
with:
28+
version: 10.23.0
29+
30+
- name: Setup Node.js 22
31+
uses: actions/setup-node@v4
32+
with:
33+
node-version: 24
34+
# https://github.com/npm/cli/issues/6184#issuecomment-1544496444
35+
registry-url: "https://registry.npmjs.org"
36+
cache: "pnpm"
37+
38+
- name: Install Dependencies
39+
run: pnpm install
40+
41+
- name: Create Release Pull Request
42+
uses: changesets/action@v1
43+
with:
44+
title: Version Packages [skip preview]
45+
env:
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
48+
- name: Get current branch
49+
id: get_branch
50+
run: echo "CURRENT_BRANCH=$(git branch --show-current)" >> $GITHUB_ENV
51+
52+
- name: Update lock file
53+
if: env.CURRENT_BRANCH == 'changeset-release/main'
54+
run: pnpm install --lockfile-only
55+
56+
- name: Commit lock file
57+
if: env.CURRENT_BRANCH == 'changeset-release/main'
58+
uses: stefanzweifel/git-auto-commit-action@v5
59+
with:
60+
commit_message: "chore: update lock file"
61+
branch: changeset-release/main

docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
pageType: home
33

44
hero:
5-
name: HTML Diff
6-
text: Build a diff view in your app
5+
name: ""
6+
text: Show a rich diff in your app
77
tagline: Universal HTML diffing for any app UI - works with React, Vue, Svelte, Angular, and more
88
actions:
99
- theme: brand

package.json

Lines changed: 55 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,57 @@
11
{
2-
"name": "@lix-js/html-diff",
3-
"version": "0.1.0",
4-
"type": "module",
5-
"types": "./dist/index.d.ts",
6-
"publishConfig": {
7-
"access": "public",
8-
"tag": "latest"
9-
},
10-
"exports": {
11-
".": "./dist/index.js",
12-
"./default.css": "./src/default.css"
13-
},
14-
"files": [
15-
"dist",
16-
"src"
17-
],
18-
"scripts": {
19-
"build": "tsc",
20-
"dev": "tsc --watch",
21-
"test": "tsc --noEmit && vitest run",
22-
"test:watch": "vitest",
23-
"format": "prettier . --write",
24-
"docs:dev": "rspress dev",
25-
"docs:build": "rspress build",
26-
"docs:preview": "rspress preview"
27-
},
28-
"devDependencies": {
29-
"@braintree/sanitize-url": "^7.1.1",
30-
"@monaco-editor/react": "^4.7.0",
31-
"@tailwindcss/postcss": "^4.1.10",
32-
"@types/react": "^19.0.12",
33-
"@types/react-dom": "^19.0.4",
34-
"dedent": "1.5.1",
35-
"prettier": "^3.5.1",
36-
"react": "^19.1.0",
37-
"react-dom": "^19.1.0",
38-
"rspress": "^1.40.2",
39-
"tailwindcss": "^4.1.11",
40-
"typescript": "^5.5.3",
41-
"vite": "^6.2.6",
42-
"vitest": "^3.2.4",
43-
"rspress-plugin-mermaid": "^0.3.0"
44-
},
45-
"dependencies": {
46-
"diff": "^8.0.2",
47-
"parse5": "^7.3.0"
48-
}
2+
"name": "@lix-js/html-diff",
3+
"version": "0.1.0",
4+
"type": "module",
5+
"types": "./dist/index.d.ts",
6+
"publishConfig": {
7+
"access": "public",
8+
"tag": "latest"
9+
},
10+
"repository": {
11+
"type": "git",
12+
"url": "https://github.com/opral/html-diff"
13+
},
14+
"exports": {
15+
".": "./dist/index.js",
16+
"./default.css": "./src/default.css"
17+
},
18+
"files": [
19+
"dist",
20+
"src"
21+
],
22+
"scripts": {
23+
"build": "tsc",
24+
"dev": "tsc --watch",
25+
"test": "tsc --noEmit && vitest run",
26+
"test:watch": "vitest",
27+
"ci": "pnpm run build && pnpm run test",
28+
"changeset": "changeset",
29+
"version-packages": "changeset version",
30+
"format": "prettier . --write",
31+
"docs:dev": "rspress dev",
32+
"docs:build": "rspress build",
33+
"docs:preview": "rspress preview"
34+
},
35+
"devDependencies": {
36+
"@braintree/sanitize-url": "^7.1.1",
37+
"@changesets/cli": "^2.29.7",
38+
"@monaco-editor/react": "^4.7.0",
39+
"@tailwindcss/postcss": "^4.1.10",
40+
"@types/react": "^19.0.12",
41+
"@types/react-dom": "^19.0.4",
42+
"dedent": "1.5.1",
43+
"prettier": "^3.5.1",
44+
"react": "^19.1.0",
45+
"react-dom": "^19.1.0",
46+
"rspress": "^1.40.2",
47+
"tailwindcss": "^4.1.11",
48+
"typescript": "^5.5.3",
49+
"vite": "^6.2.6",
50+
"vitest": "^3.2.4",
51+
"rspress-plugin-mermaid": "^0.3.0"
52+
},
53+
"dependencies": {
54+
"diff": "^8.0.2",
55+
"parse5": "^7.3.0"
56+
}
4957
}

0 commit comments

Comments
 (0)