Skip to content

Commit db68c76

Browse files
committed
docs: pkg
1 parent aa92294 commit db68c76

File tree

5 files changed

+44
-40
lines changed

5 files changed

+44
-40
lines changed

__tests__/dom.test.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import '@testing-library/jest-dom';
2+
import { describe, expect, test } from 'vitest';
23

34
describe('dom test', () => {
45
test.concurrent('testing-library/jest-dom', async () => {

__tests__/js.spec.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { expect, test } from 'vitest';
2+
13
test.concurrent('handles js', () => {
24
expect(1 + 1).toBe(2);
35
});

__tests__/mockfn.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { vi } from 'vitest';
1+
import { vi, describe, test, expect } from 'vitest';
22

33
function timer(callback) {
44
setTimeout(() => {

docs/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
{
22
"name": "docs",
33
"version": "1.0.0",
4+
"type": "module",
45
"description": "description for my-custom-vue3-package",
56
"scripts": {
67
"docs:build": "vitepress build docs",
78
"docs:dev": "vitepress dev docs",
89
"docs:serve": "vitepress serve docs"
910
},
1011
"devDependencies": {
11-
"vitepress": "1.0.0-beta.6",
12+
"vitepress": "1.0.0-rc.10",
1213
"vitepress-plugin-sandpack": "latest"
1314
}
1415
}

package.json

+38-38
Original file line numberDiff line numberDiff line change
@@ -66,83 +66,83 @@
6666
"dev-pack": "npm run dev:usepack -w playground",
6767
"prepare": "chmod a+x .husky/* && husky install",
6868
"prepublishOnly": "npm run build",
69-
"postinstall": "rimraf rf node_modules/@types/react",
69+
"postinstall": "rimraf rf node_modules/@types/react && rimraf rf node_modules/@storybook/types/node_modules/@types/react",
7070
"release": "bumpp --commit --tag --push",
7171
"stylelint": "stylelint \"**/*.{css,less,scss,vue}\"",
7272
"test": "vitest",
7373
"test:ui": "vitest --ui",
7474
"typecheck": "tsc && vue-tsc"
7575
},
7676
"dependencies": {
77-
"@babel/runtime": "^7.22.6",
78-
"core-js": "^3.32.0"
77+
"@babel/runtime": "^7.22.11",
78+
"core-js": "^3.32.1"
7979
},
8080
"devDependencies": {
81-
"@babel/plugin-transform-runtime": "^7.22.9",
82-
"@babel/plugin-transform-typescript": "^7.22.9",
83-
"@babel/preset-env": "^7.22.9",
84-
"@babel/preset-typescript": "^7.22.5",
85-
"@commitlint/cli": "^17.6.7",
86-
"@commitlint/config-conventional": "^17.6.7",
81+
"@babel/plugin-transform-runtime": "^7.22.10",
82+
"@babel/plugin-transform-typescript": "^7.22.11",
83+
"@babel/preset-env": "^7.22.14",
84+
"@babel/preset-typescript": "^7.22.11",
85+
"@commitlint/cli": "^17.7.1",
86+
"@commitlint/config-conventional": "^17.7.0",
8787
"@rollup/plugin-babel": "^6.0.3",
88-
"@storybook/addon-essentials": "^7.2.0",
89-
"@storybook/addon-interactions": "^7.2.0",
90-
"@storybook/addon-links": "^7.2.0",
88+
"@storybook/addon-essentials": "^7.4.0",
89+
"@storybook/addon-interactions": "^7.4.0",
90+
"@storybook/addon-links": "^7.4.0",
9191
"@storybook/addon-onboarding": "^1.0.8",
92-
"@storybook/blocks": "^7.2.0",
92+
"@storybook/blocks": "^7.4.0",
9393
"@storybook/testing-library": "^0.2.0",
94-
"@storybook/vue3": "^7.2.0",
95-
"@storybook/vue3-vite": "^7.2.0",
96-
"@swc/core": "^1.3.73",
97-
"@testing-library/jest-dom": "^5.17.0",
94+
"@storybook/vue3": "^7.4.0",
95+
"@storybook/vue3-vite": "^7.4.0",
96+
"@swc/core": "^1.3.82",
97+
"@testing-library/jest-dom": "^6.1.2",
9898
"@testing-library/user-event": "^14.4.3",
9999
"@testing-library/vue": "^7.0.0",
100100
"@types/lodash.isequal": "^4.5.6",
101101
"@types/lz-string": "^1.5.0",
102-
"@types/node": "^20.4.5",
102+
"@types/node": "^20.5.8",
103103
"@typescript-eslint/eslint-plugin": "^5.62.0",
104104
"@typescript-eslint/parser": "^5.62.0",
105-
"@vitejs/plugin-vue": "^4.2.3",
106-
"@vitejs/plugin-vue-jsx": "^3.0.1",
107-
"@vitest/ui": "^0.34.1",
105+
"@vitejs/plugin-vue": "^4.3.4",
106+
"@vitejs/plugin-vue-jsx": "^3.0.2",
107+
"@vitest/ui": "^0.34.3",
108108
"@vue/babel-plugin-jsx": "^1.1.5",
109109
"@vue/eslint-config-typescript": "^11.0.3",
110110
"babel-loader": "^9.1.3",
111111
"browserslist-to-esbuild": "^1.2.0",
112-
"bumpp": "^9.1.1",
112+
"bumpp": "^9.2.0",
113113
"cross-env": "^7.0.3",
114114
"cssnano": "^6.0.1",
115115
"esbuild-plugin-babel": "^0.2.3",
116-
"eslint": "^8.46.0",
116+
"eslint": "^8.48.0",
117117
"eslint-config-airbnb-base": "^15.0.0",
118118
"eslint-config-airbnb-typescript": "^17.1.0",
119-
"eslint-plugin-import": "^2.28.0",
119+
"eslint-plugin-import": "^2.28.1",
120120
"eslint-plugin-jsx-a11y": "^6.7.1",
121121
"eslint-plugin-storybook": "^0.6.13",
122-
"eslint-plugin-vue": "^9.16.1",
122+
"eslint-plugin-vue": "^9.17.0",
123123
"husky": "^8.0.3",
124124
"jsdom": "^22.1.0",
125-
"lint-staged": "^13.2.3",
126-
"npm": "^9.8.1",
125+
"lint-staged": "^14.0.1",
126+
"npm": "^10.0.0",
127127
"npm-run-all": "^4.1.5",
128-
"postcss": "^8.4.27",
128+
"postcss": "^8.4.29",
129129
"postcss-cli": "^10.1.0",
130130
"postcss-flexbugs-fixes": "^5.0.2",
131131
"postcss-nested": "^6.0.1",
132-
"postcss-preset-env": "^9.1.0",
133-
"postcss-scss": "^4.0.6",
132+
"postcss-preset-env": "^9.1.2",
133+
"postcss-scss": "^4.0.7",
134134
"rimraf": "^5.0.1",
135-
"sass": "^1.64.2",
135+
"sass": "^1.66.1",
136136
"shelljs": "^0.8.5",
137-
"storybook": "^7.2.0",
138-
"stylelint": "^15.10.2",
137+
"storybook": "^7.4.0",
138+
"stylelint": "^15.10.3",
139139
"stylelint-config-recommended-vue": "^1.5.0",
140140
"stylelint-config-standard": "^34.0.0",
141-
"tsup": "^7.1.0",
142-
"typescript": "~5.0.4",
143-
"vite": "^4.4.8",
144-
"vite-plugin-dts": "^3.4.0",
145-
"vitest": "^0.34.1",
141+
"tsup": "^7.2.0",
142+
"typescript": "~5.1.6",
143+
"vite": "^4.4.9",
144+
"vite-plugin-dts": "^3.5.3",
145+
"vitest": "^0.34.3",
146146
"vue-tsc": "^1.8.8"
147147
},
148148
"peerDependencies": {

0 commit comments

Comments
 (0)