From 52b9d55429e4390352aeac848f69dd3cf57e44d2 Mon Sep 17 00:00:00 2001 From: Jonghyeon Ko Date: Wed, 17 Apr 2024 12:16:39 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20packlint=EB=A1=9C=20package.json?= =?UTF-8?q?=EB=93=A4=EC=9D=84=20=EC=A0=95=EB=A0=AC=ED=95=A9=EB=8B=88?= =?UTF-8?q?=EB=8B=A4=20(#46)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/package.json | 10 +-- package.json | 68 +++++++------- packlint.config.mjs | 3 + yarn.lock | 212 +++++++++++++++++++++++++++++++++++++++++++- 4 files changed, 253 insertions(+), 40 deletions(-) create mode 100644 packlint.config.mjs diff --git a/docs/package.json b/docs/package.json index ea87263f..d69e373b 100644 --- a/docs/package.json +++ b/docs/package.json @@ -2,11 +2,12 @@ "name": "docs", "version": "0.1.0", "private": true, + "packageManager": "yarn@4.1.1", "scripts": { - "dev": "next dev", "build": "next build", - "start": "next start", - "lint": "next lint" + "dev": "next dev", + "lint": "next lint", + "start": "next start" }, "dependencies": { "next": "14.1.4", @@ -25,6 +26,5 @@ "postcss": "^8", "tailwindcss": "^3.3.0", "typescript": "^5" - }, - "packageManager": "yarn@4.1.1" + } } diff --git a/package.json b/package.json index d7722ab9..d9bb85d8 100644 --- a/package.json +++ b/package.json @@ -1,18 +1,21 @@ { "name": "es-hangul", - "workspaces": [ - ".", - "docs" - ], "version": "1.0.9", + "keywords": [ + "한글", + "한국어", + "텍스트 처리", + "초성 검색", + "조사 처리", + "문자 분해", + "한국어 처리", + "hangul", + "korean", + "text processing", + "korean-language" + ], "license": "MIT", - "scripts": { - "build": "tsup", - "typecheck": "tsc --noEmit", - "test": "vitest", - "changeset:publish": "changeset publish", - "changeset:version": "changeset version" - }, + "packageManager": "yarn@4.1.1", "exports": { ".": { "types": "./dist/index.d.ts", @@ -22,6 +25,21 @@ "./package.json": "./package.json" }, "main": "./dist/index.js", + "files": [ + "dist/*" + ], + "workspaces": [ + ".", + "docs" + ], + "scripts": { + "build": "tsup", + "changeset:publish": "changeset publish", + "changeset:version": "changeset version", + "packlint": "packlint sort -R", + "test": "vitest", + "typecheck": "tsc --noEmit" + }, "devDependencies": { "@changesets/changelog-github": "^0.5.0", "@changesets/cli": "^2.27.1", @@ -31,16 +49,16 @@ "@typescript-eslint/parser": "^5.39.0", "eslint": "^7", "eslint-config-prettier": "^8.5.0", + "packlint": "^0.2.4", "prettier": "^3.2.5", "tsup": "^8.0.2", "typescript": "^5.4.3", "vitest": "^1.4.0" }, - "files": [ - "dist/*" - ], "publishConfig": { "access": "public", + "main": "./dist/index.js", + "module": "./dist/index.mjs", "exports": { ".": { "require": "./dist/index.js", @@ -49,23 +67,7 @@ }, "./package.json": "./package.json" }, - "import": "./dist/index.mjs", - "main": "./dist/index.js", - "module": "./dist/index.mjs", - "types": "./dist/index.d.ts" - }, - "keywords": [ - "한글", - "한국어", - "텍스트 처리", - "초성 검색", - "조사 처리", - "문자 분해", - "한국어 처리", - "hangul", - "korean", - "text processing", - "korean-language" - ], - "packageManager": "yarn@4.1.1" + "types": "./dist/index.d.ts", + "import": "./dist/index.mjs" + } } diff --git a/packlint.config.mjs b/packlint.config.mjs new file mode 100644 index 00000000..72ee67c2 --- /dev/null +++ b/packlint.config.mjs @@ -0,0 +1,3 @@ +export default { + files: ['./docs/package.json', './package.json'], +}; diff --git a/yarn.lock b/yarn.lock index 2256372a..0f22eb7a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1148,6 +1148,43 @@ __metadata: languageName: node linkType: hard +"@packlint/command@npm:^0.2.0": + version: 0.2.0 + resolution: "@packlint/command@npm:0.2.0" + dependencies: + "@packlint/core": "npm:^0.2.0" + "@types/ramda": "npm:^0.28.20" + clipanion: "npm:^3.2.0-rc.13" + ramda: "npm:^0.28.0" + zod: "npm:3.19.1" + checksum: 10c0/69cc0d758a67cbad8df60a1fb5439eb74796a82eb3562142a5c0037ba426e3a47140b9617501f498aef0db861adb50ffe64dbd1ffb70b6fad838d292d4347d7f + languageName: node + linkType: hard + +"@packlint/core@npm:^0.2.0": + version: 0.2.0 + resolution: "@packlint/core@npm:0.2.0" + dependencies: + "@types/ramda": "npm:^0.28.20" + chalk: "npm:^5.2.0" + cosmiconfig: "npm:^7.0.1" + fast-glob: "npm:^3.2.12" + find-up: "npm:^6.3.0" + fs-extra: "npm:^10.1.0" + ramda: "npm:^0.28.0" + zod: "npm:^3.19.1" + peerDependencies: + fast-check: "*" + zod-fast-check: "*" + peerDependenciesMeta: + fast-check: + optional: true + zod-fast-check: + optional: true + checksum: 10c0/17f55c8445956b4e399c486d8c2b886b57f5faca71069183e24c75ff4fba932128c4a75e96c27a0faa160d034350162ab6243e0773992b86e6bc269b34662154 + languageName: node + linkType: hard + "@pkgjs/parseargs@npm:^0.11.0": version: 0.11.0 resolution: "@pkgjs/parseargs@npm:0.11.0" @@ -1496,6 +1533,13 @@ __metadata: languageName: node linkType: hard +"@types/parse-json@npm:^4.0.0": + version: 4.0.2 + resolution: "@types/parse-json@npm:4.0.2" + checksum: 10c0/b1b863ac34a2c2172fbe0807a1ec4d5cb684e48d422d15ec95980b81475fac4fdb3768a8b13eef39130203a7c04340fc167bae057c7ebcafd7dec9fe6c36aeb1 + languageName: node + linkType: hard + "@types/prop-types@npm:*": version: 15.7.12 resolution: "@types/prop-types@npm:15.7.12" @@ -1503,6 +1547,15 @@ __metadata: languageName: node linkType: hard +"@types/ramda@npm:^0.28.20": + version: 0.28.25 + resolution: "@types/ramda@npm:0.28.25" + dependencies: + ts-toolbelt: "npm:^6.15.1" + checksum: 10c0/4abb7c8539eadb11a62ddd80072363870bb33b189096a1dc71d2351ccba9796c26a43b79435312b8e1f3335ac7d5a77fc4deb2f5b747217bfdf262f519c9caf3 + languageName: node + linkType: hard + "@types/react-dom@npm:^18": version: 18.2.24 resolution: "@types/react-dom@npm:18.2.24" @@ -2434,6 +2487,13 @@ __metadata: languageName: node linkType: hard +"chalk@npm:^5.2.0": + version: 5.3.0 + resolution: "chalk@npm:5.3.0" + checksum: 10c0/8297d436b2c0f95801103ff2ef67268d362021b8210daf8ddbe349695333eb3610a71122172ff3b0272f1ef2cf7cc2c41fdaa4715f52e49ffe04c56340feed09 + languageName: node + linkType: hard + "character-entities-html4@npm:^2.0.0": version: 2.1.0 resolution: "character-entities-html4@npm:2.1.0" @@ -2525,6 +2585,17 @@ __metadata: languageName: node linkType: hard +"clipanion@npm:^3.2.0-rc.13": + version: 3.2.1 + resolution: "clipanion@npm:3.2.1" + dependencies: + typanion: "npm:^3.8.0" + peerDependencies: + typanion: "*" + checksum: 10c0/6c148bd01ae645031aeb6e9a1a16f3ce07eb754cd9981c91edcab82b09e063b805ac41e4f36039d07602334b6dbba036b030d1807c12acd7f90778a696b7ac6e + languageName: node + linkType: hard + "clipboardy@npm:1.2.2": version: 1.2.2 resolution: "clipboardy@npm:1.2.2" @@ -2654,6 +2725,19 @@ __metadata: languageName: node linkType: hard +"cosmiconfig@npm:^7.0.1": + version: 7.1.0 + resolution: "cosmiconfig@npm:7.1.0" + dependencies: + "@types/parse-json": "npm:^4.0.0" + import-fresh: "npm:^3.2.1" + parse-json: "npm:^5.0.0" + path-type: "npm:^4.0.0" + yaml: "npm:^1.10.0" + checksum: 10c0/b923ff6af581638128e5f074a5450ba12c0300b71302398ea38dbeabd33bbcaa0245ca9adbedfcf284a07da50f99ede5658c80bb3e39e2ce770a99d28a21ef03 + languageName: node + linkType: hard + "cross-spawn@npm:^5.0.1, cross-spawn@npm:^5.1.0": version: 5.1.0 resolution: "cross-spawn@npm:5.1.0" @@ -3555,6 +3639,7 @@ __metadata: "@typescript-eslint/parser": "npm:^5.39.0" eslint: "npm:^7" eslint-config-prettier: "npm:^8.5.0" + packlint: "npm:^0.2.4" prettier: "npm:^3.2.5" tsup: "npm:^8.0.2" typescript: "npm:^5.4.3" @@ -4359,7 +4444,7 @@ __metadata: languageName: node linkType: hard -"fast-glob@npm:^3.2.9, fast-glob@npm:^3.3.0, fast-glob@npm:^3.3.1": +"fast-glob@npm:^3.2.12, fast-glob@npm:^3.2.9, fast-glob@npm:^3.3.0, fast-glob@npm:^3.3.1": version: 3.3.2 resolution: "fast-glob@npm:3.3.2" dependencies: @@ -4433,6 +4518,16 @@ __metadata: languageName: node linkType: hard +"find-up@npm:^6.3.0": + version: 6.3.0 + resolution: "find-up@npm:6.3.0" + dependencies: + locate-path: "npm:^7.1.0" + path-exists: "npm:^5.0.0" + checksum: 10c0/07e0314362d316b2b13f7f11ea4692d5191e718ca3f7264110127520f3347996349bf9e16805abae3e196805814bc66ef4bff2b8904dc4a6476085fc9b0eba07 + languageName: node + linkType: hard + "find-yarn-workspace-root2@npm:1.2.16": version: 1.2.16 resolution: "find-yarn-workspace-root2@npm:1.2.16" @@ -4501,6 +4596,17 @@ __metadata: languageName: node linkType: hard +"fs-extra@npm:^10.1.0": + version: 10.1.0 + resolution: "fs-extra@npm:10.1.0" + dependencies: + graceful-fs: "npm:^4.2.0" + jsonfile: "npm:^6.0.1" + universalify: "npm:^2.0.0" + checksum: 10c0/5f579466e7109719d162a9249abbeffe7f426eb133ea486e020b89bc6d67a741134076bf439983f2eb79276ceaf6bd7b7c1e43c3fd67fe889863e69072fb0a5e + languageName: node + linkType: hard + "fs-extra@npm:^7.0.1": version: 7.0.1 resolution: "fs-extra@npm:7.0.1" @@ -5822,6 +5928,19 @@ __metadata: languageName: node linkType: hard +"jsonfile@npm:^6.0.1": + version: 6.1.0 + resolution: "jsonfile@npm:6.1.0" + dependencies: + graceful-fs: "npm:^4.1.6" + universalify: "npm:^2.0.0" + dependenciesMeta: + graceful-fs: + optional: true + checksum: 10c0/4f95b5e8a5622b1e9e8f33c96b7ef3158122f595998114d1e7f03985649ea99cb3cd99ce1ed1831ae94c8c8543ab45ebd044207612f31a56fd08462140e46865 + languageName: node + linkType: hard + "jsx-ast-utils@npm:^2.4.1 || ^3.0.0, jsx-ast-utils@npm:^3.3.5": version: 3.3.5 resolution: "jsx-ast-utils@npm:3.3.5" @@ -5976,6 +6095,15 @@ __metadata: languageName: node linkType: hard +"locate-path@npm:^7.1.0": + version: 7.2.0 + resolution: "locate-path@npm:7.2.0" + dependencies: + p-locate: "npm:^6.0.0" + checksum: 10c0/139e8a7fe11cfbd7f20db03923cacfa5db9e14fa14887ea121345597472b4a63c1a42a8a5187defeeff6acf98fd568da7382aa39682d38f0af27433953a97751 + languageName: node + linkType: hard + "lodash-es@npm:^4.17.21": version: 4.17.21 resolution: "lodash-es@npm:4.17.21" @@ -7660,6 +7788,15 @@ __metadata: languageName: node linkType: hard +"p-limit@npm:^4.0.0": + version: 4.0.0 + resolution: "p-limit@npm:4.0.0" + dependencies: + yocto-queue: "npm:^1.0.0" + checksum: 10c0/a56af34a77f8df2ff61ddfb29431044557fcbcb7642d5a3233143ebba805fc7306ac1d448de724352861cb99de934bc9ab74f0d16fe6a5460bdbdf938de875ad + languageName: node + linkType: hard + "p-limit@npm:^5.0.0": version: 5.0.0 resolution: "p-limit@npm:5.0.0" @@ -7687,6 +7824,15 @@ __metadata: languageName: node linkType: hard +"p-locate@npm:^6.0.0": + version: 6.0.0 + resolution: "p-locate@npm:6.0.0" + dependencies: + p-limit: "npm:^4.0.0" + checksum: 10c0/d72fa2f41adce59c198270aa4d3c832536c87a1806e0f69dffb7c1a7ca998fb053915ca833d90f166a8c082d3859eabfed95f01698a3214c20df6bb8de046312 + languageName: node + linkType: hard + "p-map@npm:^2.0.0": version: 2.1.0 resolution: "p-map@npm:2.1.0" @@ -7710,6 +7856,19 @@ __metadata: languageName: node linkType: hard +"packlint@npm:^0.2.4": + version: 0.2.4 + resolution: "packlint@npm:0.2.4" + dependencies: + "@packlint/command": "npm:^0.2.0" + "@packlint/core": "npm:^0.2.0" + clipanion: "npm:^3.2.0-rc.13" + bin: + packlint: bin/index.js + checksum: 10c0/8bb139c39ac3b6a4b66e089bb51fef2949bd66695ff1fb3b52f365b8b4bcf801821241b3530724ef9a6652f3c6ffd0dbe0459b380bb2d5804c514b1a812e1237 + languageName: node + linkType: hard + "parent-module@npm:^1.0.0": version: 1.0.1 resolution: "parent-module@npm:1.0.1" @@ -7788,6 +7947,13 @@ __metadata: languageName: node linkType: hard +"path-exists@npm:^5.0.0": + version: 5.0.0 + resolution: "path-exists@npm:5.0.0" + checksum: 10c0/b170f3060b31604cde93eefdb7392b89d832dfbc1bed717c9718cbe0f230c1669b7e75f87e19901da2250b84d092989a0f9e44d2ef41deb09aa3ad28e691a40a + languageName: node + linkType: hard + "path-is-absolute@npm:^1.0.0": version: 1.0.1 resolution: "path-is-absolute@npm:1.0.1" @@ -8144,6 +8310,13 @@ __metadata: languageName: node linkType: hard +"ramda@npm:^0.28.0": + version: 0.28.0 + resolution: "ramda@npm:0.28.0" + checksum: 10c0/0f9dc0cc3b0432ff047f1e2a5e58860c531a84574674c0f52fef535efc6e1e07fa3851102fff3da7dd551a592c743f6f6fa521379a6aa5fe50266f8af8f0b570 + languageName: node + linkType: hard + "react-dom@npm:^18": version: 18.2.0 resolution: "react-dom@npm:18.2.0" @@ -9487,6 +9660,13 @@ __metadata: languageName: node linkType: hard +"ts-toolbelt@npm:^6.15.1": + version: 6.15.5 + resolution: "ts-toolbelt@npm:6.15.5" + checksum: 10c0/c2c5cf77b006cbedb836abb260e9544aef268b0fc718e52db44600308ac6836c8c1824f57373ed72f920b92eb1daa78d1a9cec4c12368230a208e0723de9c2f0 + languageName: node + linkType: hard + "tsconfig-paths@npm:^3.15.0": version: 3.15.0 resolution: "tsconfig-paths@npm:3.15.0" @@ -9580,6 +9760,13 @@ __metadata: languageName: node linkType: hard +"typanion@npm:^3.8.0": + version: 3.14.0 + resolution: "typanion@npm:3.14.0" + checksum: 10c0/8b03b19844e6955bfd906c31dc781bae6d7f1fb3ce4fe24b7501557013d4889ae5cefe671dafe98d87ead0adceb8afcb8bc16df7dc0bd2b7331bac96f3a7cae2 + languageName: node + linkType: hard + "type-check@npm:^0.4.0, type-check@npm:~0.4.0": version: 0.4.0 resolution: "type-check@npm:0.4.0" @@ -9963,6 +10150,13 @@ __metadata: languageName: node linkType: hard +"universalify@npm:^2.0.0": + version: 2.0.1 + resolution: "universalify@npm:2.0.1" + checksum: 10c0/73e8ee3809041ca8b818efb141801a1004e3fc0002727f1531f4de613ea281b494a40909596dae4a042a4fb6cd385af5d4db2e137b1362e0e91384b828effd3a + languageName: node + linkType: hard + "update-browserslist-db@npm:^1.0.13": version: 1.0.13 resolution: "update-browserslist-db@npm:1.0.13" @@ -10462,6 +10656,13 @@ __metadata: languageName: node linkType: hard +"yaml@npm:^1.10.0": + version: 1.10.2 + resolution: "yaml@npm:1.10.2" + checksum: 10c0/5c28b9eb7adc46544f28d9a8d20c5b3cb1215a886609a2fd41f51628d8aaa5878ccd628b755dbcd29f6bb4921bd04ffbc6dcc370689bb96e594e2f9813d2605f + languageName: node + linkType: hard + "yaml@npm:^2.3.4": version: 2.4.1 resolution: "yaml@npm:2.4.1" @@ -10536,7 +10737,14 @@ __metadata: languageName: node linkType: hard -"zod@npm:^3.22.3": +"zod@npm:3.19.1": + version: 3.19.1 + resolution: "zod@npm:3.19.1" + checksum: 10c0/e08197793f26916f8abea40687fc968b2de0471049b29b7ff25825a9f28ba24205d1c5b8ad26df17538b051928192f9ef8f9ef3132aece9cb56f0830a7450c26 + languageName: node + linkType: hard + +"zod@npm:^3.19.1, zod@npm:^3.22.3": version: 3.22.4 resolution: "zod@npm:3.22.4" checksum: 10c0/7578ab283dac0eee66a0ad0fc4a7f28c43e6745aadb3a529f59a4b851aa10872b3890398b3160f257f4b6817b4ce643debdda4fb21a2c040adda7862cab0a587