From 223b79337ed07e16e250dcaa241d0c336b9152a3 Mon Sep 17 00:00:00 2001 From: azu Date: Fri, 4 Nov 2022 18:51:32 +0900 Subject: [PATCH] fix(deps): move @textlint/ast-node-types to dependencies (#19) --- package.json | 9 +++------ src/SourceLocation.ts | 2 +- src/textlint-rule-helper.ts | 2 +- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 7d79f0e..8282b9a 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,8 @@ }, "dependencies": { "structured-source": "^3.0.2", - "unist-util-visit": "^2.0.3" + "unist-util-visit": "^2.0.3", + "@textlint/ast-node-types": "^12.1.0" }, "devDependencies": { "@textlint/types": "^12.1.0", @@ -43,15 +44,11 @@ "typescript": "^4.5.4" }, "peerDependencies": { - "@textlint/types": "^12.1.0", - "@textlint/ast-node-types": "^12.1.0" + "@textlint/types": "^12.1.0" }, "peerDependenciesMeta": { "@textlint/types": { "optional": true - }, - "@textlint/ast-node-types": { - "optional": true } } } diff --git a/src/SourceLocation.ts b/src/SourceLocation.ts index 7bf086f..3dfbdb2 100644 --- a/src/SourceLocation.ts +++ b/src/SourceLocation.ts @@ -1,7 +1,7 @@ // LICENSE : MIT "use strict"; import SourceCode from "structured-source"; -import { TextlintRuleErrorPadding } from "@textlint/types"; +import type { TextlintRuleErrorPadding } from "@textlint/types"; import { AnyTxtNode } from "@textlint/ast-node-types"; export class SourceLocation { diff --git a/src/textlint-rule-helper.ts b/src/textlint-rule-helper.ts index 9e9f0d5..b2885f4 100644 --- a/src/textlint-rule-helper.ts +++ b/src/textlint-rule-helper.ts @@ -1,4 +1,4 @@ -import { TextlintRuleContext } from "@textlint/types" +import type { TextlintRuleContext } from "@textlint/types" import { ASTNodeTypes, TxtNode } from "@textlint/ast-node-types" /**