From 896b7e12190b3d6c60afc9435e59612ec6edb4c2 Mon Sep 17 00:00:00 2001 From: _Kerman Date: Sun, 11 Feb 2024 10:11:09 +0800 Subject: [PATCH] chore: update package.json --- package.json | 18 +++++++----------- pnpm-lock.yaml | 21 +++++++++------------ src/printer.ts | 1 - 3 files changed, 16 insertions(+), 24 deletions(-) diff --git a/package.json b/package.json index 2791800..18e3a09 100644 --- a/package.json +++ b/package.json @@ -3,13 +3,14 @@ "version": "0.0.1", "description": "A prettier plugin for Slidev", "main": "./dist/index.js", - "types": "./dist/index.d.mts", + "types": "./dist/index.d.ts", "type": "module", "keywords": [ "slidev", "prettier", - "plugin", "prettier-plugin", + "plugin", + "formatter", "format" ], "files": [ @@ -21,7 +22,7 @@ ".": { "default": "./dist/index.js", "import": "./dist/index.js", - "types": "./dist/index.d.mts" + "types": "./dist/index.d.ts" } }, "scripts": { @@ -30,21 +31,16 @@ "test": "vitest", "coverage": "vitest run --coverage" }, - "author": { - "name": "_Kerman", - "email": "kermanx@qq.com", - "url": "https://github.com/kermanx" - }, + "author": "_Kerman ", "license": "MIT", "peerDependencies": { "prettier": "^3.2.4" }, "dependencies": { - "@slidev/parser": "^0.47.2", - "js-yaml": "^4.1.0" + "@slidev/parser": "^0.47.4" }, "devDependencies": { - "@slidev/types": "^0.47.2", + "@slidev/types": "^0.47.4", "@types/js-yaml": "^4.0.9", "@types/node": "^20.11.15", "@vitest/coverage-istanbul": "^1.2.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3f973ff..086bbbb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -6,19 +6,16 @@ settings: dependencies: '@slidev/parser': - specifier: ^0.47.2 - version: 0.47.2 - js-yaml: - specifier: ^4.1.0 - version: 4.1.0 + specifier: ^0.47.4 + version: 0.47.4 prettier: specifier: ^3.2.4 version: 3.2.4 devDependencies: '@slidev/types': - specifier: ^0.47.2 - version: 0.47.2 + specifier: ^0.47.4 + version: 0.47.4 '@types/js-yaml': specifier: ^4.0.9 version: 4.0.9 @@ -730,16 +727,16 @@ packages: resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==} dev: true - /@slidev/parser@0.47.2: - resolution: {integrity: sha512-fIQpAlLPuSU3ceAWn0i43s+Cz8DufL9H+3cbJc/u2XZV5asojcQZLEkmUb/44lvq9GPBKfYkEYvqg0SO9xbMuw==} + /@slidev/parser@0.47.4: + resolution: {integrity: sha512-hm1lhAlBMa7sqgjLtcJtcaOrlMNhqImitFSr7Z4e77eDWPYNeIQ+FSxcB4lcHoMXG+rvKgHtyrDn06EqcWvfUg==} engines: {node: '>=18.0.0'} dependencies: - '@slidev/types': 0.47.2 + '@slidev/types': 0.47.4 js-yaml: 4.1.0 dev: false - /@slidev/types@0.47.2: - resolution: {integrity: sha512-SJNwBi/ax9+c7iJdHuh/IGnyo36oSYO3SFpt2kpd+DZaxaX7XL7NcqFS2c+kbCAEanBFxcW4JC4EJQO/v3qjow==} + /@slidev/types@0.47.4: + resolution: {integrity: sha512-V+kDQ2Uv/VWaPT0a6vd/XXb+ApH66hfGR3FF84EzOf3BoyT2o21kMUjHJPUXgDMimb+vxjZVMgGItH2oIu1FWw==} engines: {node: '>=18.0.0'} /@types/argparse@1.0.38: diff --git a/src/printer.ts b/src/printer.ts index f41de8c..87db3dd 100644 --- a/src/printer.ts +++ b/src/printer.ts @@ -1,5 +1,4 @@ import { SlideInfoBase } from "@slidev/types"; -import YAML from "js-yaml"; import type { Doc, Options, Printer } from "prettier"; import { ASTNode } from "./ast";