Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Commit bc788e4

Browse files
committed
fix: fix dependencies & CI
1 parent 6886f13 commit bc788e4

File tree

4 files changed

+58
-14
lines changed

4 files changed

+58
-14
lines changed

.github/workflows/test.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
name: Test
2-
on: [push]
2+
on:
3+
push:
4+
branches:
5+
- '*'
6+
- '*/*'
7+
- '**'
8+
- '!master'
39
jobs:
410
test:
511
name: test
@@ -17,6 +23,10 @@ jobs:
1723
uses: borales/actions-yarn@v2.3.0
1824
with:
1925
cmd: install
26+
- name: Lint
27+
uses: borales/actions-yarn@v2.3.0
28+
with:
29+
cmd: eslint
2030
- name: Test
2131
uses: borales/actions-yarn@v2.3.0
2232
with:

package.json

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@
3333
"dependencies": {
3434
"@vueuse/core": "^8.3.1",
3535
"diff-match-patch": "^1.0.5",
36-
"highlight.js": "^11.5.1",
37-
"vue": "^3.2.25"
36+
"highlight.js": "^11.5.1"
3837
},
3938
"devDependencies": {
4039
"@semantic-release/git": "^10.0.1",
4140
"@types/diff-match-patch": "^1.0.32",
4241
"@vitejs/plugin-vue": "^2.3.1",
4342
"@vue/test-utils": "^2.0.0-rc.21",
43+
"conventional-changelog-conventionalcommits": "^4.6.3",
4444
"eslint": "^8.14.0",
4545
"eslint-config-prettier": "^8.5.0",
4646
"eslint-plugin-vue": "^8.7.1",
@@ -53,17 +53,9 @@
5353
"vite": "^2.9.5",
5454
"vite-plugin-dts": "^1.1.0",
5555
"vitest": "^0.9.4",
56+
"vue": "^3.2.25",
5657
"vue-tsc": "^0.34.7"
5758
},
58-
"lint-staged": {
59-
"src/*.{js,jsx,vue,ts,tsx}": [
60-
"eslint",
61-
"git add"
62-
]
63-
},
64-
"gitHooks": {
65-
"pre-commit": "lint-staged"
66-
},
6759
"release": {
6860
"plugins": [
6961
[

vite.config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { defineConfig } from 'vite';
44
import vue from '@vitejs/plugin-vue';
55
import dts from 'vite-plugin-dts';
66

7-
// https://vitejs.dev/config/
87
export default defineConfig({
98
build: {
109
lib: {
@@ -18,6 +17,10 @@ export default defineConfig({
1817
globals: {
1918
vue: 'Vue',
2019
},
20+
assetFileNames: assetInfo => {
21+
if (assetInfo.name == 'style.css') return 'index.css';
22+
return assetInfo.name;
23+
},
2124
},
2225
},
2326
},

yarn.lock

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,11 @@ argparse@~1.0.9:
472472
dependencies:
473473
sprintf-js "~1.0.2"
474474

475+
array-ify@^1.0.0:
476+
version "1.0.0"
477+
resolved "https://registry.yarnpkg.com/array-ify/-/array-ify-1.0.0.tgz#9e528762b4a9066ad163a6962a364418e9626ece"
478+
integrity sha1-nlKHYrSpBmrRY6aWKjZEGOlibs4=
479+
475480
asap@~2.0.6:
476481
version "2.0.6"
477482
resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46"
@@ -634,6 +639,14 @@ commander@^2.20.3:
634639
resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33"
635640
integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==
636641

642+
compare-func@^2.0.0:
643+
version "2.0.0"
644+
resolved "https://registry.yarnpkg.com/compare-func/-/compare-func-2.0.0.tgz#fb65e75edbddfd2e568554e8b5b05fff7a51fcb3"
645+
integrity sha512-zHig5N+tPWARooBnb0Zx1MFcdfpyJrfTJ3Y5L+IFvUm8rM74hHz66z0gw0x4tijh5CorKkKUCnW82R2vmpeCRA==
646+
dependencies:
647+
array-ify "^1.0.0"
648+
dot-prop "^5.1.0"
649+
637650
concat-map@0.0.1:
638651
version "0.0.1"
639652
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
@@ -649,6 +662,15 @@ concat-stream@^1.6.0, concat-stream@^1.6.2:
649662
readable-stream "^2.2.2"
650663
typedarray "^0.0.6"
651664

665+
conventional-changelog-conventionalcommits@^4.6.3:
666+
version "4.6.3"
667+
resolved "https://registry.yarnpkg.com/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.6.3.tgz#0765490f56424b46f6cb4db9135902d6e5a36dc2"
668+
integrity sha512-LTTQV4fwOM4oLPad317V/QNQ1FY4Hju5qeBIM1uTHbrnCE+Eg4CdRZ3gO2pUeR+tzWdp80M2j3qFFEDWVqOV4g==
669+
dependencies:
670+
compare-func "^2.0.0"
671+
lodash "^4.17.15"
672+
q "^1.5.1"
673+
652674
core-util-is@~1.0.0:
653675
version "1.0.3"
654676
resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.3.tgz#a6042d3634c2b27e9328f837b965fac83808db85"
@@ -759,6 +781,13 @@ domexception@^4.0.0:
759781
dependencies:
760782
webidl-conversions "^7.0.0"
761783

784+
dot-prop@^5.1.0:
785+
version "5.3.0"
786+
resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-5.3.0.tgz#90ccce708cd9cd82cc4dc8c3ddd9abdd55b20e88"
787+
integrity sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==
788+
dependencies:
789+
is-obj "^2.0.0"
790+
762791
esbuild-android-64@0.14.38:
763792
version "0.14.38"
764793
resolved "https://registry.yarnpkg.com/esbuild-android-64/-/esbuild-android-64-0.14.38.tgz#5b94a1306df31d55055f64a62ff6b763a47b7f64"
@@ -1391,6 +1420,11 @@ is-number@^7.0.0:
13911420
resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b"
13921421
integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==
13931422

1423+
is-obj@^2.0.0:
1424+
version "2.0.0"
1425+
resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-2.0.0.tgz#473fb05d973705e3fd9620545018ca8e22ef4982"
1426+
integrity sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==
1427+
13941428
is-potential-custom-element-name@^1.0.1:
13951429
version "1.0.1"
13961430
resolved "https://registry.yarnpkg.com/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz#171ed6f19e3ac554394edf78caa05784a45bebb5"
@@ -1523,7 +1557,7 @@ lodash.merge@^4.6.2:
15231557
resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a"
15241558
integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==
15251559

1526-
lodash@^4.17.21, lodash@^4.17.4, lodash@~4.17.15:
1560+
lodash@^4.17.15, lodash@^4.17.21, lodash@^4.17.4, lodash@~4.17.15:
15271561
version "4.17.21"
15281562
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"
15291563
integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==
@@ -1813,6 +1847,11 @@ punycode@^2.1.0, punycode@^2.1.1:
18131847
resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec"
18141848
integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==
18151849

1850+
q@^1.5.1:
1851+
version "1.5.1"
1852+
resolved "https://registry.yarnpkg.com/q/-/q-1.5.1.tgz#7e32f75b41381291d04611f1bf14109ac00651d7"
1853+
integrity sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=
1854+
18161855
qs@^6.4.0:
18171856
version "6.10.3"
18181857
resolved "https://registry.yarnpkg.com/qs/-/qs-6.10.3.tgz#d6cde1b2ffca87b5aa57889816c5f81535e22e8e"

0 commit comments

Comments
 (0)