From ff221f46fc41ceb8d9ede88bc0f9656cb5379bf9 Mon Sep 17 00:00:00 2001 From: Hyeonjong Date: Tue, 26 Sep 2023 22:16:09 +0900 Subject: [PATCH 01/17] chore: remove things related to vite --- package.json | 4 +- pnpm-lock.yaml | 637 ---------------------------------------------- src/vite-env.d.ts | 1 - vite.config.js | 26 -- 4 files changed, 1 insertion(+), 667 deletions(-) delete mode 100644 src/vite-env.d.ts delete mode 100644 vite.config.js diff --git a/package.json b/package.json index 98fe49f..99c01b9 100644 --- a/package.json +++ b/package.json @@ -54,9 +54,7 @@ "prettier-plugin-classnames": "0.1.1", "prettier-plugin-tailwindcss": "0.3.0", "ts-jest": "29.1.0", - "typescript": "4.9.5", - "vite": "4.3.9", - "vite-plugin-dts": "3.0.0-beta.2" + "typescript": "4.9.5" }, "peerDependencies": { "prettier": "~2.8.4" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 471bebc..0ee0f9d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -24,8 +24,6 @@ specifiers: prettier-plugin-tailwindcss: 0.3.0 ts-jest: 29.1.0 typescript: 4.9.5 - vite: 4.3.9 - vite-plugin-dts: 3.0.0-beta.2 dependencies: diff: 5.1.0 @@ -53,8 +51,6 @@ devDependencies: prettier-plugin-tailwindcss: 0.3.0_zmkqdpv3ldc45e6wei6qtrbrca ts-jest: 29.1.0_doipufordlnvh5g4adbwayvyvy typescript: 4.9.5 - vite: 4.3.9_@types+node@20.2.5 - vite-plugin-dts: 3.0.0-beta.2_6yd3dr4iiziaqkscqiabuqynye packages: @@ -434,204 +430,6 @@ packages: resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==} dev: true - /@esbuild/android-arm/0.17.19: - resolution: {integrity: sha512-rIKddzqhmav7MSmoFCmDIb6e2W57geRsM94gV2l38fzhXMwq7hZoClug9USI2pFRGL06f4IOPHHpFNOkWieR8A==} - engines: {node: '>=12'} - cpu: [arm] - os: [android] - requiresBuild: true - dev: true - optional: true - - /@esbuild/android-arm64/0.17.19: - resolution: {integrity: sha512-KBMWvEZooR7+kzY0BtbTQn0OAYY7CsiydT63pVEaPtVYF0hXbUaOyZog37DKxK7NF3XacBJOpYT4adIJh+avxA==} - engines: {node: '>=12'} - cpu: [arm64] - os: [android] - requiresBuild: true - dev: true - optional: true - - /@esbuild/android-x64/0.17.19: - resolution: {integrity: sha512-uUTTc4xGNDT7YSArp/zbtmbhO0uEEK9/ETW29Wk1thYUJBz3IVnvgEiEwEa9IeLyvnpKrWK64Utw2bgUmDveww==} - engines: {node: '>=12'} - cpu: [x64] - os: [android] - requiresBuild: true - dev: true - optional: true - - /@esbuild/darwin-arm64/0.17.19: - resolution: {integrity: sha512-80wEoCfF/hFKM6WE1FyBHc9SfUblloAWx6FJkFWTWiCoht9Mc0ARGEM47e67W9rI09YoUxJL68WHfDRYEAvOhg==} - engines: {node: '>=12'} - cpu: [arm64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - - /@esbuild/darwin-x64/0.17.19: - resolution: {integrity: sha512-IJM4JJsLhRYr9xdtLytPLSH9k/oxR3boaUIYiHkAawtwNOXKE8KoU8tMvryogdcT8AU+Bflmh81Xn6Q0vTZbQw==} - engines: {node: '>=12'} - cpu: [x64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - - /@esbuild/freebsd-arm64/0.17.19: - resolution: {integrity: sha512-pBwbc7DufluUeGdjSU5Si+P3SoMF5DQ/F/UmTSb8HXO80ZEAJmrykPyzo1IfNbAoaqw48YRpv8shwd1NoI0jcQ==} - engines: {node: '>=12'} - cpu: [arm64] - os: [freebsd] - requiresBuild: true - dev: true - optional: true - - /@esbuild/freebsd-x64/0.17.19: - resolution: {integrity: sha512-4lu+n8Wk0XlajEhbEffdy2xy53dpR06SlzvhGByyg36qJw6Kpfk7cp45DR/62aPH9mtJRmIyrXAS5UWBrJT6TQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [freebsd] - requiresBuild: true - dev: true - optional: true - - /@esbuild/linux-arm/0.17.19: - resolution: {integrity: sha512-cdmT3KxjlOQ/gZ2cjfrQOtmhG4HJs6hhvm3mWSRDPtZ/lP5oe8FWceS10JaSJC13GBd4eH/haHnqf7hhGNLerA==} - engines: {node: '>=12'} - cpu: [arm] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@esbuild/linux-arm64/0.17.19: - resolution: {integrity: sha512-ct1Tg3WGwd3P+oZYqic+YZF4snNl2bsnMKRkb3ozHmnM0dGWuxcPTTntAF6bOP0Sp4x0PjSF+4uHQ1xvxfRKqg==} - engines: {node: '>=12'} - cpu: [arm64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@esbuild/linux-ia32/0.17.19: - resolution: {integrity: sha512-w4IRhSy1VbsNxHRQpeGCHEmibqdTUx61Vc38APcsRbuVgK0OPEnQ0YD39Brymn96mOx48Y2laBQGqgZ0j9w6SQ==} - engines: {node: '>=12'} - cpu: [ia32] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@esbuild/linux-loong64/0.17.19: - resolution: {integrity: sha512-2iAngUbBPMq439a+z//gE+9WBldoMp1s5GWsUSgqHLzLJ9WoZLZhpwWuym0u0u/4XmZ3gpHmzV84PonE+9IIdQ==} - engines: {node: '>=12'} - cpu: [loong64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@esbuild/linux-mips64el/0.17.19: - resolution: {integrity: sha512-LKJltc4LVdMKHsrFe4MGNPp0hqDFA1Wpt3jE1gEyM3nKUvOiO//9PheZZHfYRfYl6AwdTH4aTcXSqBerX0ml4A==} - engines: {node: '>=12'} - cpu: [mips64el] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@esbuild/linux-ppc64/0.17.19: - resolution: {integrity: sha512-/c/DGybs95WXNS8y3Ti/ytqETiW7EU44MEKuCAcpPto3YjQbyK3IQVKfF6nbghD7EcLUGl0NbiL5Rt5DMhn5tg==} - engines: {node: '>=12'} - cpu: [ppc64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@esbuild/linux-riscv64/0.17.19: - resolution: {integrity: sha512-FC3nUAWhvFoutlhAkgHf8f5HwFWUL6bYdvLc/TTuxKlvLi3+pPzdZiFKSWz/PF30TB1K19SuCxDTI5KcqASJqA==} - engines: {node: '>=12'} - cpu: [riscv64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@esbuild/linux-s390x/0.17.19: - resolution: {integrity: sha512-IbFsFbxMWLuKEbH+7sTkKzL6NJmG2vRyy6K7JJo55w+8xDk7RElYn6xvXtDW8HCfoKBFK69f3pgBJSUSQPr+4Q==} - engines: {node: '>=12'} - cpu: [s390x] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@esbuild/linux-x64/0.17.19: - resolution: {integrity: sha512-68ngA9lg2H6zkZcyp22tsVt38mlhWde8l3eJLWkyLrp4HwMUr3c1s/M2t7+kHIhvMjglIBrFpncX1SzMckomGw==} - engines: {node: '>=12'} - cpu: [x64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@esbuild/netbsd-x64/0.17.19: - resolution: {integrity: sha512-CwFq42rXCR8TYIjIfpXCbRX0rp1jo6cPIUPSaWwzbVI4aOfX96OXY8M6KNmtPcg7QjYeDmN+DD0Wp3LaBOLf4Q==} - engines: {node: '>=12'} - cpu: [x64] - os: [netbsd] - requiresBuild: true - dev: true - optional: true - - /@esbuild/openbsd-x64/0.17.19: - resolution: {integrity: sha512-cnq5brJYrSZ2CF6c35eCmviIN3k3RczmHz8eYaVlNasVqsNY+JKohZU5MKmaOI+KkllCdzOKKdPs762VCPC20g==} - engines: {node: '>=12'} - cpu: [x64] - os: [openbsd] - requiresBuild: true - dev: true - optional: true - - /@esbuild/sunos-x64/0.17.19: - resolution: {integrity: sha512-vCRT7yP3zX+bKWFeP/zdS6SqdWB8OIpaRq/mbXQxTGHnIxspRtigpkUcDMlSCOejlHowLqII7K2JKevwyRP2rg==} - engines: {node: '>=12'} - cpu: [x64] - os: [sunos] - requiresBuild: true - dev: true - optional: true - - /@esbuild/win32-arm64/0.17.19: - resolution: {integrity: sha512-yYx+8jwowUstVdorcMdNlzklLYhPxjniHWFKgRqH7IFlUEa0Umu3KuYplf1HUZZ422e3NU9F4LGb+4O0Kdcaag==} - engines: {node: '>=12'} - cpu: [arm64] - os: [win32] - requiresBuild: true - dev: true - optional: true - - /@esbuild/win32-ia32/0.17.19: - resolution: {integrity: sha512-eggDKanJszUtCdlVs0RB+h35wNlb5v4TWEkq4vZcmVt5u/HiDZrTXe2bWFQUez3RgNHwx/x4sk5++4NSSicKkw==} - engines: {node: '>=12'} - cpu: [ia32] - os: [win32] - requiresBuild: true - dev: true - optional: true - - /@esbuild/win32-x64/0.17.19: - resolution: {integrity: sha512-lAhycmKnVOuRYNtRtatQR1LPQf2oYCkRGkSFnseDAKPl8lu5SOsK/e1sXe5a0Pc5kHIHe6P2I/ilntNv2xf3cA==} - engines: {node: '>=12'} - cpu: [x64] - os: [win32] - requiresBuild: true - dev: true - optional: true - /@eslint/eslintrc/2.0.3: resolution: {integrity: sha512-+5gy6OQfk+xx3q0d6jGZZC3f3KzAkXc/IanVxd1is/VIIziRqqt3ongQz0FiTUXqTk0c7aDB3OaFuKnuSoJicQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -937,49 +735,6 @@ packages: '@jridgewell/sourcemap-codec': 1.4.14 dev: true - /@microsoft/api-extractor-model/7.27.3_@types+node@20.2.5: - resolution: {integrity: sha512-fSFvw7otYHduOkyshjTbapKKgwF8bgquVHvgF8VgeKtMYvqXkoaj7W6VcM7PNY7E2bbblhUgC4XNdqZLD4SJGw==} - dependencies: - '@microsoft/tsdoc': 0.14.2 - '@microsoft/tsdoc-config': 0.16.2 - '@rushstack/node-core-library': 3.59.4_@types+node@20.2.5 - transitivePeerDependencies: - - '@types/node' - dev: true - - /@microsoft/api-extractor/7.36.0_@types+node@20.2.5: - resolution: {integrity: sha512-P+kYgJFDXIr+UNzhRMhlpM/dderi6ab4lxn35vdhfAIMPtGCSXIJxrrtpTOQmQW8CZtmoZX06LYoUsKCc1zjow==} - hasBin: true - dependencies: - '@microsoft/api-extractor-model': 7.27.3_@types+node@20.2.5 - '@microsoft/tsdoc': 0.14.2 - '@microsoft/tsdoc-config': 0.16.2 - '@rushstack/node-core-library': 3.59.4_@types+node@20.2.5 - '@rushstack/rig-package': 0.4.0 - '@rushstack/ts-command-line': 4.15.1 - colors: 1.2.5 - lodash: 4.17.21 - resolve: 1.22.2 - semver: 7.3.8 - source-map: 0.6.1 - typescript: 5.0.4 - transitivePeerDependencies: - - '@types/node' - dev: true - - /@microsoft/tsdoc-config/0.16.2: - resolution: {integrity: sha512-OGiIzzoBLgWWR0UdRJX98oYO+XKGf7tiK4Zk6tQ/E4IJqGCe7dvkTvgDZV5cFJUzLGDOjeAXrnZoA6QkVySuxw==} - dependencies: - '@microsoft/tsdoc': 0.14.2 - ajv: 6.12.6 - jju: 1.4.0 - resolve: 1.19.0 - dev: true - - /@microsoft/tsdoc/0.14.2: - resolution: {integrity: sha512-9b8mPpKrfeGRuhFH5iO1iwCLeIIsV6+H1sRfxbkoGXIyQE2BTsPd9zqSqQJ+pv5sJ/hT5M1zvOFL02MnEezFug==} - dev: true - /@nodelib/fs.scandir/2.1.5: resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} engines: {node: '>= 8'} @@ -1013,55 +768,6 @@ packages: tslib: 2.5.3 dev: true - /@rollup/pluginutils/5.0.2_rollup@3.23.0: - resolution: {integrity: sha512-pTd9rIsP92h+B6wWwFbW8RkZv4hiR/xKsqre4SIuAOaOEQRxi0lqLke9k2/7WegC85GgUs9pjmOjCUi3In4vwA==} - engines: {node: '>=14.0.0'} - peerDependencies: - rollup: ^1.20.0||^2.0.0||^3.0.0 - peerDependenciesMeta: - rollup: - optional: true - dependencies: - '@types/estree': 1.0.1 - estree-walker: 2.0.2 - picomatch: 2.3.1 - rollup: 3.23.0 - dev: true - - /@rushstack/node-core-library/3.59.4_@types+node@20.2.5: - resolution: {integrity: sha512-YAKJDC6Mz/KA1D7bvB88WaRX3knt/ZuLzkRu5G9QADGSjLtvTWzCNCytRF2PCSaaHOZaZsWul4F1KQdgFgUDqA==} - peerDependencies: - '@types/node': '*' - peerDependenciesMeta: - '@types/node': - optional: true - dependencies: - '@types/node': 20.2.5 - colors: 1.2.5 - fs-extra: 7.0.1 - import-lazy: 4.0.0 - jju: 1.4.0 - resolve: 1.22.2 - semver: 7.3.8 - z-schema: 5.0.5 - dev: true - - /@rushstack/rig-package/0.4.0: - resolution: {integrity: sha512-FnM1TQLJYwSiurP6aYSnansprK5l8WUK8VG38CmAaZs29ZeL1msjK0AP1VS4ejD33G0kE/2cpsPsS9jDenBMxw==} - dependencies: - resolve: 1.22.2 - strip-json-comments: 3.1.1 - dev: true - - /@rushstack/ts-command-line/4.15.1: - resolution: {integrity: sha512-EL4jxZe5fhb1uVL/P/wQO+Z8Rc8FMiWJ1G7VgnPDvdIt5GVjRfK7vwzder1CZQiX3x0PY6uxENYLNGTFd1InRQ==} - dependencies: - '@types/argparse': 1.0.38 - argparse: 1.0.10 - colors: 1.2.5 - string-argv: 0.3.2 - dev: true - /@sinclair/typebox/0.25.24: resolution: {integrity: sha512-XJfwUVUKDHF5ugKwIcxEgc9k8b7HbznCp6eUfWgu710hMPNIO4aw4/zB5RogDQz8nd6gyCDpU9O/m6qYEWY6yQ==} dev: true @@ -1098,10 +804,6 @@ packages: - supports-color dev: true - /@types/argparse/1.0.38: - resolution: {integrity: sha512-ebDJ9b0e702Yr7pWgB0jzm+CX4Srzz8RcXtLJDJB+BSccqMa36uyH/zUsSYao5+BD1ytv3k3rPYCq4mAE1hsXA==} - dev: true - /@types/babel__core/7.20.1: resolution: {integrity: sha512-aACu/U/omhdk15O4Nfb+fHgH/z3QsfQzpnvRZhYhThms83ZnAOZz7zZAWO7mn2yyNQaA4xTO8GLK3uqFU4bYYw==} dependencies: @@ -1135,10 +837,6 @@ packages: resolution: {integrity: sha512-amrLbRqTU9bXMCc6uX0sWpxsQzRIo9z6MJPkH1pkez/qOxuqSZVuryJAWoBRq94CeG8JxY+VK4Le9HtjQR5T9A==} dev: true - /@types/estree/1.0.1: - resolution: {integrity: sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA==} - dev: true - /@types/graceful-fs/4.1.6: resolution: {integrity: sha512-Sig0SNORX9fdW+bQuTEovKj3uHcUL6LQKbCrrqb1X7J6/ReAbhCXRAhc+SMejhLELFj2QcyuxmUooZ4bt5ReSw==} dependencies: @@ -1332,78 +1030,6 @@ packages: eslint-visitor-keys: 3.4.1 dev: true - /@volar/language-core/1.7.10: - resolution: {integrity: sha512-18Gmth5M0UI3hDDqhZngjMnb6WCslcfglkOdepRIhGxRYe7xR7DRRzciisYDMZsvOQxDYme+uaohg0dKUxLV2Q==} - dependencies: - '@volar/source-map': 1.7.10 - dev: true - - /@volar/source-map/1.7.10: - resolution: {integrity: sha512-FBpLEOKJpRxeh2nYbw1mTI5sZOPXYU8LlsCz6xuBY3yNtAizDTTIZtBHe1V8BaMpoSMgRysZe4gVxMEi3rDGVA==} - dependencies: - muggle-string: 0.3.1 - dev: true - - /@volar/typescript/1.7.10: - resolution: {integrity: sha512-yqIov4wndLU3GE1iE25bU5W6T+P+exPePcE1dFPPBKzQIBki1KvmdQN5jBlJp3Wo+wp7UIxa/RsdNkXT+iFBjg==} - dependencies: - '@volar/language-core': 1.7.10 - dev: true - - /@vue/compiler-core/3.3.4: - resolution: {integrity: sha512-cquyDNvZ6jTbf/+x+AgM2Arrp6G4Dzbb0R64jiG804HRMfRiFXWI6kqUVqZ6ZR0bQhIoQjB4+2bhNtVwndW15g==} - dependencies: - '@babel/parser': 7.22.4 - '@vue/shared': 3.3.4 - estree-walker: 2.0.2 - source-map-js: 1.0.2 - dev: true - - /@vue/compiler-dom/3.3.4: - resolution: {integrity: sha512-wyM+OjOVpuUukIq6p5+nwHYtj9cFroz9cwkfmP9O1nzH68BenTTv0u7/ndggT8cIQlnBeOo6sUT/gvHcIkLA5w==} - dependencies: - '@vue/compiler-core': 3.3.4 - '@vue/shared': 3.3.4 - dev: true - - /@vue/language-core/1.8.3_typescript@4.9.5: - resolution: {integrity: sha512-AzhvMYoQkK/tg8CpAAttO19kx1zjS3+weYIr2AhlH/M5HebVzfftQoq4jZNFifjq+hyLKi8j9FiDMS8oqA89+A==} - peerDependencies: - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - dependencies: - '@volar/language-core': 1.7.10 - '@volar/source-map': 1.7.10 - '@vue/compiler-dom': 3.3.4 - '@vue/reactivity': 3.3.4 - '@vue/shared': 3.3.4 - minimatch: 9.0.2 - muggle-string: 0.3.1 - typescript: 4.9.5 - vue-template-compiler: 2.7.14 - dev: true - - /@vue/reactivity/3.3.4: - resolution: {integrity: sha512-kLTDLwd0B1jG08NBF3R5rqULtv/f8x3rOFByTDz4J53ttIQEDmALqKqXY0J+XQeN0aV2FBxY8nJDf88yvOPAqQ==} - dependencies: - '@vue/shared': 3.3.4 - dev: true - - /@vue/shared/3.3.4: - resolution: {integrity: sha512-7OjdcV8vQ74eiz1TZLzZP4JwqM5fA94K6yntPS5Z25r9HDuGNzaGdgvwKYq6S+MxwF0TFRwe50fIR/MYnakdkQ==} - dev: true - - /@vue/typescript/1.8.3_typescript@4.9.5: - resolution: {integrity: sha512-6bdgSnIFpRYHlt70pHmnmNksPU00bfXgqAISeaNz3W6d2cH0OTfH8h/IhligQ82sJIhsuyfftQJ5518ZuKIhtA==} - dependencies: - '@volar/typescript': 1.7.10 - '@vue/language-core': 1.8.3_typescript@4.9.5 - transitivePeerDependencies: - - typescript - dev: true - /acorn-jsx/5.3.2_acorn@8.8.2: resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} peerDependencies: @@ -1619,12 +1245,6 @@ packages: concat-map: 0.0.1 dev: true - /brace-expansion/2.0.1: - resolution: {integrity: sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==} - dependencies: - balanced-match: 1.0.2 - dev: true - /braces/3.0.2: resolution: {integrity: sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==} engines: {node: '>=8'} @@ -1769,18 +1389,6 @@ packages: resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} dev: true - /colors/1.2.5: - resolution: {integrity: sha512-erNRLao/Y3Fv54qUa0LBB+//Uf3YwMUmdJinN20yMXm9zdKKqH9wt7R9IIVZ+K7ShzfpLV/Zg8+VyrBJYB4lpg==} - engines: {node: '>=0.1.90'} - dev: true - - /commander/9.5.0: - resolution: {integrity: sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==} - engines: {node: ^12.20.0 || >=14} - requiresBuild: true - dev: true - optional: true - /concat-map/0.0.1: resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} dev: true @@ -1806,10 +1414,6 @@ packages: which: 2.0.2 dev: true - /de-indent/1.0.2: - resolution: {integrity: sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==} - dev: true - /debug/3.2.7: resolution: {integrity: sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==} peerDependencies: @@ -2003,36 +1607,6 @@ packages: is-symbol: 1.0.4 dev: true - /esbuild/0.17.19: - resolution: {integrity: sha512-XQ0jAPFkK/u3LcVRcvVHQcTIqD6E2H1fvZMA5dQPSOWb3suUbWbfbRf94pjc0bNzRYLfIrDRQXr7X+LHIm5oHw==} - engines: {node: '>=12'} - hasBin: true - requiresBuild: true - optionalDependencies: - '@esbuild/android-arm': 0.17.19 - '@esbuild/android-arm64': 0.17.19 - '@esbuild/android-x64': 0.17.19 - '@esbuild/darwin-arm64': 0.17.19 - '@esbuild/darwin-x64': 0.17.19 - '@esbuild/freebsd-arm64': 0.17.19 - '@esbuild/freebsd-x64': 0.17.19 - '@esbuild/linux-arm': 0.17.19 - '@esbuild/linux-arm64': 0.17.19 - '@esbuild/linux-ia32': 0.17.19 - '@esbuild/linux-loong64': 0.17.19 - '@esbuild/linux-mips64el': 0.17.19 - '@esbuild/linux-ppc64': 0.17.19 - '@esbuild/linux-riscv64': 0.17.19 - '@esbuild/linux-s390x': 0.17.19 - '@esbuild/linux-x64': 0.17.19 - '@esbuild/netbsd-x64': 0.17.19 - '@esbuild/openbsd-x64': 0.17.19 - '@esbuild/sunos-x64': 0.17.19 - '@esbuild/win32-arm64': 0.17.19 - '@esbuild/win32-ia32': 0.17.19 - '@esbuild/win32-x64': 0.17.19 - dev: true - /escalade/3.1.1: resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==} engines: {node: '>=6'} @@ -2309,10 +1883,6 @@ packages: engines: {node: '>=4.0'} dev: true - /estree-walker/2.0.2: - resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==} - dev: true - /esutils/2.0.3: resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} engines: {node: '>=0.10.0'} @@ -2447,15 +2017,6 @@ packages: is-callable: 1.2.7 dev: true - /fs-extra/7.0.1: - resolution: {integrity: sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==} - engines: {node: '>=6 <7 || >=8'} - dependencies: - graceful-fs: 4.2.11 - jsonfile: 4.0.0 - universalify: 0.1.2 - dev: true - /fs.realpath/1.0.0: resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} dev: true @@ -2654,11 +2215,6 @@ packages: function-bind: 1.1.1 dev: true - /he/1.2.0: - resolution: {integrity: sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==} - hasBin: true - dev: true - /html-escaper/2.0.2: resolution: {integrity: sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==} dev: true @@ -2686,11 +2242,6 @@ packages: resolve-from: 4.0.0 dev: true - /import-lazy/4.0.0: - resolution: {integrity: sha512-rKtvo6a868b5Hu3heneU+L4yEQ4jYKLtjpnPeUdK7h0yzXGmyBTypknlkCvHFBqfX9YlorEiMM6Dnq/5atfHkw==} - engines: {node: '>=8'} - dev: true - /import-local/3.1.0: resolution: {integrity: sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==} engines: {node: '>=8'} @@ -3358,10 +2909,6 @@ packages: - ts-node dev: true - /jju/1.4.0: - resolution: {integrity: sha512-8wb9Yw966OSxApiCt0K3yNJL8pnNeIv+OEq2YMidz4FKP6nonSRoOXc80iXY4JaN2FC11B9qsNmDsm+ZOfMROA==} - dev: true - /js-sdsl/4.4.0: resolution: {integrity: sha512-FfVSdx6pJ41Oa+CF7RDaFmTnCaFhua+SNYQX74riGOpl96x+2jQCqEfQ2bnXu/5DPCqlRuiqyvTJM0Qjz26IVg==} dev: true @@ -3416,21 +2963,11 @@ packages: hasBin: true dev: true - /jsonfile/4.0.0: - resolution: {integrity: sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==} - optionalDependencies: - graceful-fs: 4.2.11 - dev: true - /kleur/3.0.3: resolution: {integrity: sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==} engines: {node: '>=6'} dev: true - /kolorist/1.8.0: - resolution: {integrity: sha512-Y+60/zizpJ3HRH8DCss+q95yr6145JXZo46OTpFvDZWLfRCE4qChOyk1b26nMaNpfHHgxagk9dXT5OP0Tfe+dQ==} - dev: true - /leven/3.1.0: resolution: {integrity: sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==} engines: {node: '>=6'} @@ -3462,14 +2999,6 @@ packages: p-locate: 5.0.0 dev: true - /lodash.get/4.4.2: - resolution: {integrity: sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==} - dev: true - - /lodash.isequal/4.5.0: - resolution: {integrity: sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==} - dev: true - /lodash.memoize/4.1.2: resolution: {integrity: sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==} dev: true @@ -3545,13 +3074,6 @@ packages: brace-expansion: 1.1.11 dev: true - /minimatch/9.0.2: - resolution: {integrity: sha512-PZOT9g5v2ojiTL7r1xF6plNHLtOeTpSlDI007As2NlA2aYBMfVom17yqa6QzhmDP8QOhn7LjHTg7DFCVSSa6yg==} - engines: {node: '>=16 || 14 >=14.17'} - dependencies: - brace-expansion: 2.0.1 - dev: true - /minimist/1.2.8: resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} dev: true @@ -3560,16 +3082,6 @@ packages: resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} dev: true - /muggle-string/0.3.1: - resolution: {integrity: sha512-ckmWDJjphvd/FvZawgygcUeQCxzvohjFO5RxTjj4eq8kw359gFF3E1brjfI+viLMxss5JrHTDRHZvu2/tuy0Qg==} - dev: true - - /nanoid/3.3.6: - resolution: {integrity: sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==} - engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} - hasBin: true - dev: true - /natural-compare-lite/1.4.0: resolution: {integrity: sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==} dev: true @@ -3784,15 +3296,6 @@ packages: find-up: 4.1.0 dev: true - /postcss/8.4.24: - resolution: {integrity: sha512-M0RzbcI0sO/XJNucsGjvWU9ERWxb/ytp1w6dKtxTKgixdtQDq4rmx/g8W1hnaheq9jgwL/oyEdH5Bc4WwJKMqg==} - engines: {node: ^10 || ^12 || >=14} - dependencies: - nanoid: 3.3.6 - picocolors: 1.0.0 - source-map-js: 1.0.2 - dev: true - /prelude-ls/1.2.1: resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} engines: {node: '>= 0.8.0'} @@ -3976,13 +3479,6 @@ packages: engines: {node: '>=10'} dev: true - /resolve/1.19.0: - resolution: {integrity: sha512-rArEXAgsBG4UgRGcynxWIWKFvh/XZCcS8UJdHhwy91zwAvCZIbcs+vAbflgBnNjYMs/i/i+/Ux6IZhML1yPvxg==} - dependencies: - is-core-module: 2.12.1 - path-parse: 1.0.7 - dev: true - /resolve/1.22.2: resolution: {integrity: sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g==} hasBin: true @@ -4004,14 +3500,6 @@ packages: glob: 7.2.3 dev: true - /rollup/3.23.0: - resolution: {integrity: sha512-h31UlwEi7FHihLe1zbk+3Q7z1k/84rb9BSwmBSr/XjOCEaBJ2YyedQDuM0t/kfOS0IxM+vk1/zI9XxYj9V+NJQ==} - engines: {node: '>=14.18.0', npm: '>=8.0.0'} - hasBin: true - optionalDependencies: - fsevents: 2.3.2 - dev: true - /run-applescript/5.0.0: resolution: {integrity: sha512-XcT5rBksx1QdIhlFOCtgZkB99ZEouFZ1E2Kc2LHqNW13U3/74YGdkQRmThTwxy4QIyookibDKYZOPqX//6BlAg==} engines: {node: '>=12'} @@ -4038,14 +3526,6 @@ packages: hasBin: true dev: true - /semver/7.3.8: - resolution: {integrity: sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==} - engines: {node: '>=10'} - hasBin: true - dependencies: - lru-cache: 6.0.0 - dev: true - /semver/7.5.1: resolution: {integrity: sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==} engines: {node: '>=10'} @@ -4092,11 +3572,6 @@ packages: engines: {node: '>=12'} dev: true - /source-map-js/1.0.2: - resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==} - engines: {node: '>=0.10.0'} - dev: true - /source-map-support/0.5.13: resolution: {integrity: sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==} dependencies: @@ -4125,11 +3600,6 @@ packages: escape-string-regexp: 2.0.0 dev: true - /string-argv/0.3.2: - resolution: {integrity: sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==} - engines: {node: '>=0.6.19'} - dev: true - /string-length/4.0.2: resolution: {integrity: sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==} engines: {node: '>=10'} @@ -4373,12 +3843,6 @@ packages: hasBin: true dev: true - /typescript/5.0.4: - resolution: {integrity: sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==} - engines: {node: '>=12.20'} - hasBin: true - dev: true - /unbox-primitive/1.0.2: resolution: {integrity: sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==} dependencies: @@ -4388,11 +3852,6 @@ packages: which-boxed-primitive: 1.0.2 dev: true - /universalify/0.1.2: - resolution: {integrity: sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==} - engines: {node: '>= 4.0.0'} - dev: true - /untildify/4.0.0: resolution: {integrity: sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==} engines: {node: '>=8'} @@ -4424,90 +3883,6 @@ packages: convert-source-map: 1.9.0 dev: true - /validator/13.9.0: - resolution: {integrity: sha512-B+dGG8U3fdtM0/aNK4/X8CXq/EcxU2WPrPEkJGslb47qyHsxmbggTWK0yEA4qnYVNF+nxNlN88o14hIcPmSIEA==} - engines: {node: '>= 0.10'} - dev: true - - /vite-plugin-dts/3.0.0-beta.2_6yd3dr4iiziaqkscqiabuqynye: - resolution: {integrity: sha512-8Ua+MyljJeXWYerMvvbX8voFyc+kCMG49F6rCQ6QRD2eVVMkbZkDoafVjbwWogmipSVirKS8zCBMN5WckXmyxg==} - engines: {node: ^14.18.0 || >=16.0.0} - peerDependencies: - typescript: '*' - dependencies: - '@microsoft/api-extractor': 7.36.0_@types+node@20.2.5 - '@rollup/pluginutils': 5.0.2_rollup@3.23.0 - '@rushstack/node-core-library': 3.59.4_@types+node@20.2.5 - '@vue/language-core': 1.8.3_typescript@4.9.5 - debug: 4.3.4 - kolorist: 1.8.0 - typescript: 4.9.5 - vue-tsc: 1.8.3_typescript@4.9.5 - optionalDependencies: - rollup: 3.23.0 - vite: 4.3.9_@types+node@20.2.5 - transitivePeerDependencies: - - '@types/node' - - less - - sass - - stylus - - sugarss - - supports-color - - terser - dev: true - - /vite/4.3.9_@types+node@20.2.5: - resolution: {integrity: sha512-qsTNZjO9NoJNW7KnOrgYwczm0WctJ8m/yqYAMAK9Lxt4SoySUfS5S8ia9K7JHpa3KEeMfyF8LoJ3c5NeBJy6pg==} - engines: {node: ^14.18.0 || >=16.0.0} - hasBin: true - peerDependencies: - '@types/node': '>= 14' - less: '*' - sass: '*' - stylus: '*' - sugarss: '*' - terser: ^5.4.0 - peerDependenciesMeta: - '@types/node': - optional: true - less: - optional: true - sass: - optional: true - stylus: - optional: true - sugarss: - optional: true - terser: - optional: true - dependencies: - '@types/node': 20.2.5 - esbuild: 0.17.19 - postcss: 8.4.24 - rollup: 3.23.0 - optionalDependencies: - fsevents: 2.3.2 - dev: true - - /vue-template-compiler/2.7.14: - resolution: {integrity: sha512-zyA5Y3ArvVG0NacJDkkzJuPQDF8RFeRlzV2vLeSnhSpieO6LK2OVbdLPi5MPPs09Ii+gMO8nY4S3iKQxBxDmWQ==} - dependencies: - de-indent: 1.0.2 - he: 1.2.0 - dev: true - - /vue-tsc/1.8.3_typescript@4.9.5: - resolution: {integrity: sha512-Ua4DHuYxjudlhCW2nRZtaXbhIDVncRGIbDjZhHpF8Z8vklct/G/35/kAPuGNSOmq0JcvhPAe28Oa7LWaUerZVA==} - hasBin: true - peerDependencies: - typescript: '*' - dependencies: - '@vue/language-core': 1.8.3_typescript@4.9.5 - '@vue/typescript': 1.8.3_typescript@4.9.5 - semver: 7.5.1 - typescript: 4.9.5 - dev: true - /walker/1.0.8: resolution: {integrity: sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==} dependencies: @@ -4605,15 +3980,3 @@ packages: resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} engines: {node: '>=10'} dev: true - - /z-schema/5.0.5: - resolution: {integrity: sha512-D7eujBWkLa3p2sIpJA0d1pr7es+a7m0vFAnZLlCEKq/Ij2k0MLi9Br2UPxoxdYystm5K1yeBGzub0FlYUEWj2Q==} - engines: {node: '>=8.0.0'} - hasBin: true - dependencies: - lodash.get: 4.4.2 - lodash.isequal: 4.5.0 - validator: 13.9.0 - optionalDependencies: - commander: 9.5.0 - dev: true diff --git a/src/vite-env.d.ts b/src/vite-env.d.ts deleted file mode 100644 index 11f02fe..0000000 --- a/src/vite-env.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/vite.config.js b/vite.config.js deleted file mode 100644 index 6789b58..0000000 --- a/vite.config.js +++ /dev/null @@ -1,26 +0,0 @@ -import { resolve } from 'path'; -import { defineConfig } from 'vite'; -import dts from 'vite-plugin-dts'; - -export default defineConfig({ - build: { - lib: { - entry: resolve(__dirname, 'src/index.ts'), - name: 'PrettierPluginMerge', - fileName: 'prettier-plugin-merge', - }, - rollupOptions: { - external: [/^prettier/], - output: { - globals: { - prettier: 'prettier', - }, - }, - }, - }, - plugins: [ - dts({ - include: ['src/**'], - }), - ], -}); From dbce1646bd4164a7eec7fd868192349c2743dd32 Mon Sep 17 00:00:00 2001 From: Hyeonjong Date: Tue, 26 Sep 2023 23:24:17 +0900 Subject: [PATCH 02/17] chore: adopt turborepo structure --- .gitignore | 6 ++ .vscode/settings.json | 3 +- package.json | 2 + pnpm-lock.yaml | 165 +++++++++++++++++++++++++++++------------- pnpm-workspace.yaml | 2 + turbo.json | 4 + 6 files changed, 130 insertions(+), 52 deletions(-) create mode 100644 pnpm-workspace.yaml create mode 100644 turbo.json diff --git a/.gitignore b/.gitignore index 788a253..3a69278 100644 --- a/.gitignore +++ b/.gitignore @@ -258,3 +258,9 @@ dist-ssr *.njsproj *.sln *.sw? + +# turbo +.turbo + +# vercel +.vercel diff --git a/.vscode/settings.json b/.vscode/settings.json index 9bf4d12..a83edc9 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,5 @@ { "editor.defaultFormatter": "esbenp.prettier-vscode", - "editor.formatOnSave": true + "editor.formatOnSave": true, + "eslint.workingDirectories": [{ "mode": "auto" }] } diff --git a/package.json b/package.json index 99c01b9..451f372 100644 --- a/package.json +++ b/package.json @@ -1,4 +1,5 @@ { + "private": true, "name": "prettier-plugin-merge", "version": "0.2.1", "description": "A Prettier plugin that sequentially applies the formatting results of other Prettier plugins.", @@ -54,6 +55,7 @@ "prettier-plugin-classnames": "0.1.1", "prettier-plugin-tailwindcss": "0.3.0", "ts-jest": "29.1.0", + "turbo": "1.10.14", "typescript": "4.9.5" }, "peerDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0ee0f9d..3b33f95 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,56 +1,59 @@ lockfileVersion: 5.4 -specifiers: - '@trivago/prettier-plugin-sort-imports': 4.1.1 - '@types/diff': 5.0.3 - '@types/jest': 29.5.2 - '@types/node': 20.2.5 - '@typescript-eslint/eslint-plugin': 5.54.0 - '@typescript-eslint/parser': 5.54.0 - diff: 5.1.0 - eslint: 8.35.0 - eslint-config-airbnb-base: 15.0.0 - eslint-config-airbnb-typescript: 17.0.0 - eslint-config-prettier: 8.6.0 - eslint-import-resolver-node: 0.3.7 - eslint-import-resolver-typescript: 3.5.3 - eslint-plugin-import: 2.27.5 - jest: 29.5.0 - ppm-012: npm:prettier-plugin-merge@0.1.2 - ppm-020: npm:prettier-plugin-merge@0.2.0 - prettier: ~2.8.4 - prettier-plugin-brace-style: 0.2.1 - prettier-plugin-classnames: 0.1.1 - prettier-plugin-tailwindcss: 0.3.0 - ts-jest: 29.1.0 - typescript: 4.9.5 - -dependencies: - diff: 5.1.0 - -devDependencies: - '@trivago/prettier-plugin-sort-imports': 4.1.1_prettier@2.8.4 - '@types/diff': 5.0.3 - '@types/jest': 29.5.2 - '@types/node': 20.2.5 - '@typescript-eslint/eslint-plugin': 5.54.0_6mj2wypvdnknez7kws2nfdgupi - '@typescript-eslint/parser': 5.54.0_ycpbpc6yetojsgtrx3mwntkhsu - eslint: 8.35.0 - eslint-config-airbnb-base: 15.0.0_yckic57kx266ph64dhq6ozvb54 - eslint-config-airbnb-typescript: 17.0.0_ljtlaqjgwrmro7jha4unrm7hxu - eslint-config-prettier: 8.6.0_eslint@8.35.0 - eslint-import-resolver-node: 0.3.7 - eslint-import-resolver-typescript: 3.5.3_yckic57kx266ph64dhq6ozvb54 - eslint-plugin-import: 2.27.5_tqrcrxlenpngfto46ddarus52y - jest: 29.5.0_@types+node@20.2.5 - ppm-012: /prettier-plugin-merge/0.1.2_prettier@2.8.4 - ppm-020: /prettier-plugin-merge/0.2.0_prettier@2.8.4 - prettier: 2.8.4 - prettier-plugin-brace-style: 0.2.1_prettier@2.8.4 - prettier-plugin-classnames: 0.1.1_prettier@2.8.4 - prettier-plugin-tailwindcss: 0.3.0_zmkqdpv3ldc45e6wei6qtrbrca - ts-jest: 29.1.0_doipufordlnvh5g4adbwayvyvy - typescript: 4.9.5 +importers: + + .: + specifiers: + '@trivago/prettier-plugin-sort-imports': 4.1.1 + '@types/diff': 5.0.3 + '@types/jest': 29.5.2 + '@types/node': 20.2.5 + '@typescript-eslint/eslint-plugin': 5.54.0 + '@typescript-eslint/parser': 5.54.0 + diff: 5.1.0 + eslint: 8.35.0 + eslint-config-airbnb-base: 15.0.0 + eslint-config-airbnb-typescript: 17.0.0 + eslint-config-prettier: 8.6.0 + eslint-import-resolver-node: 0.3.7 + eslint-import-resolver-typescript: 3.5.3 + eslint-plugin-import: 2.27.5 + jest: 29.5.0 + ppm-012: npm:prettier-plugin-merge@0.1.2 + ppm-020: npm:prettier-plugin-merge@0.2.0 + prettier: ~2.8.4 + prettier-plugin-brace-style: 0.2.1 + prettier-plugin-classnames: 0.1.1 + prettier-plugin-tailwindcss: 0.3.0 + ts-jest: 29.1.0 + turbo: 1.10.14 + typescript: 4.9.5 + dependencies: + diff: 5.1.0 + devDependencies: + '@trivago/prettier-plugin-sort-imports': 4.1.1_prettier@2.8.4 + '@types/diff': 5.0.3 + '@types/jest': 29.5.2 + '@types/node': 20.2.5 + '@typescript-eslint/eslint-plugin': 5.54.0_6mj2wypvdnknez7kws2nfdgupi + '@typescript-eslint/parser': 5.54.0_ycpbpc6yetojsgtrx3mwntkhsu + eslint: 8.35.0 + eslint-config-airbnb-base: 15.0.0_yckic57kx266ph64dhq6ozvb54 + eslint-config-airbnb-typescript: 17.0.0_ljtlaqjgwrmro7jha4unrm7hxu + eslint-config-prettier: 8.6.0_eslint@8.35.0 + eslint-import-resolver-node: 0.3.7 + eslint-import-resolver-typescript: 3.5.3_yckic57kx266ph64dhq6ozvb54 + eslint-plugin-import: 2.27.5_tqrcrxlenpngfto46ddarus52y + jest: 29.5.0_@types+node@20.2.5 + ppm-012: /prettier-plugin-merge/0.1.2_prettier@2.8.4 + ppm-020: /prettier-plugin-merge/0.2.0_prettier@2.8.4 + prettier: 2.8.4 + prettier-plugin-brace-style: 0.2.1_prettier@2.8.4 + prettier-plugin-classnames: 0.1.1_prettier@2.8.4 + prettier-plugin-tailwindcss: 0.3.0_zmkqdpv3ldc45e6wei6qtrbrca + ts-jest: 29.1.0_doipufordlnvh5g4adbwayvyvy + turbo: 1.10.14 + typescript: 4.9.5 packages: @@ -3807,6 +3810,66 @@ packages: typescript: 4.9.5 dev: true + /turbo-darwin-64/1.10.14: + resolution: {integrity: sha512-I8RtFk1b9UILAExPdG/XRgGQz95nmXPE7OiGb6ytjtNIR5/UZBS/xVX/7HYpCdmfriKdVwBKhalCoV4oDvAGEg==} + cpu: [x64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + /turbo-darwin-arm64/1.10.14: + resolution: {integrity: sha512-KAdUWryJi/XX7OD0alOuOa0aJ5TLyd4DNIYkHPHYcM6/d7YAovYvxRNwmx9iv6Vx6IkzTnLeTiUB8zy69QkG9Q==} + cpu: [arm64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + /turbo-linux-64/1.10.14: + resolution: {integrity: sha512-BOBzoREC2u4Vgpap/WDxM6wETVqVMRcM8OZw4hWzqCj2bqbQ6L0wxs1LCLWVrghQf93JBQtIGAdFFLyCSBXjWQ==} + cpu: [x64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /turbo-linux-arm64/1.10.14: + resolution: {integrity: sha512-D8T6XxoTdN5D4V5qE2VZG+/lbZX/89BkAEHzXcsSUTRjrwfMepT3d2z8aT6hxv4yu8EDdooZq/2Bn/vjMI32xw==} + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /turbo-windows-64/1.10.14: + resolution: {integrity: sha512-zKNS3c1w4i6432N0cexZ20r/aIhV62g69opUn82FLVs/zk3Ie0GVkSB6h0rqIvMalCp7enIR87LkPSDGz9K4UA==} + cpu: [x64] + os: [win32] + requiresBuild: true + dev: true + optional: true + + /turbo-windows-arm64/1.10.14: + resolution: {integrity: sha512-rkBwrTPTxNSOUF7of8eVvvM+BkfkhA2OvpHM94if8tVsU+khrjglilp8MTVPHlyS9byfemPAmFN90oRIPB05BA==} + cpu: [arm64] + os: [win32] + requiresBuild: true + dev: true + optional: true + + /turbo/1.10.14: + resolution: {integrity: sha512-hr9wDNYcsee+vLkCDIm8qTtwhJ6+UAMJc3nIY6+PNgUTtXcQgHxCq8BGoL7gbABvNWv76CNbK5qL4Lp9G3ZYRA==} + hasBin: true + optionalDependencies: + turbo-darwin-64: 1.10.14 + turbo-darwin-arm64: 1.10.14 + turbo-linux-64: 1.10.14 + turbo-linux-arm64: 1.10.14 + turbo-windows-64: 1.10.14 + turbo-windows-arm64: 1.10.14 + dev: true + /type-check/0.4.0: resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} engines: {node: '>= 0.8.0'} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml new file mode 100644 index 0000000..18ec407 --- /dev/null +++ b/pnpm-workspace.yaml @@ -0,0 +1,2 @@ +packages: + - 'packages/*' diff --git a/turbo.json b/turbo.json new file mode 100644 index 0000000..22f09fd --- /dev/null +++ b/turbo.json @@ -0,0 +1,4 @@ +{ + "$schema": "https://turbo.build/schema.json", + "pipeline": {} +} From ab9dd15bbe3a71fd758fc88f6bc84b65b30da24b Mon Sep 17 00:00:00 2001 From: Hyeonjong Date: Wed, 27 Sep 2023 00:02:26 +0900 Subject: [PATCH 03/17] chore: update missing package.json in dbce164 --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 451f372..4c1be0b 100644 --- a/package.json +++ b/package.json @@ -60,5 +60,6 @@ }, "peerDependencies": { "prettier": "~2.8.4" - } + }, + "packageManager": "pnpm@7.33.0" } From a78a2accd07c23f00188ce79f3301d6b8d71d493 Mon Sep 17 00:00:00 2001 From: Hyeonjong Date: Wed, 27 Sep 2023 00:11:36 +0900 Subject: [PATCH 04/17] chore: create tsconfig workspace --- package.json | 1 + packages/tsconfig/base.json | 21 +++++++++++++++++++++ packages/tsconfig/package.json | 7 +++++++ pnpm-lock.yaml | 5 +++++ tsconfig.json | 20 +------------------- 5 files changed, 35 insertions(+), 19 deletions(-) create mode 100644 packages/tsconfig/base.json create mode 100644 packages/tsconfig/package.json diff --git a/package.json b/package.json index 4c1be0b..bbd05c7 100644 --- a/package.json +++ b/package.json @@ -55,6 +55,7 @@ "prettier-plugin-classnames": "0.1.1", "prettier-plugin-tailwindcss": "0.3.0", "ts-jest": "29.1.0", + "tsconfig": "workspace:*", "turbo": "1.10.14", "typescript": "4.9.5" }, diff --git a/packages/tsconfig/base.json b/packages/tsconfig/base.json new file mode 100644 index 0000000..56effb3 --- /dev/null +++ b/packages/tsconfig/base.json @@ -0,0 +1,21 @@ +{ + "compilerOptions": { + "target": "es2015", + "lib": ["dom", "dom.iterable", "esnext"], + "skipLibCheck": true, + "strict": true, + "forceConsistentCasingInFileNames": true, + "noEmit": true, + "esModuleInterop": true, + "module": "esnext", + "moduleResolution": "node", + "resolveJsonModule": true, + "isolatedModules": true, + "baseUrl": ".", + "paths": { + "@/*": ["./src/*"] + } + }, + "include": ["**/*.ts", "**/*.tsx"], + "exclude": ["node_modules"] +} diff --git a/packages/tsconfig/package.json b/packages/tsconfig/package.json new file mode 100644 index 0000000..34fa57d --- /dev/null +++ b/packages/tsconfig/package.json @@ -0,0 +1,7 @@ +{ + "private": true, + "name": "tsconfig", + "version": "0.0.0", + "author": "Hyeonjong ", + "license": "MIT" +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3b33f95..122f677 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -26,6 +26,7 @@ importers: prettier-plugin-classnames: 0.1.1 prettier-plugin-tailwindcss: 0.3.0 ts-jest: 29.1.0 + tsconfig: workspace:* turbo: 1.10.14 typescript: 4.9.5 dependencies: @@ -52,9 +53,13 @@ importers: prettier-plugin-classnames: 0.1.1_prettier@2.8.4 prettier-plugin-tailwindcss: 0.3.0_zmkqdpv3ldc45e6wei6qtrbrca ts-jest: 29.1.0_doipufordlnvh5g4adbwayvyvy + tsconfig: link:packages/tsconfig turbo: 1.10.14 typescript: 4.9.5 + packages/tsconfig: + specifiers: {} + packages: /@ampproject/remapping/2.2.1: diff --git a/tsconfig.json b/tsconfig.json index ae28623..6b7962d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,21 +1,3 @@ { - "compilerOptions": { - "target": "ES2015", - "lib": ["ESNext", "DOM", "DOM.Iterable"], - "skipLibCheck": true, - "strict": true, - "forceConsistentCasingInFileNames": true, - "noEmit": true, - "esModuleInterop": true, - "module": "ESNext", - "moduleResolution": "node", - "resolveJsonModule": true, - "isolatedModules": true, - "baseUrl": ".", - "paths": { - "@/*": ["./src/*"] - } - }, - "include": ["**/*.ts", "**/*.tsx"], - "exclude": ["node_modules"] + "extends": "tsconfig/base.json" } From 41857547665f964a007aa99d27ab0de2a1d4e47d Mon Sep 17 00:00:00 2001 From: Hyeonjong Date: Wed, 27 Sep 2023 00:45:35 +0900 Subject: [PATCH 05/17] chore: create eslint-config-custom workspace --- .eslintignore | 3 -- .eslintrc.json | 25 -------------- package.json | 8 ----- packages/eslint-config-custom/base.js | 30 ++++++++++++++++ packages/eslint-config-custom/package.json | 19 ++++++++++ pnpm-lock.yaml | 40 +++++++++++++--------- 6 files changed, 73 insertions(+), 52 deletions(-) delete mode 100644 .eslintignore delete mode 100644 .eslintrc.json create mode 100644 packages/eslint-config-custom/base.js create mode 100644 packages/eslint-config-custom/package.json diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index bd2db57..0000000 --- a/.eslintignore +++ /dev/null @@ -1,3 +0,0 @@ -**/*.*js -**/*.jsx -**/*.d.ts diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index f27862e..0000000 --- a/.eslintrc.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "extends": ["airbnb-base", "airbnb-typescript/base", "prettier"], - "parserOptions": { - "project": "./tsconfig.json" - }, - "plugins": ["import"], - "settings": { - "import/parsers": { - "@typescript-eslint/parser": [".ts", ".mts", ".cts", ".d.ts"] - }, - "import/resolver": { - "node": { - "extensions": [".js", ".ts"] - }, - "typescript": { - "alwaysTryTypes": true - } - } - }, - "rules": { - "@typescript-eslint/no-loop-func": 0, - "import/prefer-default-export": 0, - "no-restricted-syntax": 0 - } -} diff --git a/package.json b/package.json index bbd05c7..92f8c28 100644 --- a/package.json +++ b/package.json @@ -38,15 +38,7 @@ "@types/diff": "5.0.3", "@types/jest": "29.5.2", "@types/node": "20.2.5", - "@typescript-eslint/eslint-plugin": "5.54.0", - "@typescript-eslint/parser": "5.54.0", "eslint": "8.35.0", - "eslint-config-airbnb-base": "15.0.0", - "eslint-config-airbnb-typescript": "17.0.0", - "eslint-config-prettier": "8.6.0", - "eslint-import-resolver-node": "0.3.7", - "eslint-import-resolver-typescript": "3.5.3", - "eslint-plugin-import": "2.27.5", "jest": "29.5.0", "ppm-012": "npm:prettier-plugin-merge@0.1.2", "ppm-020": "npm:prettier-plugin-merge@0.2.0", diff --git a/packages/eslint-config-custom/base.js b/packages/eslint-config-custom/base.js new file mode 100644 index 0000000..e135f8a --- /dev/null +++ b/packages/eslint-config-custom/base.js @@ -0,0 +1,30 @@ +const { resolve } = require('node:path'); + +const project = resolve(process.cwd(), 'tsconfig.json'); + +module.exports = { + extends: ['airbnb-base', 'airbnb-typescript/base', 'prettier'], + parserOptions: { + project, + }, + plugins: ['import'], + settings: { + 'import/parsers': { + '@typescript-eslint/parser': ['.ts', '.mts', '.cts', '.d.ts'], + }, + 'import/resolver': { + node: { + extensions: ['.js', '.ts'], + }, + typescript: { + alwaysTryTypes: true, + }, + }, + }, + ignorePatterns: ['**/*.*js', '**/*.jsx', '**/*.d.ts'], + rules: { + '@typescript-eslint/no-loop-func': 0, + 'import/prefer-default-export': 0, + 'no-restricted-syntax': 0, + }, +}; diff --git a/packages/eslint-config-custom/package.json b/packages/eslint-config-custom/package.json new file mode 100644 index 0000000..6609bbb --- /dev/null +++ b/packages/eslint-config-custom/package.json @@ -0,0 +1,19 @@ +{ + "private": true, + "name": "eslint-config-custom", + "version": "0.0.0", + "author": "Hyeonjong ", + "license": "MIT", + "devDependencies": { + "@typescript-eslint/eslint-plugin": "5.54.0", + "@typescript-eslint/parser": "5.54.0", + "eslint": "8.35.0", + "eslint-config-airbnb-base": "15.0.0", + "eslint-config-airbnb-typescript": "17.0.0", + "eslint-config-prettier": "8.6.0", + "eslint-import-resolver-node": "0.3.7", + "eslint-import-resolver-typescript": "3.5.3", + "eslint-plugin-import": "2.27.5", + "typescript": "4.9.5" + } +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 122f677..9fb4bda 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,16 +8,8 @@ importers: '@types/diff': 5.0.3 '@types/jest': 29.5.2 '@types/node': 20.2.5 - '@typescript-eslint/eslint-plugin': 5.54.0 - '@typescript-eslint/parser': 5.54.0 diff: 5.1.0 eslint: 8.35.0 - eslint-config-airbnb-base: 15.0.0 - eslint-config-airbnb-typescript: 17.0.0 - eslint-config-prettier: 8.6.0 - eslint-import-resolver-node: 0.3.7 - eslint-import-resolver-typescript: 3.5.3 - eslint-plugin-import: 2.27.5 jest: 29.5.0 ppm-012: npm:prettier-plugin-merge@0.1.2 ppm-020: npm:prettier-plugin-merge@0.2.0 @@ -36,15 +28,7 @@ importers: '@types/diff': 5.0.3 '@types/jest': 29.5.2 '@types/node': 20.2.5 - '@typescript-eslint/eslint-plugin': 5.54.0_6mj2wypvdnknez7kws2nfdgupi - '@typescript-eslint/parser': 5.54.0_ycpbpc6yetojsgtrx3mwntkhsu eslint: 8.35.0 - eslint-config-airbnb-base: 15.0.0_yckic57kx266ph64dhq6ozvb54 - eslint-config-airbnb-typescript: 17.0.0_ljtlaqjgwrmro7jha4unrm7hxu - eslint-config-prettier: 8.6.0_eslint@8.35.0 - eslint-import-resolver-node: 0.3.7 - eslint-import-resolver-typescript: 3.5.3_yckic57kx266ph64dhq6ozvb54 - eslint-plugin-import: 2.27.5_tqrcrxlenpngfto46ddarus52y jest: 29.5.0_@types+node@20.2.5 ppm-012: /prettier-plugin-merge/0.1.2_prettier@2.8.4 ppm-020: /prettier-plugin-merge/0.2.0_prettier@2.8.4 @@ -57,6 +41,30 @@ importers: turbo: 1.10.14 typescript: 4.9.5 + packages/eslint-config-custom: + specifiers: + '@typescript-eslint/eslint-plugin': 5.54.0 + '@typescript-eslint/parser': 5.54.0 + eslint: 8.35.0 + eslint-config-airbnb-base: 15.0.0 + eslint-config-airbnb-typescript: 17.0.0 + eslint-config-prettier: 8.6.0 + eslint-import-resolver-node: 0.3.7 + eslint-import-resolver-typescript: 3.5.3 + eslint-plugin-import: 2.27.5 + typescript: 4.9.5 + devDependencies: + '@typescript-eslint/eslint-plugin': 5.54.0_6mj2wypvdnknez7kws2nfdgupi + '@typescript-eslint/parser': 5.54.0_ycpbpc6yetojsgtrx3mwntkhsu + eslint: 8.35.0 + eslint-config-airbnb-base: 15.0.0_yckic57kx266ph64dhq6ozvb54 + eslint-config-airbnb-typescript: 17.0.0_ljtlaqjgwrmro7jha4unrm7hxu + eslint-config-prettier: 8.6.0_eslint@8.35.0 + eslint-import-resolver-node: 0.3.7 + eslint-import-resolver-typescript: 3.5.3_yckic57kx266ph64dhq6ozvb54 + eslint-plugin-import: 2.27.5_tqrcrxlenpngfto46ddarus52y + typescript: 4.9.5 + packages/tsconfig: specifiers: {} From 46578486c1a57a510515b8c59c9685c86616076a Mon Sep 17 00:00:00 2001 From: Hyeonjong Date: Thu, 28 Sep 2023 19:09:49 +0900 Subject: [PATCH 06/17] chore(tsconfig): update base.json --- packages/tsconfig/base.json | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/tsconfig/base.json b/packages/tsconfig/base.json index 56effb3..5f25c5d 100644 --- a/packages/tsconfig/base.json +++ b/packages/tsconfig/base.json @@ -10,12 +10,7 @@ "module": "esnext", "moduleResolution": "node", "resolveJsonModule": true, - "isolatedModules": true, - "baseUrl": ".", - "paths": { - "@/*": ["./src/*"] - } + "isolatedModules": true }, - "include": ["**/*.ts", "**/*.tsx"], "exclude": ["node_modules"] } From c7c6f71a7e62d9f71d7ac9ac1809c5559d6183e8 Mon Sep 17 00:00:00 2001 From: Hyeonjong Date: Thu, 28 Sep 2023 20:31:37 +0900 Subject: [PATCH 07/17] chore: create v2-plugin workspace --- package.json | 4 ---- packages/v2-plugin/.eslintrc.js | 3 +++ {src => packages/v2-plugin}/index.ts | 0 packages/v2-plugin/package.json | 18 ++++++++++++++++++ {src => packages/v2-plugin}/parsers.ts | 0 {src => packages/v2-plugin}/printers.ts | 0 packages/v2-plugin/tsconfig.json | 4 ++++ pnpm-lock.yaml | 25 +++++++++++++++++++------ 8 files changed, 44 insertions(+), 10 deletions(-) create mode 100644 packages/v2-plugin/.eslintrc.js rename {src => packages/v2-plugin}/index.ts (100%) create mode 100644 packages/v2-plugin/package.json rename {src => packages/v2-plugin}/parsers.ts (100%) rename {src => packages/v2-plugin}/printers.ts (100%) create mode 100644 packages/v2-plugin/tsconfig.json diff --git a/package.json b/package.json index 92f8c28..1d22582 100644 --- a/package.json +++ b/package.json @@ -30,12 +30,8 @@ "lint": "eslint src", "test": "pnpm run build && jest --ci --passWithNoTests" }, - "dependencies": { - "diff": "5.1.0" - }, "devDependencies": { "@trivago/prettier-plugin-sort-imports": "4.1.1", - "@types/diff": "5.0.3", "@types/jest": "29.5.2", "@types/node": "20.2.5", "eslint": "8.35.0", diff --git a/packages/v2-plugin/.eslintrc.js b/packages/v2-plugin/.eslintrc.js new file mode 100644 index 0000000..63d1173 --- /dev/null +++ b/packages/v2-plugin/.eslintrc.js @@ -0,0 +1,3 @@ +module.exports = { + extends: ['custom/base'], +}; diff --git a/src/index.ts b/packages/v2-plugin/index.ts similarity index 100% rename from src/index.ts rename to packages/v2-plugin/index.ts diff --git a/packages/v2-plugin/package.json b/packages/v2-plugin/package.json new file mode 100644 index 0000000..a107bae --- /dev/null +++ b/packages/v2-plugin/package.json @@ -0,0 +1,18 @@ +{ + "private": true, + "name": "v2-plugin", + "version": "0.0.0", + "author": "Hyeonjong ", + "license": "MIT", + "dependencies": { + "diff": "5.1.0", + "prettier": "2.8.4" + }, + "devDependencies": { + "@types/diff": "5.0.3", + "eslint": "8.35.0", + "eslint-config-custom": "workspace:*", + "tsconfig": "workspace:*", + "typescript": "4.9.5" + } +} diff --git a/src/parsers.ts b/packages/v2-plugin/parsers.ts similarity index 100% rename from src/parsers.ts rename to packages/v2-plugin/parsers.ts diff --git a/src/printers.ts b/packages/v2-plugin/printers.ts similarity index 100% rename from src/printers.ts rename to packages/v2-plugin/printers.ts diff --git a/packages/v2-plugin/tsconfig.json b/packages/v2-plugin/tsconfig.json new file mode 100644 index 0000000..8ff23b9 --- /dev/null +++ b/packages/v2-plugin/tsconfig.json @@ -0,0 +1,4 @@ +{ + "extends": "tsconfig/base.json", + "include": ["."] +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9fb4bda..6115f2a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5,10 +5,8 @@ importers: .: specifiers: '@trivago/prettier-plugin-sort-imports': 4.1.1 - '@types/diff': 5.0.3 '@types/jest': 29.5.2 '@types/node': 20.2.5 - diff: 5.1.0 eslint: 8.35.0 jest: 29.5.0 ppm-012: npm:prettier-plugin-merge@0.1.2 @@ -21,11 +19,8 @@ importers: tsconfig: workspace:* turbo: 1.10.14 typescript: 4.9.5 - dependencies: - diff: 5.1.0 devDependencies: '@trivago/prettier-plugin-sort-imports': 4.1.1_prettier@2.8.4 - '@types/diff': 5.0.3 '@types/jest': 29.5.2 '@types/node': 20.2.5 eslint: 8.35.0 @@ -68,6 +63,25 @@ importers: packages/tsconfig: specifiers: {} + packages/v2-plugin: + specifiers: + '@types/diff': 5.0.3 + diff: 5.1.0 + eslint: 8.35.0 + eslint-config-custom: workspace:* + prettier: 2.8.4 + tsconfig: workspace:* + typescript: 4.9.5 + dependencies: + diff: 5.1.0 + prettier: 2.8.4 + devDependencies: + '@types/diff': 5.0.3 + eslint: 8.35.0 + eslint-config-custom: link:../eslint-config-custom + tsconfig: link:../tsconfig + typescript: 4.9.5 + packages: /@ampproject/remapping/2.2.1: @@ -3414,7 +3428,6 @@ packages: resolution: {integrity: sha512-vIS4Rlc2FNh0BySk3Wkd6xmwxB0FpOndW5fisM5H8hsZSxU2VWVB5CWIkIjWvrHjIhxk2g3bfMKM87zNTrZddw==} engines: {node: '>=10.13.0'} hasBin: true - dev: true /pretty-format/29.5.0: resolution: {integrity: sha512-V2mGkI31qdttvTFX7Mt4efOqHXqJWMu4/r66Xh3Z3BwZaPfPJgp6/gbwoujRpPUtfEF6AUUWx3Jim3GCw5g/Qw==} From ca2814881627ac9c12dbfcf9c522ca4a4bec0625 Mon Sep 17 00:00:00 2001 From: Hyeonjong Date: Thu, 28 Sep 2023 21:04:15 +0900 Subject: [PATCH 08/17] chore: add cli command --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 1d22582..195d807 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ } }, "scripts": { + "clean": "pnpm -r exec rm -rf node_modules", "dev": "vite build --watch --minify=false", "build": "vite build", "lint": "eslint src", From b3c1d1e2bc7ac9274f0474b0983d99e3d6a5aa73 Mon Sep 17 00:00:00 2001 From: Hyeonjong Date: Thu, 28 Sep 2023 23:17:01 +0900 Subject: [PATCH 09/17] chore: create test-suite workspace --- package.json | 11 +- packages/test-suite/.eslintrc.js | 3 + .../test-suite}/babel/multiple-plugin.test.ts | 0 .../test-suite}/babel/others.test.ts | 0 .../test-suite}/babel/performance/Callout.jsx | 0 .../babel/performance/index.test.ts | 0 .../test-suite}/babel/plugin-less.test.ts | 0 .../test-suite}/babel/single-plugin.test.ts | 0 .../test-suite/jest.config.cjs | 3 - packages/test-suite/package.json | 30 +++++ {tests => packages/test-suite}/settings.ts | 0 packages/test-suite/tsconfig.json | 4 + .../typescript/multiple-plugin.test.ts | 0 .../test-suite}/typescript/others.test.ts | 0 .../typescript/performance/Callout.tsx | 0 .../typescript/performance/index.test.ts | 0 .../typescript/plugin-less.test.ts | 0 .../typescript/single-plugin.test.ts | 0 pnpm-lock.yaml | 107 ++++++++---------- turbo.json | 4 +- 20 files changed, 86 insertions(+), 76 deletions(-) create mode 100644 packages/test-suite/.eslintrc.js rename {tests => packages/test-suite}/babel/multiple-plugin.test.ts (100%) rename {tests => packages/test-suite}/babel/others.test.ts (100%) rename {tests => packages/test-suite}/babel/performance/Callout.jsx (100%) rename {tests => packages/test-suite}/babel/performance/index.test.ts (100%) rename {tests => packages/test-suite}/babel/plugin-less.test.ts (100%) rename {tests => packages/test-suite}/babel/single-plugin.test.ts (100%) rename jest.config.cjs => packages/test-suite/jest.config.cjs (66%) create mode 100644 packages/test-suite/package.json rename {tests => packages/test-suite}/settings.ts (100%) create mode 100644 packages/test-suite/tsconfig.json rename {tests => packages/test-suite}/typescript/multiple-plugin.test.ts (100%) rename {tests => packages/test-suite}/typescript/others.test.ts (100%) rename {tests => packages/test-suite}/typescript/performance/Callout.tsx (100%) rename {tests => packages/test-suite}/typescript/performance/index.test.ts (100%) rename {tests => packages/test-suite}/typescript/plugin-less.test.ts (100%) rename {tests => packages/test-suite}/typescript/single-plugin.test.ts (100%) diff --git a/package.json b/package.json index 195d807..75d3d42 100644 --- a/package.json +++ b/package.json @@ -29,21 +29,12 @@ "dev": "vite build --watch --minify=false", "build": "vite build", "lint": "eslint src", - "test": "pnpm run build && jest --ci --passWithNoTests" + "test": "turbo run test" }, "devDependencies": { "@trivago/prettier-plugin-sort-imports": "4.1.1", - "@types/jest": "29.5.2", - "@types/node": "20.2.5", "eslint": "8.35.0", - "jest": "29.5.0", - "ppm-012": "npm:prettier-plugin-merge@0.1.2", - "ppm-020": "npm:prettier-plugin-merge@0.2.0", "prettier": "~2.8.4", - "prettier-plugin-brace-style": "0.2.1", - "prettier-plugin-classnames": "0.1.1", - "prettier-plugin-tailwindcss": "0.3.0", - "ts-jest": "29.1.0", "tsconfig": "workspace:*", "turbo": "1.10.14", "typescript": "4.9.5" diff --git a/packages/test-suite/.eslintrc.js b/packages/test-suite/.eslintrc.js new file mode 100644 index 0000000..63d1173 --- /dev/null +++ b/packages/test-suite/.eslintrc.js @@ -0,0 +1,3 @@ +module.exports = { + extends: ['custom/base'], +}; diff --git a/tests/babel/multiple-plugin.test.ts b/packages/test-suite/babel/multiple-plugin.test.ts similarity index 100% rename from tests/babel/multiple-plugin.test.ts rename to packages/test-suite/babel/multiple-plugin.test.ts diff --git a/tests/babel/others.test.ts b/packages/test-suite/babel/others.test.ts similarity index 100% rename from tests/babel/others.test.ts rename to packages/test-suite/babel/others.test.ts diff --git a/tests/babel/performance/Callout.jsx b/packages/test-suite/babel/performance/Callout.jsx similarity index 100% rename from tests/babel/performance/Callout.jsx rename to packages/test-suite/babel/performance/Callout.jsx diff --git a/tests/babel/performance/index.test.ts b/packages/test-suite/babel/performance/index.test.ts similarity index 100% rename from tests/babel/performance/index.test.ts rename to packages/test-suite/babel/performance/index.test.ts diff --git a/tests/babel/plugin-less.test.ts b/packages/test-suite/babel/plugin-less.test.ts similarity index 100% rename from tests/babel/plugin-less.test.ts rename to packages/test-suite/babel/plugin-less.test.ts diff --git a/tests/babel/single-plugin.test.ts b/packages/test-suite/babel/single-plugin.test.ts similarity index 100% rename from tests/babel/single-plugin.test.ts rename to packages/test-suite/babel/single-plugin.test.ts diff --git a/jest.config.cjs b/packages/test-suite/jest.config.cjs similarity index 66% rename from jest.config.cjs rename to packages/test-suite/jest.config.cjs index da513ce..3745fc2 100644 --- a/jest.config.cjs +++ b/packages/test-suite/jest.config.cjs @@ -1,8 +1,5 @@ /** @type {import('ts-jest').JestConfigWithTsJest} */ module.exports = { preset: 'ts-jest', - moduleNameMapper: { - '^@/(.*)$': '/src/$1', - }, testEnvironment: 'node', }; diff --git a/packages/test-suite/package.json b/packages/test-suite/package.json new file mode 100644 index 0000000..73133a0 --- /dev/null +++ b/packages/test-suite/package.json @@ -0,0 +1,30 @@ +{ + "private": true, + "name": "test-suite", + "version": "0.0.0", + "author": "Hyeonjong ", + "license": "MIT", + "scripts": { + "test": "jest --ci --passWithNoTests" + }, + "dependencies": { + "@trivago/prettier-plugin-sort-imports": "4.1.1", + "ppm-012": "npm:prettier-plugin-merge@0.1.2", + "ppm-020": "npm:prettier-plugin-merge@0.2.0", + "prettier": "2.8.4", + "prettier-plugin-brace-style": "0.2.1", + "prettier-plugin-classnames": "0.1.1", + "prettier-plugin-tailwindcss": "0.3.0", + "v2-plugin": "workspace:*" + }, + "devDependencies": { + "@types/jest": "29.5.2", + "@types/node": "20.2.5", + "eslint": "8.35.0", + "eslint-config-custom": "workspace:*", + "jest": "29.5.0", + "ts-jest": "29.1.0", + "tsconfig": "workspace:*", + "typescript": "4.9.5" + } +} diff --git a/tests/settings.ts b/packages/test-suite/settings.ts similarity index 100% rename from tests/settings.ts rename to packages/test-suite/settings.ts diff --git a/packages/test-suite/tsconfig.json b/packages/test-suite/tsconfig.json new file mode 100644 index 0000000..8ff23b9 --- /dev/null +++ b/packages/test-suite/tsconfig.json @@ -0,0 +1,4 @@ +{ + "extends": "tsconfig/base.json", + "include": ["."] +} diff --git a/tests/typescript/multiple-plugin.test.ts b/packages/test-suite/typescript/multiple-plugin.test.ts similarity index 100% rename from tests/typescript/multiple-plugin.test.ts rename to packages/test-suite/typescript/multiple-plugin.test.ts diff --git a/tests/typescript/others.test.ts b/packages/test-suite/typescript/others.test.ts similarity index 100% rename from tests/typescript/others.test.ts rename to packages/test-suite/typescript/others.test.ts diff --git a/tests/typescript/performance/Callout.tsx b/packages/test-suite/typescript/performance/Callout.tsx similarity index 100% rename from tests/typescript/performance/Callout.tsx rename to packages/test-suite/typescript/performance/Callout.tsx diff --git a/tests/typescript/performance/index.test.ts b/packages/test-suite/typescript/performance/index.test.ts similarity index 100% rename from tests/typescript/performance/index.test.ts rename to packages/test-suite/typescript/performance/index.test.ts diff --git a/tests/typescript/plugin-less.test.ts b/packages/test-suite/typescript/plugin-less.test.ts similarity index 100% rename from tests/typescript/plugin-less.test.ts rename to packages/test-suite/typescript/plugin-less.test.ts diff --git a/tests/typescript/single-plugin.test.ts b/packages/test-suite/typescript/single-plugin.test.ts similarity index 100% rename from tests/typescript/single-plugin.test.ts rename to packages/test-suite/typescript/single-plugin.test.ts diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6115f2a..3e281dc 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5,33 +5,15 @@ importers: .: specifiers: '@trivago/prettier-plugin-sort-imports': 4.1.1 - '@types/jest': 29.5.2 - '@types/node': 20.2.5 eslint: 8.35.0 - jest: 29.5.0 - ppm-012: npm:prettier-plugin-merge@0.1.2 - ppm-020: npm:prettier-plugin-merge@0.2.0 prettier: ~2.8.4 - prettier-plugin-brace-style: 0.2.1 - prettier-plugin-classnames: 0.1.1 - prettier-plugin-tailwindcss: 0.3.0 - ts-jest: 29.1.0 tsconfig: workspace:* turbo: 1.10.14 typescript: 4.9.5 devDependencies: '@trivago/prettier-plugin-sort-imports': 4.1.1_prettier@2.8.4 - '@types/jest': 29.5.2 - '@types/node': 20.2.5 eslint: 8.35.0 - jest: 29.5.0_@types+node@20.2.5 - ppm-012: /prettier-plugin-merge/0.1.2_prettier@2.8.4 - ppm-020: /prettier-plugin-merge/0.2.0_prettier@2.8.4 prettier: 2.8.4 - prettier-plugin-brace-style: 0.2.1_prettier@2.8.4 - prettier-plugin-classnames: 0.1.1_prettier@2.8.4 - prettier-plugin-tailwindcss: 0.3.0_zmkqdpv3ldc45e6wei6qtrbrca - ts-jest: 29.1.0_doipufordlnvh5g4adbwayvyvy tsconfig: link:packages/tsconfig turbo: 1.10.14 typescript: 4.9.5 @@ -60,6 +42,43 @@ importers: eslint-plugin-import: 2.27.5_tqrcrxlenpngfto46ddarus52y typescript: 4.9.5 + packages/test-suite: + specifiers: + '@trivago/prettier-plugin-sort-imports': 4.1.1 + '@types/jest': 29.5.2 + '@types/node': 20.2.5 + eslint: 8.35.0 + eslint-config-custom: workspace:* + jest: 29.5.0 + ppm-012: npm:prettier-plugin-merge@0.1.2 + ppm-020: npm:prettier-plugin-merge@0.2.0 + prettier: 2.8.4 + prettier-plugin-brace-style: 0.2.1 + prettier-plugin-classnames: 0.1.1 + prettier-plugin-tailwindcss: 0.3.0 + ts-jest: 29.1.0 + tsconfig: workspace:* + typescript: 4.9.5 + v2-plugin: workspace:* + dependencies: + '@trivago/prettier-plugin-sort-imports': 4.1.1_prettier@2.8.4 + ppm-012: /prettier-plugin-merge/0.1.2_prettier@2.8.4 + ppm-020: /prettier-plugin-merge/0.2.0_prettier@2.8.4 + prettier: 2.8.4 + prettier-plugin-brace-style: 0.2.1_prettier@2.8.4 + prettier-plugin-classnames: 0.1.1_prettier@2.8.4 + prettier-plugin-tailwindcss: 0.3.0_zmkqdpv3ldc45e6wei6qtrbrca + v2-plugin: link:../v2-plugin + devDependencies: + '@types/jest': 29.5.2 + '@types/node': 20.2.5 + eslint: 8.35.0 + eslint-config-custom: link:../eslint-config-custom + jest: 29.5.0_@types+node@20.2.5 + ts-jest: 29.1.0_doipufordlnvh5g4adbwayvyvy + tsconfig: link:../tsconfig + typescript: 4.9.5 + packages/tsconfig: specifiers: {} @@ -97,7 +116,6 @@ packages: engines: {node: '>=6.9.0'} dependencies: '@babel/highlight': 7.18.6 - dev: true /@babel/compat-data/7.22.3: resolution: {integrity: sha512-aNtko9OPOwVESUFp3MZfD8Uzxl7JzSeJpd7npIoxCasU37PFbAQRpKglkaKwlHOyeJdrREpo8TW8ldrkYWwvIQ==} @@ -134,7 +152,6 @@ packages: '@babel/types': 7.22.4 jsesc: 2.5.2 source-map: 0.5.7 - dev: true /@babel/generator/7.22.3: resolution: {integrity: sha512-C17MW4wlk//ES/CJDL51kPNwl+qiBQyN7b9SKyVp11BLGFeSPoVaHrv+MNt8jwQFhQWowW88z1eeBx3pFz9v8A==} @@ -144,7 +161,6 @@ packages: '@jridgewell/gen-mapping': 0.3.3 '@jridgewell/trace-mapping': 0.3.18 jsesc: 2.5.2 - dev: true /@babel/helper-compilation-targets/7.22.1_@babel+core@7.22.1: resolution: {integrity: sha512-Rqx13UM3yVB5q0D/KwQ8+SPfX/+Rnsy1Lw1k/UwOC4KC6qrzIQoY3lYnBu5EHKBlEHHcj0M0W8ltPSkD8rqfsQ==} @@ -163,7 +179,6 @@ packages: /@babel/helper-environment-visitor/7.22.1: resolution: {integrity: sha512-Z2tgopurB/kTbidvzeBrc2To3PUP/9i5MUe+fU6QJCQDyPwSH2oRapkLw3KGECDYSjhQZCNxEvNvZlLw8JjGwA==} engines: {node: '>=6.9.0'} - dev: true /@babel/helper-function-name/7.21.0: resolution: {integrity: sha512-HfK1aMRanKHpxemaY2gqBmL04iAPOPRj7DxtNbiDOrJK+gdwkiNRVpCpUJYbUT+aZyemKN8brqTOxzCaG6ExRg==} @@ -171,14 +186,12 @@ packages: dependencies: '@babel/template': 7.21.9 '@babel/types': 7.22.4 - dev: true /@babel/helper-hoist-variables/7.18.6: resolution: {integrity: sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==} engines: {node: '>=6.9.0'} dependencies: '@babel/types': 7.22.4 - dev: true /@babel/helper-module-imports/7.21.4: resolution: {integrity: sha512-orajc5T2PsRYUN3ZryCEFeMDYwyw09c/pZeaQEZPH0MpKzSvn3e0uXsDBu3k03VI+9DBiRo+l22BfKTpKwa/Wg==} @@ -220,17 +233,14 @@ packages: engines: {node: '>=6.9.0'} dependencies: '@babel/types': 7.22.4 - dev: true /@babel/helper-string-parser/7.21.5: resolution: {integrity: sha512-5pTUx3hAJaZIdW99sJ6ZUUgWq/Y+Hja7TowEnLNMm1VivRgZQL3vpBY3qUACVsvw+yQU6+YgfBVmcbLaZtrA1w==} engines: {node: '>=6.9.0'} - dev: true /@babel/helper-validator-identifier/7.19.1: resolution: {integrity: sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==} engines: {node: '>=6.9.0'} - dev: true /@babel/helper-validator-option/7.21.0: resolution: {integrity: sha512-rmL/B8/f0mKS2baE9ZpyTcTavvEuWhTTW8amjzXNvYG4AwBsqTLikfXsEofsJEfKHf+HQVQbFOHy6o+4cnC/fQ==} @@ -255,7 +265,6 @@ packages: '@babel/helper-validator-identifier': 7.19.1 chalk: 2.4.2 js-tokens: 4.0.0 - dev: true /@babel/parser/7.22.4: resolution: {integrity: sha512-VLLsx06XkEYqBtE5YGPwfSGwfrjnyPP5oiGty3S8pQLFDFLaS8VwWSIxkTXpcvr5zeYLE6+MBNl2npl/YnfofA==} @@ -263,7 +272,6 @@ packages: hasBin: true dependencies: '@babel/types': 7.22.4 - dev: true /@babel/plugin-syntax-async-generators/7.8.4_@babel+core@7.22.1: resolution: {integrity: sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==} @@ -401,7 +409,6 @@ packages: '@babel/code-frame': 7.21.4 '@babel/parser': 7.22.4 '@babel/types': 7.22.4 - dev: true /@babel/traverse/7.17.3: resolution: {integrity: sha512-5irClVky7TxRWIRtxlh2WPUUOLhcPN06AGgaQSB8AEwuyEBgJVuJ5imdHm5zxk8w0QS5T+tDfnDxAlhWjpb7cw==} @@ -419,7 +426,6 @@ packages: globals: 11.12.0 transitivePeerDependencies: - supports-color - dev: true /@babel/traverse/7.22.4: resolution: {integrity: sha512-Tn1pDsjIcI+JcLKq1AVlZEr4226gpuAQTsLMorsYg9tuS/kG7nuwwJ4AB8jfQuEgb/COBwR/DqJxmoiYFu5/rQ==} @@ -445,7 +451,6 @@ packages: dependencies: '@babel/helper-validator-identifier': 7.19.1 to-fast-properties: 2.0.0 - dev: true /@babel/types/7.22.4: resolution: {integrity: sha512-Tx9x3UBHTTsMSW85WB2kphxYQVvrZ/t1FxD88IpSgIjiUJlCm9z+xWIDwyo1vffTwSqteqyznB8ZE9vYYk16zA==} @@ -454,7 +459,6 @@ packages: '@babel/helper-string-parser': 7.21.5 '@babel/helper-validator-identifier': 7.19.1 to-fast-properties: 2.0.0 - dev: true /@bcoe/v8-coverage/0.2.3: resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==} @@ -738,32 +742,26 @@ packages: '@jridgewell/set-array': 1.1.2 '@jridgewell/sourcemap-codec': 1.4.15 '@jridgewell/trace-mapping': 0.3.18 - dev: true /@jridgewell/resolve-uri/3.1.0: resolution: {integrity: sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==} engines: {node: '>=6.0.0'} - dev: true /@jridgewell/set-array/1.1.2: resolution: {integrity: sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==} engines: {node: '>=6.0.0'} - dev: true /@jridgewell/sourcemap-codec/1.4.14: resolution: {integrity: sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==} - dev: true /@jridgewell/sourcemap-codec/1.4.15: resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==} - dev: true /@jridgewell/trace-mapping/0.3.18: resolution: {integrity: sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==} dependencies: '@jridgewell/resolve-uri': 3.1.0 '@jridgewell/sourcemap-codec': 1.4.14 - dev: true /@nodelib/fs.scandir/2.1.5: resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} @@ -810,6 +808,7 @@ packages: /@sinonjs/fake-timers/10.2.0: resolution: {integrity: sha512-OPwQlEdg40HAj5KNF8WW6q2KG4Z+cBCZb3m4ninfTZKaBmbIJodviQsDBoYMPHkOyJJMHnOJo5j2+LKDOhOACg==} + deprecated: Use version 10.1.0. Version 10.2.0 has potential breaking issues dependencies: '@sinonjs/commons': 3.0.0 dev: true @@ -832,7 +831,6 @@ packages: prettier: 2.8.4 transitivePeerDependencies: - supports-color - dev: true /@types/babel__core/7.20.1: resolution: {integrity: sha512-aACu/U/omhdk15O4Nfb+fHgH/z3QsfQzpnvRZhYhThms83ZnAOZz7zZAWO7mn2yyNQaA4xTO8GLK3uqFU4bYYw==} @@ -1100,7 +1098,6 @@ packages: engines: {node: '>=4'} dependencies: color-convert: 1.9.3 - dev: true /ansi-styles/4.3.0: resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} @@ -1350,7 +1347,6 @@ packages: ansi-styles: 3.2.1 escape-string-regexp: 1.0.5 supports-color: 5.5.0 - dev: true /chalk/4.1.2: resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} @@ -1377,7 +1373,7 @@ packages: /classnames/2.3.2: resolution: {integrity: sha512-CSbhY4cFEJRe6/GQzIk5qXZ4Jeg5pcsP7b5peFSDpffpe1cqjASH/n9UTjBwOp6XpMSTwQ8Za2K5V02ueA7Tmw==} requiresBuild: true - dev: true + dev: false optional: true /cliui/8.0.1: @@ -1402,7 +1398,6 @@ packages: resolution: {integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==} dependencies: color-name: 1.1.3 - dev: true /color-convert/2.0.1: resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} @@ -1413,7 +1408,6 @@ packages: /color-name/1.1.3: resolution: {integrity: sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==} - dev: true /color-name/1.1.4: resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} @@ -1465,7 +1459,6 @@ packages: optional: true dependencies: ms: 2.1.2 - dev: true /dedent/0.7.0: resolution: {integrity: sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==} @@ -1524,6 +1517,7 @@ packages: /diff/5.1.0: resolution: {integrity: sha512-D+mk+qE8VC/PAUrlAU34N+VfXev0ghe5ywmpqrawphmVZc1bEfn56uo9qpyGp1p4xpzOHkSW4ztBd6L7Xx4ACw==} engines: {node: '>=0.3.1'} + dev: false /dir-glob/3.0.1: resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} @@ -1645,7 +1639,6 @@ packages: /escape-string-regexp/1.0.5: resolution: {integrity: sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==} engines: {node: '>=0.8.0'} - dev: true /escape-string-regexp/2.0.0: resolution: {integrity: sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==} @@ -2148,7 +2141,6 @@ packages: /globals/11.12.0: resolution: {integrity: sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==} engines: {node: '>=4'} - dev: true /globals/13.20.0: resolution: {integrity: sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==} @@ -2208,7 +2200,6 @@ packages: /has-flag/3.0.0: resolution: {integrity: sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==} engines: {node: '>=4'} - dev: true /has-flag/4.0.0: resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} @@ -2528,7 +2519,6 @@ packages: /javascript-natural-sort/0.7.1: resolution: {integrity: sha512-nO6jcEfZWQXDhOiBtG2KvKyEptz7RVbpGP4vTD2hLBdmNQSsCiicO2Ioinv6UI4y9ukqnBpy+XZ9H6uLNgJTlw==} - dev: true /jest-changed-files/29.5.0: resolution: {integrity: sha512-IFG34IUMUaNBIxjQXF/iu7g6EcdMrGRRxaUSw92I/2g2YC6vCdTltl4nHvt7Ci5nSJwXIkCu8Ka1DKF+X7Z1Ag==} @@ -2945,7 +2935,6 @@ packages: /js-tokens/4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} - dev: true /js-yaml/3.14.1: resolution: {integrity: sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==} @@ -2966,7 +2955,6 @@ packages: resolution: {integrity: sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==} engines: {node: '>=4'} hasBin: true - dev: true /json-parse-even-better-errors/2.3.1: resolution: {integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==} @@ -3039,7 +3027,6 @@ packages: /lodash/4.17.21: resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==} - dev: true /lru-cache/5.1.1: resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} @@ -3110,7 +3097,6 @@ packages: /ms/2.1.2: resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} - dev: true /natural-compare-lite/1.4.0: resolution: {integrity: sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==} @@ -3339,7 +3325,7 @@ packages: prettier: 2.8.4 optionalDependencies: prettier-plugin-merge: 0.1.2_prettier@2.8.4 - dev: true + dev: false /prettier-plugin-classnames/0.1.1_prettier@2.8.4: resolution: {integrity: sha512-kA1Xp3YQEZJNJwrlu+PlbhNZk2DfzgE6I56C5IANh8eW/+Cmd+2RN2c5Qt1PiMEuw31CyWVTFTnzndFhm6rnmw==} @@ -3349,7 +3335,7 @@ packages: prettier: 2.8.4 optionalDependencies: classnames: 2.3.2 - dev: true + dev: false /prettier-plugin-merge/0.1.2_prettier@2.8.4: resolution: {integrity: sha512-fXUGHRwIY1AwbFuiMhS+Kp4ELrXlbC171d3DpL3mlHfL8OP6rrlA5LLMmlaKsKfuK3CwTTfUAN9Tw89bii/qhQ==} @@ -3357,7 +3343,7 @@ packages: prettier: ~2.8.4 dependencies: prettier: 2.8.4 - dev: true + dev: false /prettier-plugin-merge/0.2.0_prettier@2.8.4: resolution: {integrity: sha512-2iStjZCMlmBXoGstBcBYXHcNhmafSL/pwJd4mWAQVTOGXPWo1UJ77wuI22vpVgla8Pkgbn62UA51d/rBsxAwrg==} @@ -3366,7 +3352,7 @@ packages: dependencies: diff: 5.1.0 prettier: 2.8.4 - dev: true + dev: false /prettier-plugin-tailwindcss/0.3.0_zmkqdpv3ldc45e6wei6qtrbrca: resolution: {integrity: sha512-009/Xqdy7UmkcTBpwlq7jsViDqXAYSOMLDrHAdTMlVZOrKfM2o9Ci7EMWTMZ7SkKBFTG04UM9F9iM2+4i6boDA==} @@ -3422,7 +3408,7 @@ packages: dependencies: '@trivago/prettier-plugin-sort-imports': 4.1.1_prettier@2.8.4 prettier: 2.8.4 - dev: true + dev: false /prettier/2.8.4: resolution: {integrity: sha512-vIS4Rlc2FNh0BySk3Wkd6xmwxB0FpOndW5fisM5H8hsZSxU2VWVB5CWIkIjWvrHjIhxk2g3bfMKM87zNTrZddw==} @@ -3611,7 +3597,6 @@ packages: /source-map/0.5.7: resolution: {integrity: sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==} engines: {node: '>=0.10.0'} - dev: true /source-map/0.6.1: resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} @@ -3708,7 +3693,6 @@ packages: engines: {node: '>=4'} dependencies: has-flag: 3.0.0 - dev: true /supports-color/7.2.0: resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} @@ -3767,7 +3751,6 @@ packages: /to-fast-properties/2.0.0: resolution: {integrity: sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==} engines: {node: '>=4'} - dev: true /to-regex-range/5.0.1: resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} diff --git a/turbo.json b/turbo.json index 22f09fd..f56ff80 100644 --- a/turbo.json +++ b/turbo.json @@ -1,4 +1,6 @@ { "$schema": "https://turbo.build/schema.json", - "pipeline": {} + "pipeline": { + "test": {} + } } From f31a91e96ea50a91de2ae73dc113f94e9b0de1b7 Mon Sep 17 00:00:00 2001 From: Hyeonjong Date: Fri, 29 Sep 2023 12:01:05 +0900 Subject: [PATCH 10/17] chore: create bundle-entry workspace --- packages/bundle-entry/.eslintrc.js | 3 + packages/bundle-entry/index.ts | 11 ++ packages/bundle-entry/package.json | 24 +++ packages/bundle-entry/standalone.ts | 3 + packages/bundle-entry/tsconfig.json | 4 + pnpm-lock.yaml | 249 ++++++++++++++++++++++++++++ 6 files changed, 294 insertions(+) create mode 100644 packages/bundle-entry/.eslintrc.js create mode 100644 packages/bundle-entry/index.ts create mode 100644 packages/bundle-entry/package.json create mode 100644 packages/bundle-entry/standalone.ts create mode 100644 packages/bundle-entry/tsconfig.json diff --git a/packages/bundle-entry/.eslintrc.js b/packages/bundle-entry/.eslintrc.js new file mode 100644 index 0000000..63d1173 --- /dev/null +++ b/packages/bundle-entry/.eslintrc.js @@ -0,0 +1,3 @@ +module.exports = { + extends: ['custom/base'], +}; diff --git a/packages/bundle-entry/index.ts b/packages/bundle-entry/index.ts new file mode 100644 index 0000000..b8c89ae --- /dev/null +++ b/packages/bundle-entry/index.ts @@ -0,0 +1,11 @@ +// eslint-disable-next-line import/no-import-module-exports +import prettier from 'prettier'; + +if (prettier.version.startsWith('2.')) { + // eslint-disable-next-line global-require + module.exports = require('v2-plugin'); +} else { + // TODO: implement v3 plugin + // eslint-disable-next-line global-require + module.exports = require('v2-plugin'); +} diff --git a/packages/bundle-entry/package.json b/packages/bundle-entry/package.json new file mode 100644 index 0000000..3b93650 --- /dev/null +++ b/packages/bundle-entry/package.json @@ -0,0 +1,24 @@ +{ + "private": true, + "name": "bundle-entry", + "version": "0.0.0", + "author": "Hyeonjong ", + "license": "MIT", + "main": "dist/index.js", + "scripts": { + "dev": "esbuild index.ts standalone.ts --bundle --outdir=dist --platform=node \"--external:prettier\" --watch", + "build": "esbuild index.ts standalone.ts --bundle --outdir=dist --platform=node \"--external:prettier\" --minify" + }, + "dependencies": { + "prettier": "2.8.4", + "v2-plugin": "workspace:*" + }, + "devDependencies": { + "@types/node": "20.2.5", + "esbuild": "0.17.19", + "eslint": "8.35.0", + "eslint-config-custom": "workspace:*", + "tsconfig": "workspace:*", + "typescript": "4.9.5" + } +} diff --git a/packages/bundle-entry/standalone.ts b/packages/bundle-entry/standalone.ts new file mode 100644 index 0000000..a94ff31 --- /dev/null +++ b/packages/bundle-entry/standalone.ts @@ -0,0 +1,3 @@ +import v2Plugin from 'v2-plugin'; + +export { v2Plugin }; diff --git a/packages/bundle-entry/tsconfig.json b/packages/bundle-entry/tsconfig.json new file mode 100644 index 0000000..8ff23b9 --- /dev/null +++ b/packages/bundle-entry/tsconfig.json @@ -0,0 +1,4 @@ +{ + "extends": "tsconfig/base.json", + "include": ["."] +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3e281dc..a7e2b4a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -18,6 +18,27 @@ importers: turbo: 1.10.14 typescript: 4.9.5 + packages/bundle-entry: + specifiers: + '@types/node': 20.2.5 + esbuild: 0.17.19 + eslint: 8.35.0 + eslint-config-custom: workspace:* + prettier: 2.8.4 + tsconfig: workspace:* + typescript: 4.9.5 + v2-plugin: workspace:* + dependencies: + prettier: 2.8.4 + v2-plugin: link:../v2-plugin + devDependencies: + '@types/node': 20.2.5 + esbuild: 0.17.19 + eslint: 8.35.0 + eslint-config-custom: link:../eslint-config-custom + tsconfig: link:../tsconfig + typescript: 4.9.5 + packages/eslint-config-custom: specifiers: '@typescript-eslint/eslint-plugin': 5.54.0 @@ -464,6 +485,204 @@ packages: resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==} dev: true + /@esbuild/android-arm/0.17.19: + resolution: {integrity: sha512-rIKddzqhmav7MSmoFCmDIb6e2W57geRsM94gV2l38fzhXMwq7hZoClug9USI2pFRGL06f4IOPHHpFNOkWieR8A==} + engines: {node: '>=12'} + cpu: [arm] + os: [android] + requiresBuild: true + dev: true + optional: true + + /@esbuild/android-arm64/0.17.19: + resolution: {integrity: sha512-KBMWvEZooR7+kzY0BtbTQn0OAYY7CsiydT63pVEaPtVYF0hXbUaOyZog37DKxK7NF3XacBJOpYT4adIJh+avxA==} + engines: {node: '>=12'} + cpu: [arm64] + os: [android] + requiresBuild: true + dev: true + optional: true + + /@esbuild/android-x64/0.17.19: + resolution: {integrity: sha512-uUTTc4xGNDT7YSArp/zbtmbhO0uEEK9/ETW29Wk1thYUJBz3IVnvgEiEwEa9IeLyvnpKrWK64Utw2bgUmDveww==} + engines: {node: '>=12'} + cpu: [x64] + os: [android] + requiresBuild: true + dev: true + optional: true + + /@esbuild/darwin-arm64/0.17.19: + resolution: {integrity: sha512-80wEoCfF/hFKM6WE1FyBHc9SfUblloAWx6FJkFWTWiCoht9Mc0ARGEM47e67W9rI09YoUxJL68WHfDRYEAvOhg==} + engines: {node: '>=12'} + cpu: [arm64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + /@esbuild/darwin-x64/0.17.19: + resolution: {integrity: sha512-IJM4JJsLhRYr9xdtLytPLSH9k/oxR3boaUIYiHkAawtwNOXKE8KoU8tMvryogdcT8AU+Bflmh81Xn6Q0vTZbQw==} + engines: {node: '>=12'} + cpu: [x64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + /@esbuild/freebsd-arm64/0.17.19: + resolution: {integrity: sha512-pBwbc7DufluUeGdjSU5Si+P3SoMF5DQ/F/UmTSb8HXO80ZEAJmrykPyzo1IfNbAoaqw48YRpv8shwd1NoI0jcQ==} + engines: {node: '>=12'} + cpu: [arm64] + os: [freebsd] + requiresBuild: true + dev: true + optional: true + + /@esbuild/freebsd-x64/0.17.19: + resolution: {integrity: sha512-4lu+n8Wk0XlajEhbEffdy2xy53dpR06SlzvhGByyg36qJw6Kpfk7cp45DR/62aPH9mtJRmIyrXAS5UWBrJT6TQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [freebsd] + requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-arm/0.17.19: + resolution: {integrity: sha512-cdmT3KxjlOQ/gZ2cjfrQOtmhG4HJs6hhvm3mWSRDPtZ/lP5oe8FWceS10JaSJC13GBd4eH/haHnqf7hhGNLerA==} + engines: {node: '>=12'} + cpu: [arm] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-arm64/0.17.19: + resolution: {integrity: sha512-ct1Tg3WGwd3P+oZYqic+YZF4snNl2bsnMKRkb3ozHmnM0dGWuxcPTTntAF6bOP0Sp4x0PjSF+4uHQ1xvxfRKqg==} + engines: {node: '>=12'} + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-ia32/0.17.19: + resolution: {integrity: sha512-w4IRhSy1VbsNxHRQpeGCHEmibqdTUx61Vc38APcsRbuVgK0OPEnQ0YD39Brymn96mOx48Y2laBQGqgZ0j9w6SQ==} + engines: {node: '>=12'} + cpu: [ia32] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-loong64/0.17.19: + resolution: {integrity: sha512-2iAngUbBPMq439a+z//gE+9WBldoMp1s5GWsUSgqHLzLJ9WoZLZhpwWuym0u0u/4XmZ3gpHmzV84PonE+9IIdQ==} + engines: {node: '>=12'} + cpu: [loong64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-mips64el/0.17.19: + resolution: {integrity: sha512-LKJltc4LVdMKHsrFe4MGNPp0hqDFA1Wpt3jE1gEyM3nKUvOiO//9PheZZHfYRfYl6AwdTH4aTcXSqBerX0ml4A==} + engines: {node: '>=12'} + cpu: [mips64el] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-ppc64/0.17.19: + resolution: {integrity: sha512-/c/DGybs95WXNS8y3Ti/ytqETiW7EU44MEKuCAcpPto3YjQbyK3IQVKfF6nbghD7EcLUGl0NbiL5Rt5DMhn5tg==} + engines: {node: '>=12'} + cpu: [ppc64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-riscv64/0.17.19: + resolution: {integrity: sha512-FC3nUAWhvFoutlhAkgHf8f5HwFWUL6bYdvLc/TTuxKlvLi3+pPzdZiFKSWz/PF30TB1K19SuCxDTI5KcqASJqA==} + engines: {node: '>=12'} + cpu: [riscv64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-s390x/0.17.19: + resolution: {integrity: sha512-IbFsFbxMWLuKEbH+7sTkKzL6NJmG2vRyy6K7JJo55w+8xDk7RElYn6xvXtDW8HCfoKBFK69f3pgBJSUSQPr+4Q==} + engines: {node: '>=12'} + cpu: [s390x] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-x64/0.17.19: + resolution: {integrity: sha512-68ngA9lg2H6zkZcyp22tsVt38mlhWde8l3eJLWkyLrp4HwMUr3c1s/M2t7+kHIhvMjglIBrFpncX1SzMckomGw==} + engines: {node: '>=12'} + cpu: [x64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@esbuild/netbsd-x64/0.17.19: + resolution: {integrity: sha512-CwFq42rXCR8TYIjIfpXCbRX0rp1jo6cPIUPSaWwzbVI4aOfX96OXY8M6KNmtPcg7QjYeDmN+DD0Wp3LaBOLf4Q==} + engines: {node: '>=12'} + cpu: [x64] + os: [netbsd] + requiresBuild: true + dev: true + optional: true + + /@esbuild/openbsd-x64/0.17.19: + resolution: {integrity: sha512-cnq5brJYrSZ2CF6c35eCmviIN3k3RczmHz8eYaVlNasVqsNY+JKohZU5MKmaOI+KkllCdzOKKdPs762VCPC20g==} + engines: {node: '>=12'} + cpu: [x64] + os: [openbsd] + requiresBuild: true + dev: true + optional: true + + /@esbuild/sunos-x64/0.17.19: + resolution: {integrity: sha512-vCRT7yP3zX+bKWFeP/zdS6SqdWB8OIpaRq/mbXQxTGHnIxspRtigpkUcDMlSCOejlHowLqII7K2JKevwyRP2rg==} + engines: {node: '>=12'} + cpu: [x64] + os: [sunos] + requiresBuild: true + dev: true + optional: true + + /@esbuild/win32-arm64/0.17.19: + resolution: {integrity: sha512-yYx+8jwowUstVdorcMdNlzklLYhPxjniHWFKgRqH7IFlUEa0Umu3KuYplf1HUZZ422e3NU9F4LGb+4O0Kdcaag==} + engines: {node: '>=12'} + cpu: [arm64] + os: [win32] + requiresBuild: true + dev: true + optional: true + + /@esbuild/win32-ia32/0.17.19: + resolution: {integrity: sha512-eggDKanJszUtCdlVs0RB+h35wNlb5v4TWEkq4vZcmVt5u/HiDZrTXe2bWFQUez3RgNHwx/x4sk5++4NSSicKkw==} + engines: {node: '>=12'} + cpu: [ia32] + os: [win32] + requiresBuild: true + dev: true + optional: true + + /@esbuild/win32-x64/0.17.19: + resolution: {integrity: sha512-lAhycmKnVOuRYNtRtatQR1LPQf2oYCkRGkSFnseDAKPl8lu5SOsK/e1sXe5a0Pc5kHIHe6P2I/ilntNv2xf3cA==} + engines: {node: '>=12'} + cpu: [x64] + os: [win32] + requiresBuild: true + dev: true + optional: true + /@eslint/eslintrc/2.0.3: resolution: {integrity: sha512-+5gy6OQfk+xx3q0d6jGZZC3f3KzAkXc/IanVxd1is/VIIziRqqt3ongQz0FiTUXqTk0c7aDB3OaFuKnuSoJicQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -1631,6 +1850,36 @@ packages: is-symbol: 1.0.4 dev: true + /esbuild/0.17.19: + resolution: {integrity: sha512-XQ0jAPFkK/u3LcVRcvVHQcTIqD6E2H1fvZMA5dQPSOWb3suUbWbfbRf94pjc0bNzRYLfIrDRQXr7X+LHIm5oHw==} + engines: {node: '>=12'} + hasBin: true + requiresBuild: true + optionalDependencies: + '@esbuild/android-arm': 0.17.19 + '@esbuild/android-arm64': 0.17.19 + '@esbuild/android-x64': 0.17.19 + '@esbuild/darwin-arm64': 0.17.19 + '@esbuild/darwin-x64': 0.17.19 + '@esbuild/freebsd-arm64': 0.17.19 + '@esbuild/freebsd-x64': 0.17.19 + '@esbuild/linux-arm': 0.17.19 + '@esbuild/linux-arm64': 0.17.19 + '@esbuild/linux-ia32': 0.17.19 + '@esbuild/linux-loong64': 0.17.19 + '@esbuild/linux-mips64el': 0.17.19 + '@esbuild/linux-ppc64': 0.17.19 + '@esbuild/linux-riscv64': 0.17.19 + '@esbuild/linux-s390x': 0.17.19 + '@esbuild/linux-x64': 0.17.19 + '@esbuild/netbsd-x64': 0.17.19 + '@esbuild/openbsd-x64': 0.17.19 + '@esbuild/sunos-x64': 0.17.19 + '@esbuild/win32-arm64': 0.17.19 + '@esbuild/win32-ia32': 0.17.19 + '@esbuild/win32-x64': 0.17.19 + dev: true + /escalade/3.1.1: resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==} engines: {node: '>=6'} From f7ee148f93357dd0f845432c04d6d5bd9df2e302 Mon Sep 17 00:00:00 2001 From: Hyeonjong Date: Fri, 29 Sep 2023 13:23:41 +0900 Subject: [PATCH 11/17] chore(test-suite): fix broken tests --- packages/test-suite/babel/multiple-plugin.test.ts | 2 +- packages/test-suite/babel/others.test.ts | 3 +-- packages/test-suite/babel/performance/index.test.ts | 5 ++++- packages/test-suite/babel/plugin-less.test.ts | 2 +- packages/test-suite/babel/single-plugin.test.ts | 2 +- packages/test-suite/package.json | 4 ++-- packages/test-suite/settings.ts | 3 +-- packages/test-suite/typescript/multiple-plugin.test.ts | 2 +- packages/test-suite/typescript/others.test.ts | 3 +-- packages/test-suite/typescript/performance/index.test.ts | 5 ++++- packages/test-suite/typescript/plugin-less.test.ts | 2 +- packages/test-suite/typescript/single-plugin.test.ts | 2 +- pnpm-lock.yaml | 4 ++-- 13 files changed, 21 insertions(+), 18 deletions(-) diff --git a/packages/test-suite/babel/multiple-plugin.test.ts b/packages/test-suite/babel/multiple-plugin.test.ts index 5fcaa5f..9e6abaf 100644 --- a/packages/test-suite/babel/multiple-plugin.test.ts +++ b/packages/test-suite/babel/multiple-plugin.test.ts @@ -1,4 +1,4 @@ -import mergePlugin from '@/index'; +import { v2Plugin as mergePlugin } from 'bundle-entry/standalone'; import type { Fixture } from '../settings'; import { diff --git a/packages/test-suite/babel/others.test.ts b/packages/test-suite/babel/others.test.ts index 1cfa237..9dbb536 100644 --- a/packages/test-suite/babel/others.test.ts +++ b/packages/test-suite/babel/others.test.ts @@ -1,7 +1,6 @@ +import { v2Plugin as mergePlugin } from 'bundle-entry/standalone'; import type { Options, Plugin } from 'prettier'; -import mergePlugin from '@/index'; - import { format, dummyPlugin } from '../settings'; let callCount = 0; diff --git a/packages/test-suite/babel/performance/index.test.ts b/packages/test-suite/babel/performance/index.test.ts index 3169304..c5ffeb1 100644 --- a/packages/test-suite/babel/performance/index.test.ts +++ b/packages/test-suite/babel/performance/index.test.ts @@ -35,7 +35,10 @@ describe('babel/performance', () => { const trialCount = 5; const averageExecutionTimeWithPlugin012 = calculateAverageExecutionTime(trialCount, 'ppm-012'); const averageExecutionTimeWithPlugin020 = calculateAverageExecutionTime(trialCount, 'ppm-020'); - const averageExecutionTimeWithCurrentPlugin = calculateAverageExecutionTime(trialCount, '.'); + const averageExecutionTimeWithCurrentPlugin = calculateAverageExecutionTime( + trialCount, + 'bundle-entry', + ); const timeDifferenceWithPlugin020 = averageExecutionTimeWithPlugin020 - averageExecutionTimeWithPlugin012; diff --git a/packages/test-suite/babel/plugin-less.test.ts b/packages/test-suite/babel/plugin-less.test.ts index 2e380d3..e8dedba 100644 --- a/packages/test-suite/babel/plugin-less.test.ts +++ b/packages/test-suite/babel/plugin-less.test.ts @@ -1,4 +1,4 @@ -import mergePlugin from '@/index'; +import { v2Plugin as mergePlugin } from 'bundle-entry/standalone'; import type { Fixture } from '../settings'; import { format, baseOptions } from '../settings'; diff --git a/packages/test-suite/babel/single-plugin.test.ts b/packages/test-suite/babel/single-plugin.test.ts index 022140c..6ec793f 100644 --- a/packages/test-suite/babel/single-plugin.test.ts +++ b/packages/test-suite/babel/single-plugin.test.ts @@ -1,4 +1,4 @@ -import mergePlugin from '@/index'; +import { v2Plugin as mergePlugin } from 'bundle-entry/standalone'; import type { Fixture } from '../settings'; import { diff --git a/packages/test-suite/package.json b/packages/test-suite/package.json index 73133a0..a085bb7 100644 --- a/packages/test-suite/package.json +++ b/packages/test-suite/package.json @@ -9,13 +9,13 @@ }, "dependencies": { "@trivago/prettier-plugin-sort-imports": "4.1.1", + "bundle-entry": "workspace:*", "ppm-012": "npm:prettier-plugin-merge@0.1.2", "ppm-020": "npm:prettier-plugin-merge@0.2.0", "prettier": "2.8.4", "prettier-plugin-brace-style": "0.2.1", "prettier-plugin-classnames": "0.1.1", - "prettier-plugin-tailwindcss": "0.3.0", - "v2-plugin": "workspace:*" + "prettier-plugin-tailwindcss": "0.3.0" }, "devDependencies": { "@types/jest": "29.5.2", diff --git a/packages/test-suite/settings.ts b/packages/test-suite/settings.ts index ee6862f..5fa83a1 100644 --- a/packages/test-suite/settings.ts +++ b/packages/test-suite/settings.ts @@ -1,3 +1,4 @@ +import { v2Plugin as mergePlugin } from 'bundle-entry/standalone'; import type { Options, Plugin } from 'prettier'; import { parsers as tailwindcssParsers, @@ -5,8 +6,6 @@ import { options as tailwindcssOptions, // @ts-ignore } from 'prettier-plugin-tailwindcss'; -import mergePlugin from '@/index'; - export type Fixture = { name: string; input: string; diff --git a/packages/test-suite/typescript/multiple-plugin.test.ts b/packages/test-suite/typescript/multiple-plugin.test.ts index 5e547c7..18c6bc7 100644 --- a/packages/test-suite/typescript/multiple-plugin.test.ts +++ b/packages/test-suite/typescript/multiple-plugin.test.ts @@ -1,4 +1,4 @@ -import mergePlugin from '@/index'; +import { v2Plugin as mergePlugin } from 'bundle-entry/standalone'; import type { Fixture } from '../settings'; import { diff --git a/packages/test-suite/typescript/others.test.ts b/packages/test-suite/typescript/others.test.ts index 0c03bb3..183d9ad 100644 --- a/packages/test-suite/typescript/others.test.ts +++ b/packages/test-suite/typescript/others.test.ts @@ -1,7 +1,6 @@ +import { v2Plugin as mergePlugin } from 'bundle-entry/standalone'; import type { Options, Plugin } from 'prettier'; -import mergePlugin from '@/index'; - import { format, dummyPlugin } from '../settings'; let callCount = 0; diff --git a/packages/test-suite/typescript/performance/index.test.ts b/packages/test-suite/typescript/performance/index.test.ts index 107816a..8a99d1d 100644 --- a/packages/test-suite/typescript/performance/index.test.ts +++ b/packages/test-suite/typescript/performance/index.test.ts @@ -35,7 +35,10 @@ describe('typescript/performance', () => { const trialCount = 5; const averageExecutionTimeWithPlugin012 = calculateAverageExecutionTime(trialCount, 'ppm-012'); const averageExecutionTimeWithPlugin020 = calculateAverageExecutionTime(trialCount, 'ppm-020'); - const averageExecutionTimeWithCurrentPlugin = calculateAverageExecutionTime(trialCount, '.'); + const averageExecutionTimeWithCurrentPlugin = calculateAverageExecutionTime( + trialCount, + 'bundle-entry', + ); const timeDifferenceWithPlugin020 = averageExecutionTimeWithPlugin020 - averageExecutionTimeWithPlugin012; diff --git a/packages/test-suite/typescript/plugin-less.test.ts b/packages/test-suite/typescript/plugin-less.test.ts index e9c8b2c..74b7ab5 100644 --- a/packages/test-suite/typescript/plugin-less.test.ts +++ b/packages/test-suite/typescript/plugin-less.test.ts @@ -1,4 +1,4 @@ -import mergePlugin from '@/index'; +import { v2Plugin as mergePlugin } from 'bundle-entry/standalone'; import type { Fixture } from '../settings'; import { format, baseOptions } from '../settings'; diff --git a/packages/test-suite/typescript/single-plugin.test.ts b/packages/test-suite/typescript/single-plugin.test.ts index db120ea..d3dfaed 100644 --- a/packages/test-suite/typescript/single-plugin.test.ts +++ b/packages/test-suite/typescript/single-plugin.test.ts @@ -1,4 +1,4 @@ -import mergePlugin from '@/index'; +import { v2Plugin as mergePlugin } from 'bundle-entry/standalone'; import type { Fixture } from '../settings'; import { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a7e2b4a..8a1b555 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -68,6 +68,7 @@ importers: '@trivago/prettier-plugin-sort-imports': 4.1.1 '@types/jest': 29.5.2 '@types/node': 20.2.5 + bundle-entry: workspace:* eslint: 8.35.0 eslint-config-custom: workspace:* jest: 29.5.0 @@ -80,16 +81,15 @@ importers: ts-jest: 29.1.0 tsconfig: workspace:* typescript: 4.9.5 - v2-plugin: workspace:* dependencies: '@trivago/prettier-plugin-sort-imports': 4.1.1_prettier@2.8.4 + bundle-entry: link:../bundle-entry ppm-012: /prettier-plugin-merge/0.1.2_prettier@2.8.4 ppm-020: /prettier-plugin-merge/0.2.0_prettier@2.8.4 prettier: 2.8.4 prettier-plugin-brace-style: 0.2.1_prettier@2.8.4 prettier-plugin-classnames: 0.1.1_prettier@2.8.4 prettier-plugin-tailwindcss: 0.3.0_zmkqdpv3ldc45e6wei6qtrbrca - v2-plugin: link:../v2-plugin devDependencies: '@types/jest': 29.5.2 '@types/node': 20.2.5 From b2ed75ddab8ed6d5a0a4be77cb5c2b74076315c0 Mon Sep 17 00:00:00 2001 From: Hyeonjong Date: Fri, 29 Sep 2023 20:18:10 +0900 Subject: [PATCH 12/17] chore: update .prettierrc.json --- .prettierrc.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.prettierrc.json b/.prettierrc.json index ae3493a..8f51b7a 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -7,7 +7,7 @@ "importOrderSeparation": true, "overrides": [ { - "files": ["tests/**/performance/Callout.*"], + "files": ["packages/test-suite/**/performance/Callout.*"], "options": { "printWidth": 80, "singleQuote": false From 1752eaed986c022a1e033fd562dc0a2f54ce864a Mon Sep 17 00:00:00 2001 From: Hyeonjong Date: Fri, 29 Sep 2023 21:11:23 +0900 Subject: [PATCH 13/17] chore: update turborepo pipeline --- package.json | 8 ++++---- packages/bundle-entry/package.json | 5 +++-- packages/test-suite/package.json | 1 + packages/v2-plugin/package.json | 3 +++ turbo.json | 10 +++++++++- 5 files changed, 20 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 75d3d42..34942e6 100644 --- a/package.json +++ b/package.json @@ -26,10 +26,10 @@ }, "scripts": { "clean": "pnpm -r exec rm -rf node_modules", - "dev": "vite build --watch --minify=false", - "build": "vite build", - "lint": "eslint src", - "test": "turbo run test" + "dev": "turbo run dev --no-daemon --filter bundle-entry", + "build": "turbo run build --no-daemon --filter bundle-entry", + "lint": "turbo run lint --no-daemon", + "test": "turbo run test --no-daemon --filter test-suite" }, "devDependencies": { "@trivago/prettier-plugin-sort-imports": "4.1.1", diff --git a/packages/bundle-entry/package.json b/packages/bundle-entry/package.json index 3b93650..c12ebbb 100644 --- a/packages/bundle-entry/package.json +++ b/packages/bundle-entry/package.json @@ -6,8 +6,9 @@ "license": "MIT", "main": "dist/index.js", "scripts": { - "dev": "esbuild index.ts standalone.ts --bundle --outdir=dist --platform=node \"--external:prettier\" --watch", - "build": "esbuild index.ts standalone.ts --bundle --outdir=dist --platform=node \"--external:prettier\" --minify" + "dev": "esbuild index.ts standalone.ts --bundle --outdir=dist --platform=node \"--external:prettier\" --watch=forever", + "build": "esbuild index.ts standalone.ts --bundle --outdir=dist --platform=node \"--external:prettier\" --minify", + "lint": "eslint ." }, "dependencies": { "prettier": "2.8.4", diff --git a/packages/test-suite/package.json b/packages/test-suite/package.json index a085bb7..f1b1680 100644 --- a/packages/test-suite/package.json +++ b/packages/test-suite/package.json @@ -5,6 +5,7 @@ "author": "Hyeonjong ", "license": "MIT", "scripts": { + "lint": "eslint .", "test": "jest --ci --passWithNoTests" }, "dependencies": { diff --git a/packages/v2-plugin/package.json b/packages/v2-plugin/package.json index a107bae..cb95f3b 100644 --- a/packages/v2-plugin/package.json +++ b/packages/v2-plugin/package.json @@ -4,6 +4,9 @@ "version": "0.0.0", "author": "Hyeonjong ", "license": "MIT", + "scripts": { + "lint": "eslint ." + }, "dependencies": { "diff": "5.1.0", "prettier": "2.8.4" diff --git a/turbo.json b/turbo.json index f56ff80..f87430e 100644 --- a/turbo.json +++ b/turbo.json @@ -1,6 +1,14 @@ { "$schema": "https://turbo.build/schema.json", "pipeline": { - "test": {} + "dev": { + "cache": false, + "persistent": true + }, + "build": {}, + "lint": {}, + "test": { + "dependsOn": ["bundle-entry#build"] + } } } From 47b7a27681c304ad7f46a02f0b9769a8d6a5ae48 Mon Sep 17 00:00:00 2001 From: Hyeonjong Date: Sat, 30 Sep 2023 13:44:56 +0900 Subject: [PATCH 14/17] chore: create prettier-plugin-merge workspace --- package.json | 27 +-- .../prettier-plugin-merge/LICENSE | 0 .../prettier-plugin-merge/README.md | 0 packages/prettier-plugin-merge/package.json | 49 ++++ pnpm-lock.yaml | 214 +++++++++++++++++- 5 files changed, 259 insertions(+), 31 deletions(-) rename LICENSE => packages/prettier-plugin-merge/LICENSE (100%) rename README.md => packages/prettier-plugin-merge/README.md (100%) create mode 100644 packages/prettier-plugin-merge/package.json diff --git a/package.json b/package.json index 34942e6..6c8d780 100644 --- a/package.json +++ b/package.json @@ -2,45 +2,24 @@ "private": true, "name": "prettier-plugin-merge", "version": "0.2.1", - "description": "A Prettier plugin that sequentially applies the formatting results of other Prettier plugins.", - "repository": "https://github.com/ony3000/prettier-plugin-merge", - "keywords": [ - "prettier", - "plugin", - "merge" - ], "author": "Hyeonjong ", "license": "MIT", - "type": "module", - "files": [ - "dist" - ], - "types": "./dist/index.d.ts", - "main": "./dist/prettier-plugin-merge.umd.cjs", - "module": "./dist/prettier-plugin-merge.js", - "exports": { - ".": { - "import": "./dist/prettier-plugin-merge.js", - "require": "./dist/prettier-plugin-merge.umd.cjs" - } - }, "scripts": { "clean": "pnpm -r exec rm -rf node_modules", "dev": "turbo run dev --no-daemon --filter bundle-entry", "build": "turbo run build --no-daemon --filter bundle-entry", "lint": "turbo run lint --no-daemon", - "test": "turbo run test --no-daemon --filter test-suite" + "test": "turbo run test --no-daemon --filter test-suite", + "merge-deps": "merge-packages packages/bundle-entry packages/eslint-config-custom packages/test-suite packages/tsconfig packages/v2-plugin" }, "devDependencies": { "@trivago/prettier-plugin-sort-imports": "4.1.1", "eslint": "8.35.0", + "merge-packages": "0.1.6", "prettier": "~2.8.4", "tsconfig": "workspace:*", "turbo": "1.10.14", "typescript": "4.9.5" }, - "peerDependencies": { - "prettier": "~2.8.4" - }, "packageManager": "pnpm@7.33.0" } diff --git a/LICENSE b/packages/prettier-plugin-merge/LICENSE similarity index 100% rename from LICENSE rename to packages/prettier-plugin-merge/LICENSE diff --git a/README.md b/packages/prettier-plugin-merge/README.md similarity index 100% rename from README.md rename to packages/prettier-plugin-merge/README.md diff --git a/packages/prettier-plugin-merge/package.json b/packages/prettier-plugin-merge/package.json new file mode 100644 index 0000000..51403b0 --- /dev/null +++ b/packages/prettier-plugin-merge/package.json @@ -0,0 +1,49 @@ +{ + "name": "prettier-plugin-merge", + "version": "0.2.1", + "description": "A Prettier plugin that sequentially applies the formatting results of other Prettier plugins.", + "repository": "https://github.com/ony3000/prettier-plugin-merge", + "keywords": [ + "prettier", + "plugin", + "merge" + ], + "author": "Hyeonjong ", + "license": "MIT", + "files": [ + "dist" + ], + "main": "dist/index.js", + "scripts": {}, + "dependencies": { + "diff": "5.1.0" + }, + "devDependencies": { + "@trivago/prettier-plugin-sort-imports": "4.1.1", + "@types/diff": "5.0.3", + "@types/jest": "29.5.2", + "@types/node": "20.2.5", + "@typescript-eslint/eslint-plugin": "5.54.0", + "@typescript-eslint/parser": "5.54.0", + "esbuild": "0.17.19", + "eslint": "8.35.0", + "eslint-config-airbnb-base": "15.0.0", + "eslint-config-airbnb-typescript": "17.0.0", + "eslint-config-prettier": "8.6.0", + "eslint-import-resolver-node": "0.3.7", + "eslint-import-resolver-typescript": "3.5.3", + "eslint-plugin-import": "2.27.5", + "jest": "29.5.0", + "ppm-012": "npm:prettier-plugin-merge@0.1.2", + "ppm-020": "npm:prettier-plugin-merge@0.2.0", + "prettier": "2.8.4", + "prettier-plugin-brace-style": "0.2.1", + "prettier-plugin-classnames": "0.1.1", + "prettier-plugin-tailwindcss": "0.3.0", + "ts-jest": "29.1.0", + "typescript": "4.9.5" + }, + "peerDependencies": { + "prettier": "~2.8.4" + } +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8a1b555..49dd198 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -6,6 +6,7 @@ importers: specifiers: '@trivago/prettier-plugin-sort-imports': 4.1.1 eslint: 8.35.0 + merge-packages: 0.1.6 prettier: ~2.8.4 tsconfig: workspace:* turbo: 1.10.14 @@ -13,6 +14,7 @@ importers: devDependencies: '@trivago/prettier-plugin-sort-imports': 4.1.1_prettier@2.8.4 eslint: 8.35.0 + merge-packages: 0.1.6 prettier: 2.8.4 tsconfig: link:packages/tsconfig turbo: 1.10.14 @@ -63,6 +65,59 @@ importers: eslint-plugin-import: 2.27.5_tqrcrxlenpngfto46ddarus52y typescript: 4.9.5 + packages/prettier-plugin-merge: + specifiers: + '@trivago/prettier-plugin-sort-imports': 4.1.1 + '@types/diff': 5.0.3 + '@types/jest': 29.5.2 + '@types/node': 20.2.5 + '@typescript-eslint/eslint-plugin': 5.54.0 + '@typescript-eslint/parser': 5.54.0 + diff: 5.1.0 + esbuild: 0.17.19 + eslint: 8.35.0 + eslint-config-airbnb-base: 15.0.0 + eslint-config-airbnb-typescript: 17.0.0 + eslint-config-prettier: 8.6.0 + eslint-import-resolver-node: 0.3.7 + eslint-import-resolver-typescript: 3.5.3 + eslint-plugin-import: 2.27.5 + jest: 29.5.0 + ppm-012: npm:prettier-plugin-merge@0.1.2 + ppm-020: npm:prettier-plugin-merge@0.2.0 + prettier: 2.8.4 + prettier-plugin-brace-style: 0.2.1 + prettier-plugin-classnames: 0.1.1 + prettier-plugin-tailwindcss: 0.3.0 + ts-jest: 29.1.0 + typescript: 4.9.5 + dependencies: + diff: 5.1.0 + devDependencies: + '@trivago/prettier-plugin-sort-imports': 4.1.1_prettier@2.8.4 + '@types/diff': 5.0.3 + '@types/jest': 29.5.2 + '@types/node': 20.2.5 + '@typescript-eslint/eslint-plugin': 5.54.0_6mj2wypvdnknez7kws2nfdgupi + '@typescript-eslint/parser': 5.54.0_ycpbpc6yetojsgtrx3mwntkhsu + esbuild: 0.17.19 + eslint: 8.35.0 + eslint-config-airbnb-base: 15.0.0_yckic57kx266ph64dhq6ozvb54 + eslint-config-airbnb-typescript: 17.0.0_ljtlaqjgwrmro7jha4unrm7hxu + eslint-config-prettier: 8.6.0_eslint@8.35.0 + eslint-import-resolver-node: 0.3.7 + eslint-import-resolver-typescript: 3.5.3_yckic57kx266ph64dhq6ozvb54 + eslint-plugin-import: 2.27.5_tqrcrxlenpngfto46ddarus52y + jest: 29.5.0_@types+node@20.2.5 + ppm-012: /prettier-plugin-merge/0.1.2_prettier@2.8.4 + ppm-020: /prettier-plugin-merge/0.2.0_prettier@2.8.4 + prettier: 2.8.4 + prettier-plugin-brace-style: 0.2.1_prettier@2.8.4 + prettier-plugin-classnames: 0.1.1_prettier@2.8.4 + prettier-plugin-tailwindcss: 0.3.0_zmkqdpv3ldc45e6wei6qtrbrca + ts-jest: 29.1.0_jhirdiali34vud3zs257u5hama + typescript: 4.9.5 + packages/test-suite: specifiers: '@trivago/prettier-plugin-sort-imports': 4.1.1 @@ -1084,6 +1139,13 @@ packages: resolution: {integrity: sha512-amrLbRqTU9bXMCc6uX0sWpxsQzRIo9z6MJPkH1pkez/qOxuqSZVuryJAWoBRq94CeG8JxY+VK4Le9HtjQR5T9A==} dev: true + /@types/glob/7.2.0: + resolution: {integrity: sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==} + dependencies: + '@types/minimatch': 5.1.2 + '@types/node': 20.2.5 + dev: true + /@types/graceful-fs/4.1.6: resolution: {integrity: sha512-Sig0SNORX9fdW+bQuTEovKj3uHcUL6LQKbCrrqb1X7J6/ReAbhCXRAhc+SMejhLELFj2QcyuxmUooZ4bt5ReSw==} dependencies: @@ -1121,6 +1183,10 @@ packages: resolution: {integrity: sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==} dev: true + /@types/minimatch/5.1.2: + resolution: {integrity: sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA==} + dev: true + /@types/node/20.2.5: resolution: {integrity: sha512-JJulVEQXmiY9Px5axXHeYGLSjhkZEnD+MDPDGbCbIAbMslkKwmygtZFy1X6s/075Yo94sf8GuSlFfPzysQrWZQ==} dev: true @@ -1277,6 +1343,13 @@ packages: eslint-visitor-keys: 3.4.1 dev: true + /@voxpelli/semver-set/3.0.0: + resolution: {integrity: sha512-HB8epeFVvkwP/HFX1oNz9qdwqakbeFZEJgwmxbl2zd6lxEuJXY4b6McLgOMTbyzQlU217DZym/kZUcnuyuGgLg==} + engines: {node: '>=12.0.0'} + dependencies: + semver: 7.5.1 + dev: true + /acorn-jsx/5.3.2_acorn@8.8.2: resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} peerDependencies: @@ -1391,6 +1464,11 @@ packages: es-shim-unscopables: 1.0.0 dev: true + /at-least-node/1.0.0: + resolution: {integrity: sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==} + engines: {node: '>= 4.0.0'} + dev: true + /available-typed-arrays/1.0.5: resolution: {integrity: sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==} engines: {node: '>= 0.4'} @@ -1592,7 +1670,6 @@ packages: /classnames/2.3.2: resolution: {integrity: sha512-CSbhY4cFEJRe6/GQzIk5qXZ4Jeg5pcsP7b5peFSDpffpe1cqjASH/n9UTjBwOp6XpMSTwQ8Za2K5V02ueA7Tmw==} requiresBuild: true - dev: false optional: true /cliui/8.0.1: @@ -1632,6 +1709,11 @@ packages: resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} dev: true + /commander/7.2.0: + resolution: {integrity: sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==} + engines: {node: '>= 10'} + dev: true + /concat-map/0.0.1: resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} dev: true @@ -1723,6 +1805,11 @@ packages: object-keys: 1.1.1 dev: true + /detect-indent/6.1.0: + resolution: {integrity: sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA==} + engines: {node: '>=8'} + dev: true + /detect-newline/3.1.0: resolution: {integrity: sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==} engines: {node: '>=8'} @@ -1736,7 +1823,6 @@ packages: /diff/5.1.0: resolution: {integrity: sha512-D+mk+qE8VC/PAUrlAU34N+VfXev0ghe5ywmpqrawphmVZc1bEfn56uo9qpyGp1p4xpzOHkSW4ztBd6L7Xx4ACw==} engines: {node: '>=0.3.1'} - dev: false /dir-glob/3.0.1: resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} @@ -2289,6 +2375,16 @@ packages: is-callable: 1.2.7 dev: true + /fs-extra/9.1.0: + resolution: {integrity: sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==} + engines: {node: '>=10'} + dependencies: + at-least-node: 1.0.0 + graceful-fs: 4.2.11 + jsonfile: 6.1.0 + universalify: 2.0.0 + dev: true + /fs.realpath/1.0.0: resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} dev: true @@ -2362,6 +2458,10 @@ packages: resolve-pkg-maps: 1.0.0 dev: true + /git-hooks-list/1.0.3: + resolution: {integrity: sha512-Y7wLWcrLUXwk2noSka166byGCvhMtDRpgHdzCno1UQv/n/Hegp++a2xBWJL1lJarnKD3SWaljD+0z1ztqxuKyQ==} + dev: true + /glob-parent/5.1.2: resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} engines: {node: '>= 6'} @@ -2405,6 +2505,20 @@ packages: define-properties: 1.2.0 dev: true + /globby/10.0.0: + resolution: {integrity: sha512-3LifW9M4joGZasyYPz2A1U74zbC/45fvpXUvO/9KbSa+VV0aGZarWkfdgKyR9sExNP0t0x0ss/UMJpNpcaTspw==} + engines: {node: '>=8'} + dependencies: + '@types/glob': 7.2.0 + array-union: 2.1.0 + dir-glob: 3.0.1 + fast-glob: 3.2.12 + glob: 7.2.3 + ignore: 5.2.4 + merge2: 1.4.1 + slash: 3.0.0 + dev: true + /globby/11.1.0: resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==} engines: {node: '>=10'} @@ -2654,6 +2768,11 @@ packages: engines: {node: '>=8'} dev: true + /is-plain-obj/2.1.0: + resolution: {integrity: sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==} + engines: {node: '>=8'} + dev: true + /is-regex/1.1.4: resolution: {integrity: sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==} engines: {node: '>= 0.4'} @@ -3178,6 +3297,10 @@ packages: - ts-node dev: true + /jju/1.4.0: + resolution: {integrity: sha512-8wb9Yw966OSxApiCt0K3yNJL8pnNeIv+OEq2YMidz4FKP6nonSRoOXc80iXY4JaN2FC11B9qsNmDsm+ZOfMROA==} + dev: true + /js-sdsl/4.4.0: resolution: {integrity: sha512-FfVSdx6pJ41Oa+CF7RDaFmTnCaFhua+SNYQX74riGOpl96x+2jQCqEfQ2bnXu/5DPCqlRuiqyvTJM0Qjz26IVg==} dev: true @@ -3230,6 +3353,14 @@ packages: hasBin: true dev: true + /jsonfile/6.1.0: + resolution: {integrity: sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==} + dependencies: + universalify: 2.0.0 + optionalDependencies: + graceful-fs: 4.2.11 + dev: true + /kleur/3.0.3: resolution: {integrity: sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==} engines: {node: '>=6'} @@ -3307,6 +3438,21 @@ packages: tmpl: 1.0.5 dev: true + /merge-packages/0.1.6: + resolution: {integrity: sha512-H2k7H7WCkv2TwnyWJ+Z8PAGFoo4V8RVyre4B9eQka6YFJ6vL1IRnWPZXajVvsi7YtDOMmaJjHVozHb8qm0a1Kw==} + engines: {node: '>=12', npm: '>=6'} + hasBin: true + dependencies: + '@voxpelli/semver-set': 3.0.0 + commander: 7.2.0 + fs-extra: 9.1.0 + glob: 7.2.3 + jju: 1.4.0 + ramda: 0.27.2 + semver: 7.5.1 + sort-package-json: 1.57.0 + dev: true + /merge-stream/2.0.0: resolution: {integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==} dev: true @@ -3574,7 +3720,6 @@ packages: prettier: 2.8.4 optionalDependencies: prettier-plugin-merge: 0.1.2_prettier@2.8.4 - dev: false /prettier-plugin-classnames/0.1.1_prettier@2.8.4: resolution: {integrity: sha512-kA1Xp3YQEZJNJwrlu+PlbhNZk2DfzgE6I56C5IANh8eW/+Cmd+2RN2c5Qt1PiMEuw31CyWVTFTnzndFhm6rnmw==} @@ -3584,7 +3729,6 @@ packages: prettier: 2.8.4 optionalDependencies: classnames: 2.3.2 - dev: false /prettier-plugin-merge/0.1.2_prettier@2.8.4: resolution: {integrity: sha512-fXUGHRwIY1AwbFuiMhS+Kp4ELrXlbC171d3DpL3mlHfL8OP6rrlA5LLMmlaKsKfuK3CwTTfUAN9Tw89bii/qhQ==} @@ -3592,7 +3736,6 @@ packages: prettier: ~2.8.4 dependencies: prettier: 2.8.4 - dev: false /prettier-plugin-merge/0.2.0_prettier@2.8.4: resolution: {integrity: sha512-2iStjZCMlmBXoGstBcBYXHcNhmafSL/pwJd4mWAQVTOGXPWo1UJ77wuI22vpVgla8Pkgbn62UA51d/rBsxAwrg==} @@ -3601,7 +3744,6 @@ packages: dependencies: diff: 5.1.0 prettier: 2.8.4 - dev: false /prettier-plugin-tailwindcss/0.3.0_zmkqdpv3ldc45e6wei6qtrbrca: resolution: {integrity: sha512-009/Xqdy7UmkcTBpwlq7jsViDqXAYSOMLDrHAdTMlVZOrKfM2o9Ci7EMWTMZ7SkKBFTG04UM9F9iM2+4i6boDA==} @@ -3657,7 +3799,6 @@ packages: dependencies: '@trivago/prettier-plugin-sort-imports': 4.1.1_prettier@2.8.4 prettier: 2.8.4 - dev: false /prettier/2.8.4: resolution: {integrity: sha512-vIS4Rlc2FNh0BySk3Wkd6xmwxB0FpOndW5fisM5H8hsZSxU2VWVB5CWIkIjWvrHjIhxk2g3bfMKM87zNTrZddw==} @@ -3694,6 +3835,10 @@ packages: resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} dev: true + /ramda/0.27.2: + resolution: {integrity: sha512-SbiLPU40JuJniHexQSAgad32hfwd+DRUdwF2PlVuI5RZD0/vahUco7R8vD86J/tcEKKF9vZrUVwgtmGCqlCKyA==} + dev: true + /react-is/18.2.0: resolution: {integrity: sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==} dev: true @@ -3836,6 +3981,22 @@ packages: engines: {node: '>=12'} dev: true + /sort-object-keys/1.1.3: + resolution: {integrity: sha512-855pvK+VkU7PaKYPc+Jjnmt4EzejQHyhhF33q31qG8x7maDzkeFhAAThdCYay11CISO+qAMwjOBP+fPZe0IPyg==} + dev: true + + /sort-package-json/1.57.0: + resolution: {integrity: sha512-FYsjYn2dHTRb41wqnv+uEqCUvBpK3jZcTp9rbz2qDTmel7Pmdtf+i2rLaaPMRZeSVM60V3Se31GyWFpmKs4Q5Q==} + hasBin: true + dependencies: + detect-indent: 6.1.0 + detect-newline: 3.1.0 + git-hooks-list: 1.0.3 + globby: 10.0.0 + is-plain-obj: 2.1.0 + sort-object-keys: 1.1.3 + dev: true + /source-map-support/0.5.13: resolution: {integrity: sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==} dependencies: @@ -4041,6 +4202,40 @@ packages: yargs-parser: 21.1.1 dev: true + /ts-jest/29.1.0_jhirdiali34vud3zs257u5hama: + resolution: {integrity: sha512-ZhNr7Z4PcYa+JjMl62ir+zPiNJfXJN6E8hSLnaUKhOgqcn8vb3e537cpkd0FuAfRK3sR1LSqM1MOhliXNgOFPA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + hasBin: true + peerDependencies: + '@babel/core': '>=7.0.0-beta.0 <8' + '@jest/types': ^29.0.0 + babel-jest: ^29.0.0 + esbuild: '*' + jest: ^29.0.0 + typescript: '>=4.3 <6' + peerDependenciesMeta: + '@babel/core': + optional: true + '@jest/types': + optional: true + babel-jest: + optional: true + esbuild: + optional: true + dependencies: + bs-logger: 0.2.6 + esbuild: 0.17.19 + fast-json-stable-stringify: 2.1.0 + jest: 29.5.0_@types+node@20.2.5 + jest-util: 29.5.0 + json5: 2.2.3 + lodash.memoize: 4.1.2 + make-error: 1.3.6 + semver: 7.5.1 + typescript: 4.9.5 + yargs-parser: 21.1.1 + dev: true + /tsconfig-paths/3.14.2: resolution: {integrity: sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g==} dependencies: @@ -4173,6 +4368,11 @@ packages: which-boxed-primitive: 1.0.2 dev: true + /universalify/2.0.0: + resolution: {integrity: sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==} + engines: {node: '>= 10.0.0'} + dev: true + /untildify/4.0.0: resolution: {integrity: sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==} engines: {node: '>=8'} From 33fbae3f74294d034b2225d8053d1bdbb7617bc9 Mon Sep 17 00:00:00 2001 From: Hyeonjong Date: Sat, 30 Sep 2023 15:49:59 +0900 Subject: [PATCH 15/17] chore: create symbolic links --- LICENSE | 1 + README.md | 1 + 2 files changed, 2 insertions(+) create mode 120000 LICENSE create mode 120000 README.md diff --git a/LICENSE b/LICENSE new file mode 120000 index 0000000..739298d --- /dev/null +++ b/LICENSE @@ -0,0 +1 @@ +packages/prettier-plugin-merge/LICENSE \ No newline at end of file diff --git a/README.md b/README.md new file mode 120000 index 0000000..5964e63 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +packages/prettier-plugin-merge/README.md \ No newline at end of file From a44e40e88913015f14cfc344c2005d0ba32ed4cf Mon Sep 17 00:00:00 2001 From: Hyeonjong Date: Sun, 1 Oct 2023 11:37:33 +0900 Subject: [PATCH 16/17] chore: update turborepo pipeline --- package.json | 9 +++++---- packages/bundle-entry/package.json | 3 ++- packages/prettier-plugin-merge/package.json | 4 +++- turbo.json | 7 +++++++ 4 files changed, 17 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 6c8d780..0a4c218 100644 --- a/package.json +++ b/package.json @@ -1,16 +1,17 @@ { "private": true, - "name": "prettier-plugin-merge", - "version": "0.2.1", + "name": "root", + "version": "0.0.0", "author": "Hyeonjong ", "license": "MIT", "scripts": { - "clean": "pnpm -r exec rm -rf node_modules", + "clean": "pnpm -r exec rm -rf dist && pnpm -r exec rm -rf node_modules", "dev": "turbo run dev --no-daemon --filter bundle-entry", "build": "turbo run build --no-daemon --filter bundle-entry", "lint": "turbo run lint --no-daemon", "test": "turbo run test --no-daemon --filter test-suite", - "merge-deps": "merge-packages packages/bundle-entry packages/eslint-config-custom packages/test-suite packages/tsconfig packages/v2-plugin" + "merge-deps": "merge-packages packages/bundle-entry packages/eslint-config-custom packages/test-suite packages/tsconfig packages/v2-plugin", + "prepare-release": "pnpm -r exec rm -rf dist && turbo run prepare-release --no-daemon --filter prettier-plugin-merge" }, "devDependencies": { "@trivago/prettier-plugin-sort-imports": "4.1.1", diff --git a/packages/bundle-entry/package.json b/packages/bundle-entry/package.json index c12ebbb..8ca7926 100644 --- a/packages/bundle-entry/package.json +++ b/packages/bundle-entry/package.json @@ -8,7 +8,8 @@ "scripts": { "dev": "esbuild index.ts standalone.ts --bundle --outdir=dist --platform=node \"--external:prettier\" --watch=forever", "build": "esbuild index.ts standalone.ts --bundle --outdir=dist --platform=node \"--external:prettier\" --minify", - "lint": "eslint ." + "lint": "eslint .", + "prepare-release": "esbuild index.ts --bundle --outdir=dist --platform=node \"--external:prettier\" --minify" }, "dependencies": { "prettier": "2.8.4", diff --git a/packages/prettier-plugin-merge/package.json b/packages/prettier-plugin-merge/package.json index 51403b0..39b009c 100644 --- a/packages/prettier-plugin-merge/package.json +++ b/packages/prettier-plugin-merge/package.json @@ -14,7 +14,9 @@ "dist" ], "main": "dist/index.js", - "scripts": {}, + "scripts": { + "prepare-release": "cp -r ../bundle-entry/dist . && npm version prerelease --preid alpha && npm pack" + }, "dependencies": { "diff": "5.1.0" }, diff --git a/turbo.json b/turbo.json index f87430e..5063f38 100644 --- a/turbo.json +++ b/turbo.json @@ -9,6 +9,13 @@ "lint": {}, "test": { "dependsOn": ["bundle-entry#build"] + }, + "bundle-entry#prepare-release": { + "cache": false + }, + "prettier-plugin-merge#prepare-release": { + "cache": false, + "dependsOn": ["bundle-entry#prepare-release"] } } } From 08c9c513783e276647d6772409e8138894f3d254 Mon Sep 17 00:00:00 2001 From: Hyeonjong Date: Sun, 1 Oct 2023 23:40:13 +0900 Subject: [PATCH 17/17] chore: uses named export instead of default export --- packages/v2-plugin/index.ts | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/packages/v2-plugin/index.ts b/packages/v2-plugin/index.ts index 5a2afc9..92e1fd7 100644 --- a/packages/v2-plugin/index.ts +++ b/packages/v2-plugin/index.ts @@ -1,11 +1,2 @@ -import type { Plugin } from 'prettier'; - -import { parsers } from './parsers'; -import { printers } from './printers'; - -const mergePlugin: Plugin = { - parsers, - printers, -}; - -export default mergePlugin; +export { parsers } from './parsers'; +export { printers } from './printers';