From 196e59fa15978b6a7d417ddca1a4730d0881f4c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E4=BA=9A=E6=98=95?= <1549469775@qq.com> Date: Mon, 1 Dec 2025 14:59:29 +0800 Subject: [PATCH] chore: update package.json and pnpm-lock.yaml to include fake-art dependency and adjust import paths in documentation --- docs/.vuepress/enhanceApp.js | 4 ++-- package.json | 3 ++- pnpm-lock.yaml | 35 ++++++++++++----------------------- 3 files changed, 16 insertions(+), 26 deletions(-) diff --git a/docs/.vuepress/enhanceApp.js b/docs/.vuepress/enhanceApp.js index bff687e..2390b90 100644 --- a/docs/.vuepress/enhanceApp.js +++ b/docs/.vuepress/enhanceApp.js @@ -1,5 +1,5 @@ -import { FakeComponents } from "../../dist/fake-art.js" -import "../../dist/style.css" +import { FakeComponents } from "fake-art" +import "fake-art/dist/style.css" export default ({ Vue, diff --git a/package.json b/package.json index 432c870..8717361 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "import": "./dist/fake-art.js", "require": "./dist/fake-art.cjs" }, - "./style.css": { + "./dist/style.css": { "import": "./dist/style.css", "require": "./dist/style.css" } @@ -49,6 +49,7 @@ "eslint": "9.29.0", "eslint-flat-config-utils": "2.1.0", "eslint-plugin-format": "1.0.1", + "fake-art": "npm:fake-art@0.0.1-alpha.1", "gh-pages": "^6.1.1", "lefthook": "^2.0.4", "sass": "^1.77.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 15e2473..6f68feb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -20,9 +20,6 @@ importers: '@types/node': specifier: ^20.12.10 version: 20.12.10 - aa: - specifier: npm:@sinonjs/fake-timers@15.0.0 - version: '@sinonjs/fake-timers@15.0.0' eslint: specifier: 9.29.0 version: 9.29.0(jiti@2.6.1) @@ -32,6 +29,9 @@ importers: eslint-plugin-format: specifier: 1.0.1 version: 1.0.1(eslint@9.29.0(jiti@2.6.1)) + fake-art: + specifier: npm:fake-art@0.0.1-alpha.1 + version: 0.0.1-alpha.1(vue@2.6.14) gh-pages: specifier: ^6.1.1 version: 6.1.1 @@ -1599,12 +1599,6 @@ packages: resolution: {integrity: sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==} engines: {node: '>=6'} - '@sinonjs/commons@3.0.1': - resolution: {integrity: sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==} - - '@sinonjs/fake-timers@15.0.0': - resolution: {integrity: sha512-dlUB2oL+hDIYkIq/OWFBDhQAuU6kDey3eeMiYpVb7UXHhkMq/r1HloKXAbJwJZpYWkFWsydLjMqDpueMUEOjXQ==} - '@somebuild/build-component-vue2@0.0.6': resolution: {integrity: sha512-mmt+LxcO7F7xOWDHAMthCpEhyWwEX3ejRmsGp6MpoNBX7G57DhmR+MP7vyO45R3xF/+isUEHSR2Ali75RiR1Mw==} peerDependencies: @@ -4021,6 +4015,11 @@ packages: resolution: {integrity: sha512-11Ndz7Nv+mvAC1j0ktTa7fAb0vLyGGX+rMHNBYQviQDGU0Hw7lhctJANqbPhu9nV9/izT/IntTgZ7Im/9LJs9g==} engines: {'0': node >=0.6.0} + fake-art@0.0.1-alpha.1: + resolution: {integrity: sha512-N4PlhhH2ZpUfYYzME92H+e9yWQvElGL606Y4DLj7YyrL9uyfUSM0PAgxGZlW7ZXjZcO6H+EuTNyWqwbDuejHuQ==} + peerDependencies: + vue: <= 2.6.14 + fast-deep-equal@3.1.3: resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} @@ -7032,10 +7031,6 @@ packages: resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} engines: {node: '>= 0.8.0'} - type-detect@4.0.8: - resolution: {integrity: sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==} - engines: {node: '>=4'} - type-fest@0.21.3: resolution: {integrity: sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==} engines: {node: '>=10'} @@ -9154,14 +9149,6 @@ snapshots: '@sindresorhus/is@0.14.0': {} - '@sinonjs/commons@3.0.1': - dependencies: - type-detect: 4.0.8 - - '@sinonjs/fake-timers@15.0.0': - dependencies: - '@sinonjs/commons': 3.0.1 - '@somebuild/build-component-vue2@0.0.6(@somebuild/vite-config-vue2@1.0.1(@types/node@20.12.10)(hogan.js@3.0.2)(lodash@4.17.21)(rollup@4.53.3)(typescript@5.4.2)(vite@5.4.21(@types/node@20.12.10)(sass@1.77.0)(stylus@0.54.8)(terser@4.8.1))(vue-template-compiler@2.6.14)(vue@2.6.14))(@types/node@20.12.10)(sass@1.77.0)(somebuild@0.0.19)(stylus@0.54.8)(terser@4.8.1)(vue-template-compiler@2.6.14)(vue@2.6.14)': dependencies: fs-extra: 11.2.0 @@ -12098,6 +12085,10 @@ snapshots: extsprintf@1.3.0: {} + fake-art@0.0.1-alpha.1(vue@2.6.14): + dependencies: + vue: 2.6.14 + fast-deep-equal@3.1.3: {} fast-diff@1.3.0: {} @@ -15484,8 +15475,6 @@ snapshots: dependencies: prelude-ls: 1.2.1 - type-detect@4.0.8: {} - type-fest@0.21.3: {} type-fest@0.8.1: {}