From 52f5ae8ce4fccd49cbea5cd015ceeaffb7b15dfa Mon Sep 17 00:00:00 2001 From: Artem Sapegin Date: Fri, 26 Jul 2024 11:56:57 +0200 Subject: [PATCH] fix: Clean up a few things --- package.json | 4 ++-- src/index.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 1beb65b..a2d1b98 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": "./out/index.js", "files": [ - "out", + "out/*.js", "terms.jsonc" ], "scripts": { @@ -42,6 +42,7 @@ "devDependencies": { "@textlint/ast-node-types": "^14.0.4", "@textlint/types": "^14.0.4", + "@types/lodash": "^4.17.7", "eslint": "^9.7.0", "eslint-config-tamia": "^9.1.8", "husky": "^9.1.2", @@ -52,7 +53,6 @@ "vitest": "^2.0.4" }, "dependencies": { - "@types/lodash": "^4.17.7", "lodash": "^4.17.21", "strip-json-comments": "^5.0.1", "textlint-rule-helper": "^2.3.1" diff --git a/src/index.ts b/src/index.ts index 379479f..991a84e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2,7 +2,7 @@ import fs from 'node:fs'; import { createRequire } from 'node:module'; import stripJsonComments from 'strip-json-comments'; import { RuleHelper } from 'textlint-rule-helper'; -import { upperFirst } from 'lodash'; +import upperFirst from 'lodash/upperFirst.js'; import type { TxtNode, TxtNodeType } from '@textlint/ast-node-types'; import type { TextlintFixableRuleModule,