From bd5b656ebe7bd61a8cbfdf990d27c4004dab0885 Mon Sep 17 00:00:00 2001 From: r17x Date: Wed, 13 Sep 2023 00:30:42 +0700 Subject: [PATCH] chore: fix release configurations --- .github/workflows/release.yml | 16 +- pnpm-lock.yaml | 285 ++++++++++------------------------ pnpm-workspace.yaml | 10 +- tooling/cli/dist/index.bin.js | 11 +- tooling/cli/package.json | 2 +- 5 files changed, 113 insertions(+), 211 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9a069f4..624a2cd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -59,4 +59,18 @@ jobs: GIT_COMMITTER_NAME: "@kdnjbot" TURBO_TEAM: ${{ secrets.TURBO_TEAM }} TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} - run: pnpm run release + run: | + # PATCH: replace workspace:* to * + # multi-semantic-release (especially @semrel-extra/npm not supported version `workspace:*`. + # So, need to replace it before release + homebin=$HOME/kdnj/bin + mkdir -p $homebin + echo -e '#!/bin/bash\npnpm "$@"' > $homebin/npm && chmod +x $homebin/npm + + rc=/tmp/rcfile + echo 'shopt -s expand_aliases' > $rc + echo 'alias npm="$homebin/npm"' >> $rc + source $rc + find . -type f -name "package.json" -not -path './node_modules*' -not -path './.git*' -exec sed -i 's/workspace:\*/\*/g' {} \; + npm --help + pnpm run release diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1788174..1fea996 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,9 +1,5 @@ lockfileVersion: '6.0' -settings: - autoInstallPeers: true - excludeLinksFromLockfile: false - importers: .: @@ -19,7 +15,7 @@ importers: version: 17.7.1 '@kodingdotninja/style-guide': specifier: ^4.0.1 - version: 4.0.1(eslint@8.48.0)(prettier@3.0.2)(tailwindcss@3.3.3)(typescript@5.2.2) + version: 4.0.1(eslint@8.48.0)(prettier@3.0.3)(tailwindcss@3.3.3)(typescript@5.2.2) '@types/babel__generator': specifier: ^7.6.4 version: 7.6.4 @@ -273,7 +269,7 @@ importers: specifier: ^4.1.2 version: 4.1.2 create-chakra-icons: - specifier: '*' + specifier: workspace:* version: link:../../packages/create-chakra-icons degit: specifier: npm:tiged @@ -567,13 +563,13 @@ packages: engines: {node: '>=6.9.0'} dependencies: regenerator-runtime: 0.14.0 + dev: true /@babel/runtime@7.22.11: resolution: {integrity: sha512-ee7jVNlWN09+KftVOu9n7S8gQzD/Z6hN/I8VBRXW4P1+Xe7kJGXMwu8vds4aGIMHZnNbdpSWCfZZtinytpcAvA==} engines: {node: '>=6.9.0'} dependencies: regenerator-runtime: 0.14.0 - dev: true /@babel/template@7.22.5: resolution: {integrity: sha512-X7yV7eiwAxdj9k94NEylvbVHLiVG1nvzCV2EAowhxLTwODV1jl9UzZ48leOC0sH7OnuHrIkllaBgneUykIcZaw==} @@ -1922,7 +1918,7 @@ packages: resolution: {integrity: sha512-m4HEDZleaaCH+XgDDsPF15Ht6wTLsgDTeR3WYj9Q/k76JtWhrJjcP4+/XlG8LGT/Rol9qUfOIztXeA84ATpqPQ==} dependencies: '@babel/helper-module-imports': 7.22.5 - '@babel/runtime': 7.22.10 + '@babel/runtime': 7.22.11 '@emotion/hash': 0.9.1 '@emotion/memoize': 0.8.1 '@emotion/serialize': 1.1.2 @@ -1964,7 +1960,6 @@ packages: /@emotion/memoize@0.7.4: resolution: {integrity: sha512-Ja/Vfqe3HpuzRsG1oBtWTHk2PGZ7GR+2Vz5iYGelAw8dx32K0y7PjVuxK6z1nMpZOqAFsRUPCkK1YjJ56qJlgw==} - requiresBuild: true dev: false optional: true @@ -1981,7 +1976,7 @@ packages: '@types/react': optional: true dependencies: - '@babel/runtime': 7.22.10 + '@babel/runtime': 7.22.11 '@emotion/babel-plugin': 11.11.0 '@emotion/cache': 11.11.0 '@emotion/serialize': 1.1.2 @@ -2017,7 +2012,7 @@ packages: '@types/react': optional: true dependencies: - '@babel/runtime': 7.22.10 + '@babel/runtime': 7.22.11 '@emotion/babel-plugin': 11.11.0 '@emotion/is-prop-valid': 1.2.1 '@emotion/react': 11.11.1(@types/react@18.2.21)(react@18.2.0) @@ -2366,7 +2361,7 @@ packages: '@jridgewell/sourcemap-codec': 1.4.15 dev: true - /@kodingdotninja/style-guide@4.0.1(eslint@8.48.0)(prettier@3.0.2)(tailwindcss@3.3.3)(typescript@5.2.2): + /@kodingdotninja/style-guide@4.0.1(eslint@8.48.0)(prettier@3.0.3)(tailwindcss@3.3.3)(typescript@5.2.2): resolution: {integrity: sha512-AhRZrlLV7WEFNf0mqMCwQ5VRagCIt1yMk/t4KoTQsjrWxxnbwIWVPXAM70P8+CTuJ0/v+QxFhEEh72zqHLK31A==} peerDependencies: eslint: '>=8' @@ -2386,14 +2381,14 @@ packages: eslint-plugin-import: 2.28.1(@typescript-eslint/parser@6.4.1)(eslint-import-resolver-typescript@3.6.0)(eslint@8.48.0) eslint-plugin-jsx-a11y: 6.7.1(eslint@8.48.0) eslint-plugin-prefer-arrow-functions: 3.1.4(eslint@8.48.0) - eslint-plugin-prettier: 5.0.0(eslint-config-prettier@9.0.0)(eslint@8.48.0)(prettier@3.0.2) + eslint-plugin-prettier: 5.0.0(eslint-config-prettier@9.0.0)(eslint@8.48.0)(prettier@3.0.3) eslint-plugin-react: 7.33.2(eslint@8.48.0) eslint-plugin-react-hooks: 4.6.0(eslint@8.48.0) eslint-plugin-simple-import-sort: 10.0.0(eslint@8.48.0) eslint-plugin-tsdoc: 0.2.17 eslint-plugin-unicorn: 48.0.1(eslint@8.48.0) eslint-plugin-unused-imports: 3.0.0(@typescript-eslint/eslint-plugin@6.4.1)(eslint@8.48.0) - prettier: 3.0.2 + prettier: 3.0.3 typescript: 5.2.2 optionalDependencies: '@next/eslint-plugin-next': 13.4.19 @@ -2563,12 +2558,6 @@ packages: /@octokit/auth-token@3.0.4: resolution: {integrity: sha512-TWFX7cZF2LXoCvdmJWY7XVPi74aSY0+FfBZNSXEXFkMpjcqsQwDSYVv5FhRFaI0V1ECnwbz4j59T/G+rXNWaIQ==} engines: {node: '>= 14'} - dev: true - - /@octokit/auth-token@4.0.0: - resolution: {integrity: sha512-tY/msAuJo6ARbK6SPIxZrPBms3xPbfwBrulZe0Wtr/DIY9lje2HeV1uoebShn6mx7SjCHif6EjMvoREj+gZ+SA==} - engines: {node: '>= 18'} - dev: false /@octokit/core@4.2.4: resolution: {integrity: sha512-rYKilwgzQ7/imScn3M9/pFfUf4I1AZEH3KhyJmtPdE2zfaXAn2mFfUy4FbKewzc2We5y/LlKLj36fWJLKC2SIQ==} @@ -2583,20 +2572,6 @@ packages: universal-user-agent: 6.0.0 transitivePeerDependencies: - encoding - dev: true - - /@octokit/core@5.0.0: - resolution: {integrity: sha512-YbAtMWIrbZ9FCXbLwT9wWB8TyLjq9mxpKdgB3dUNxQcIVTf9hJ70gRPwAcqGZdY6WdJPZ0I7jLaaNDCiloGN2A==} - engines: {node: '>= 18'} - dependencies: - '@octokit/auth-token': 4.0.0 - '@octokit/graphql': 7.0.1 - '@octokit/request': 8.1.1 - '@octokit/request-error': 5.0.0 - '@octokit/types': 11.1.0 - before-after-hook: 2.2.3 - universal-user-agent: 6.0.0 - dev: false /@octokit/endpoint@7.0.6: resolution: {integrity: sha512-5L4fseVRUsDFGR00tMWD/Trdeeihn999rTMGRMC1G/Ldi1uWlWJzI98H4Iak5DB/RVvQuyMYKqSK/R6mbSOQyg==} @@ -2605,16 +2580,6 @@ packages: '@octokit/types': 9.3.2 is-plain-object: 5.0.0 universal-user-agent: 6.0.0 - dev: true - - /@octokit/endpoint@9.0.0: - resolution: {integrity: sha512-szrQhiqJ88gghWY2Htt8MqUDO6++E/EIXqJ2ZEp5ma3uGS46o7LZAzSLt49myB7rT+Hfw5Y6gO3LmOxGzHijAQ==} - engines: {node: '>= 18'} - dependencies: - '@octokit/types': 11.1.0 - is-plain-object: 5.0.0 - universal-user-agent: 6.0.0 - dev: false /@octokit/graphql@5.0.6: resolution: {integrity: sha512-Fxyxdy/JH0MnIB5h+UQ3yCoh1FG4kWXfFKkpWqjZHw/p+Kc8Y44Hu/kCgNBT6nU1shNumEchmW/sUO1JuQnPcw==} @@ -2625,16 +2590,6 @@ packages: universal-user-agent: 6.0.0 transitivePeerDependencies: - encoding - dev: true - - /@octokit/graphql@7.0.1: - resolution: {integrity: sha512-T5S3oZ1JOE58gom6MIcrgwZXzTaxRnxBso58xhozxHpOqSTgDS6YNeEUvZ/kRvXgPrRz/KHnZhtb7jUMRi9E6w==} - engines: {node: '>= 18'} - dependencies: - '@octokit/request': 8.1.1 - '@octokit/types': 11.1.0 - universal-user-agent: 6.0.0 - dev: false /@octokit/openapi-types@18.0.0: resolution: {integrity: sha512-V8GImKs3TeQRxRtXFpG2wl19V7444NIOTDF24AWuIbmNaNYOQMWRbjcGDXV5B+0n887fgDcuMNOmlul+k+oJtw==} @@ -2648,17 +2603,6 @@ packages: '@octokit/core': 4.2.4 '@octokit/tsconfig': 1.0.2 '@octokit/types': 9.3.2 - dev: true - - /@octokit/plugin-paginate-rest@8.0.0(@octokit/core@5.0.0): - resolution: {integrity: sha512-2xZ+baZWUg+qudVXnnvXz7qfrTmDeYPCzangBVq/1gXxii/OiS//4shJp9dnCCvj1x+JAm9ji1Egwm1BA47lPQ==} - engines: {node: '>= 18'} - peerDependencies: - '@octokit/core': '>=5' - dependencies: - '@octokit/core': 5.0.0 - '@octokit/types': 11.1.0 - dev: false /@octokit/plugin-retry@4.1.6(@octokit/core@4.2.4): resolution: {integrity: sha512-obkYzIgEC75r8+9Pnfiiqy3y/x1bc3QLE5B7qvv9wi9Kj0R5tGQFC6QMBg1154WQ9lAVypuQDGyp3hNpp15gQQ==} @@ -2669,19 +2613,6 @@ packages: '@octokit/core': 4.2.4 '@octokit/types': 9.3.2 bottleneck: 2.19.5 - dev: true - - /@octokit/plugin-retry@6.0.0(@octokit/core@5.0.0): - resolution: {integrity: sha512-a1/A4A+PB1QoAHQfLJxGHhLfSAT03bR1jJz3GgQJZvty2ozawFWs93MiBQXO7SL2YbO7CIq0Goj4qLOBj8JeMQ==} - engines: {node: '>= 18'} - peerDependencies: - '@octokit/core': '>=5' - dependencies: - '@octokit/core': 5.0.0 - '@octokit/request-error': 5.0.0 - '@octokit/types': 11.1.0 - bottleneck: 2.19.5 - dev: false /@octokit/plugin-throttling@5.2.3(@octokit/core@4.2.4): resolution: {integrity: sha512-C9CFg9mrf6cugneKiaI841iG8DOv6P5XXkjmiNNut+swePxQ7RWEdAZRp5rJoE1hjsIqiYcKa/ZkOQ+ujPI39Q==} @@ -2694,14 +2625,14 @@ packages: bottleneck: 2.19.5 dev: true - /@octokit/plugin-throttling@7.0.0(@octokit/core@5.0.0): - resolution: {integrity: sha512-KL2k/d0uANc8XqP5S64YcNFCudR3F5AaKO39XWdUtlJIjT9Ni79ekWJ6Kj5xvAw87udkOMEPcVf9xEge2+ahew==} + /@octokit/plugin-throttling@6.1.0(@octokit/core@4.2.4): + resolution: {integrity: sha512-JqMbTiPC0sUSTsLQsdq3JVx1mx8UtTo5mwR80YqPXE93+XhevvSyOR1rO2Z+NbO/r0TK4hqFJSSi/9oIZBxZTg==} engines: {node: '>= 18'} peerDependencies: - '@octokit/core': ^5.0.0 + '@octokit/core': ^4.0.0 dependencies: - '@octokit/core': 5.0.0 - '@octokit/types': 11.1.0 + '@octokit/core': 4.2.4 + '@octokit/types': 9.3.2 bottleneck: 2.19.5 dev: false @@ -2712,16 +2643,6 @@ packages: '@octokit/types': 9.3.2 deprecation: 2.3.1 once: 1.4.0 - dev: true - - /@octokit/request-error@5.0.0: - resolution: {integrity: sha512-1ue0DH0Lif5iEqT52+Rf/hf0RmGO9NWFjrzmrkArpG9trFfDM/efx00BJHdLGuro4BR/gECxCU2Twf5OKrRFsQ==} - engines: {node: '>= 18'} - dependencies: - '@octokit/types': 11.1.0 - deprecation: 2.3.1 - once: 1.4.0 - dev: false /@octokit/request@6.2.8: resolution: {integrity: sha512-ow4+pkVQ+6XVVsekSYBzJC0VTVvh/FCTUUgTsboGq+DTeWdyIFV8WSCdo0RIxk6wSkBTHqIK1mYuY7nOBXOchw==} @@ -2735,34 +2656,14 @@ packages: universal-user-agent: 6.0.0 transitivePeerDependencies: - encoding - dev: true - - /@octokit/request@8.1.1: - resolution: {integrity: sha512-8N+tdUz4aCqQmXl8FpHYfKG9GelDFd7XGVzyN8rc6WxVlYcfpHECnuRkgquzz+WzvHTK62co5di8gSXnzASZPQ==} - engines: {node: '>= 18'} - dependencies: - '@octokit/endpoint': 9.0.0 - '@octokit/request-error': 5.0.0 - '@octokit/types': 11.1.0 - is-plain-object: 5.0.0 - universal-user-agent: 6.0.0 - dev: false /@octokit/tsconfig@1.0.2: resolution: {integrity: sha512-I0vDR0rdtP8p2lGMzvsJzbhdOWy405HcGovrspJ8RRibHnyRgggUSNO5AIox5LmqiwmatHKYsvj6VGFHkqS7lA==} - dev: true - - /@octokit/types@11.1.0: - resolution: {integrity: sha512-Fz0+7GyLm/bHt8fwEqgvRBWwIV1S6wRRyq+V6exRKLVWaKGsuy6H9QFYeBVDV7rK6fO3XwHgQOPxv+cLj2zpXQ==} - dependencies: - '@octokit/openapi-types': 18.0.0 - dev: false /@octokit/types@9.3.2: resolution: {integrity: sha512-D4iHGTdAnEEVsB8fl95m1hiz7D5YiRdQ9b/OEb3BYRVwbLsGHcRVPz+u+BgRLNk0Q0/4iZCBqDN96j2XNxfXrA==} dependencies: '@octokit/openapi-types': 18.0.0 - dev: true /@pkgjs/parseargs@0.11.0: resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} @@ -2822,15 +2723,15 @@ packages: semantic-release: 21.1.1 dev: false - /@semantic-release/commit-analyzer@10.0.1(semantic-release@21.1.1): - resolution: {integrity: sha512-9ejHzTAijYs9z246sY/dKBatmOPcd0GQ7lH4MgLCkv1q4GCiDZRkjHJkaQZXZVaK7mJybS+sH3Ng6G8i3pYMGQ==} + /@semantic-release/commit-analyzer@10.0.0(semantic-release@21.1.1): + resolution: {integrity: sha512-/Uolz2+G+VRjP0eudAn0ldnC/VkSHzlctUdeEXL7ys7E6mLSFZdwdsR5pKDlTIgDJq4eYlshOZpwBNrmqrNajg==} engines: {node: '>=18'} peerDependencies: semantic-release: '>=20.1.0' dependencies: - conventional-changelog-angular: 6.0.0 - conventional-commits-filter: 3.0.0 - conventional-commits-parser: 4.0.0 + conventional-changelog-angular: 5.0.13 + conventional-commits-filter: 2.0.7 + conventional-commits-parser: 3.2.4 debug: 4.3.4 import-from: 4.0.0 lodash-es: 4.17.21 @@ -2901,7 +2802,7 @@ packages: debug: 4.3.4 dir-glob: 3.0.1 fs-extra: 11.1.1 - globby: 11.0.4 + globby: 11.1.0 http-proxy-agent: 7.0.0 https-proxy-agent: 7.0.1 issue-parser: 6.0.0 @@ -2915,17 +2816,17 @@ packages: - supports-color dev: true - /@semantic-release/github@9.0.4(semantic-release@21.1.1): - resolution: {integrity: sha512-kQCGFAsBErvCR6hzNuzu63cj4erQN2krm9zQlg8vl4j5X0mL0d/Ras0wmL5Gkr1TuSS2lweME7M4J5zvtDDDSA==} + /@semantic-release/github@9.0.0(semantic-release@21.1.1): + resolution: {integrity: sha512-ZAZTB6RGhyVHRzzXJW9Hjj4Yxagx4Lx6NqXk0AbOtIIH/mKEIwqSTYZR3iTm/KOy4/Bm5oQXIcwJ+p4+SkNWPg==} engines: {node: '>=18'} peerDependencies: semantic-release: '>=20.1.0' dependencies: - '@octokit/core': 5.0.0 - '@octokit/plugin-paginate-rest': 8.0.0(@octokit/core@5.0.0) - '@octokit/plugin-retry': 6.0.0(@octokit/core@5.0.0) - '@octokit/plugin-throttling': 7.0.0(@octokit/core@5.0.0) - '@semantic-release/error': 4.0.0 + '@octokit/core': 4.2.4 + '@octokit/plugin-paginate-rest': 6.1.2(@octokit/core@4.2.4) + '@octokit/plugin-retry': 4.1.6(@octokit/core@4.2.4) + '@octokit/plugin-throttling': 6.1.0(@octokit/core@4.2.4) + '@semantic-release/error': 3.0.0 aggregate-error: 4.0.1 debug: 4.3.4 dir-glob: 3.0.1 @@ -2939,6 +2840,7 @@ packages: semantic-release: 21.1.1 url-join: 5.0.0 transitivePeerDependencies: + - encoding - supports-color dev: false @@ -3007,22 +2909,22 @@ packages: - supports-color dev: true - /@semantic-release/release-notes-generator@11.0.4(semantic-release@21.1.1): - resolution: {integrity: sha512-j0Znnwq9IdWTCGzqSlkLv4MpALTsVDZxcVESzJCNN8pK2BYQlYaKsdZ1Ea/+7RlppI3vjhEi33ZKmjSGY1FLKw==} + /@semantic-release/release-notes-generator@11.0.0(semantic-release@21.1.1): + resolution: {integrity: sha512-va/taCWCHK11QbVoALKPI8B+lVF3UNZ2xOQOHEeHRd8YPpsY/9lymlWEuUQaTWKQpkgYbGpZD/Sap/SRlqob5g==} engines: {node: '>=18'} peerDependencies: semantic-release: '>=20.1.0' dependencies: - conventional-changelog-angular: 6.0.0 - conventional-changelog-writer: 6.0.1 - conventional-commits-filter: 3.0.0 - conventional-commits-parser: 4.0.0 + conventional-changelog-angular: 5.0.13 + conventional-changelog-writer: 5.0.1 + conventional-commits-filter: 2.0.7 + conventional-commits-parser: 3.2.4 debug: 4.3.4 - get-stream: 7.0.1 + get-stream: 6.0.1 import-from: 4.0.0 into-stream: 7.0.0 lodash-es: 4.17.21 - read-pkg-up: 10.1.0 + read-pkg-up: 9.1.0 semantic-release: 21.1.1 transitivePeerDependencies: - supports-color @@ -3722,7 +3624,7 @@ packages: resolution: {integrity: sha512-Cg7TFGpIr01vOQNODXOOaGz2NpCU5gl8x1qJFbb6hbZxR7XrcE2vtbAsTAbJ7/xwJtUuJEw8K8Zr/AE0LHlesg==} engines: {node: '>=10', npm: '>=6'} dependencies: - '@babel/runtime': 7.22.10 + '@babel/runtime': 7.22.11 cosmiconfig: 7.1.0 resolve: 1.22.4 dev: false @@ -3893,10 +3795,6 @@ packages: resolution: {integrity: sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==} engines: {node: '>=6'} - /caniuse-lite@1.0.30001522: - resolution: {integrity: sha512-TKiyTVZxJGhsTszLuzb+6vUZSjVOAhClszBr2Ta2k9IwtNBT/4dzmL6aywt0HCgEZlmwJzXJd8yNiob6HgwTRg==} - dev: false - /caniuse-lite@1.0.30001523: resolution: {integrity: sha512-I5q5cisATTPZ1mc588Z//pj/Ox80ERYDfR71YnvY7raS/NOk8xXlZcB0sF7JdqaV//kOaa6aus7lRfpdnt1eBA==} @@ -4131,13 +4029,13 @@ packages: dependencies: compare-func: 2.0.0 q: 1.5.1 - dev: true /conventional-changelog-angular@6.0.0: resolution: {integrity: sha512-6qLgrBF4gueoC7AFVHu51nHL9pF9FRjXrH+ceVf7WmAfH3gs+gEYOkvxhjMPjZu57I4AGUGoNTY8V7Hrgf1uqg==} engines: {node: '>=14'} dependencies: compare-func: 2.0.0 + dev: true /conventional-changelog-conventionalcommits@6.1.0: resolution: {integrity: sha512-3cS3GEtR78zTfMzk0AizXKKIdN4OvSh7ibNz6/DPbhWWQu7LqE/8+/GqSodV+sywUR2gpJAdP/1JFf4XtN7Zpw==} @@ -4160,21 +4058,6 @@ packages: semver: 6.3.1 split: 1.0.1 through2: 4.0.2 - dev: true - - /conventional-changelog-writer@6.0.1: - resolution: {integrity: sha512-359t9aHorPw+U+nHzUXHS5ZnPBOizRxfQsWT5ZDHBfvfxQOAik+yfuhKXG66CN5LEWPpMNnIMHUTCKeYNprvHQ==} - engines: {node: '>=14'} - hasBin: true - dependencies: - conventional-commits-filter: 3.0.0 - dateformat: 3.0.3 - handlebars: 4.7.8 - json-stringify-safe: 5.0.1 - meow: 8.1.2 - semver: 7.5.4 - split: 1.0.1 - dev: false /conventional-commits-filter@2.0.7: resolution: {integrity: sha512-ASS9SamOP4TbCClsRHxIHXRfcGCnIoQqkvAzCSbZzTFLfcTqJVugB0agRgsEELsqaeWgsXv513eS116wnlSSPA==} @@ -4182,15 +4065,6 @@ packages: dependencies: lodash.ismatch: 4.4.0 modify-values: 1.0.1 - dev: true - - /conventional-commits-filter@3.0.0: - resolution: {integrity: sha512-1ymej8b5LouPx9Ox0Dw/qAO2dVdfpRFq28e5Y0jJEU8ZrLdy0vOSkkIInwmxErFGhg6SALro60ZrwYFVTUDo4Q==} - engines: {node: '>=14'} - dependencies: - lodash.ismatch: 4.4.0 - modify-values: 1.0.1 - dev: false /conventional-commits-parser@3.2.4: resolution: {integrity: sha512-nK7sAtfi+QXbxHCYfhpZsfRtaitZLIA6889kFIouLvz6repszQDgxBu7wf2WbU+Dco7sAnNCJYERCwt54WPC2Q==} @@ -4203,7 +4077,6 @@ packages: meow: 8.1.2 split2: 3.2.2 through2: 4.0.2 - dev: true /conventional-commits-parser@4.0.0: resolution: {integrity: sha512-WRv5j1FsVM5FISJkoYMR6tPk07fkKT0UodruX4je86V4owk451yjXAKzKAPOs9l7y59E2viHUS9eQ+dfUA9NSg==} @@ -4214,6 +4087,7 @@ packages: is-text-path: 1.0.1 meow: 8.1.2 split2: 3.2.2 + dev: true /convert-source-map@1.9.0: resolution: {integrity: sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==} @@ -4894,7 +4768,7 @@ packages: eslint: 8.48.0 dev: true - /eslint-plugin-prettier@5.0.0(eslint-config-prettier@9.0.0)(eslint@8.48.0)(prettier@3.0.2): + /eslint-plugin-prettier@5.0.0(eslint-config-prettier@9.0.0)(eslint@8.48.0)(prettier@3.0.3): resolution: {integrity: sha512-AgaZCVuYDXHUGxj/ZGu1u8H8CYgDY3iG6w5kUFw4AzMVXzB7VvbKgYR4nATIN+OvUrghMbiDLeimVjVY5ilq3w==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: @@ -4910,7 +4784,7 @@ packages: dependencies: eslint: 8.48.0 eslint-config-prettier: 9.0.0(eslint@8.48.0) - prettier: 3.0.2 + prettier: 3.0.3 prettier-linter-helpers: 1.0.0 synckit: 0.8.5 dev: true @@ -5593,11 +5467,6 @@ packages: resolution: {integrity: sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==} engines: {node: '>=10'} - /get-stream@7.0.1: - resolution: {integrity: sha512-3M8C1EOFN6r8AMUhwUAACIoXZJEOufDU5+0gFFN5uNs6XYOralD2Pqkl7m046va6x77FwposWXbAhPPIOus7mQ==} - engines: {node: '>=16'} - dev: false - /get-stream@8.0.1: resolution: {integrity: sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==} engines: {node: '>=16'} @@ -5661,7 +5530,7 @@ packages: hasBin: true dependencies: foreground-child: 3.1.1 - jackspeak: 2.3.0 + jackspeak: 2.3.3 minimatch: 9.0.3 minipass: 7.0.3 path-scurry: 1.10.1 @@ -6411,8 +6280,8 @@ packages: reflect.getprototypeof: 1.0.3 dev: true - /jackspeak@2.3.0: - resolution: {integrity: sha512-uKmsITSsF4rUWQHzqaRUuyAir3fZfW3f202Ee34lz/gZCi970CPZwyQXLGNgWJvvZbvFyzeyGq0+4fcG/mBKZg==} + /jackspeak@2.3.3: + resolution: {integrity: sha512-R2bUw+kVZFS/h1AZqBKrSgDmdmjApzgY0AlCPumopFiAlbUxE2gf+SCuBzQ0cP5hHmUmFYF5yw55T97Th5Kstg==} engines: {node: '>=14'} dependencies: '@isaacs/cliui': 8.0.2 @@ -7002,7 +6871,7 @@ packages: '@next/env': 13.4.19 '@swc/helpers': 0.5.1 busboy: 1.6.0 - caniuse-lite: 1.0.30001522 + caniuse-lite: 1.0.30001523 postcss: 8.4.14 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) @@ -7045,7 +6914,6 @@ packages: optional: true dependencies: whatwg-url: 5.0.0 - dev: true /node-plop@0.31.1: resolution: {integrity: sha512-qmXJJt3YETFt/e0dtMADVpvck6EvN01Jig086o+J3M6G++mWA7iJ3Pqz4m4kvlynh73Iz2/rcZzxq7xTiF+aIQ==} @@ -7616,8 +7484,8 @@ packages: json-parse-even-better-errors: 2.3.1 lines-and-columns: 1.2.4 - /parse-json@7.0.0: - resolution: {integrity: sha512-kP+TQYAzAiVnzOlWOe0diD6L35s9bJh0SCn95PIbZFKrOYuIRQsQkeWEYxzVDuHTt9V9YqvYCJ2Qo4z9wdfZPw==} + /parse-json@7.1.0: + resolution: {integrity: sha512-ihtdrgbqdONYD156Ap6qTcaGcGdkdAxodO1wLqQ/j7HP1u2sFYppINiq4jyC8F+Nm+4fVufylCV00QmkTHkSUg==} engines: {node: '>=16'} dependencies: '@babel/code-frame': 7.22.10 @@ -7847,8 +7715,8 @@ packages: fast-diff: 1.3.0 dev: true - /prettier@3.0.2: - resolution: {integrity: sha512-o2YR9qtniXvwEZlOKbveKfDQVyqxbEIWn48Z8m3ZJjBjcCmUy3xZGIv+7AkaeuaTr6yPXJjwv07ZWlsWbEy1rQ==} + /prettier@3.0.3: + resolution: {integrity: sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==} engines: {node: '>=14'} hasBin: true dev: true @@ -7886,7 +7754,6 @@ packages: /q@1.5.1: resolution: {integrity: sha512-kV/CThkXo6xyFEZUugw/+pIOywXcDbFYgSct5cT3gqlbkBE1SJdwy6UQoZvodiWF/ckQLZyDE/Bu1M6gVu5lVw==} engines: {node: '>=0.6.0', teleport: '>=0.2.0'} - dev: true /queue-microtask@1.2.3: resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} @@ -7909,7 +7776,7 @@ packages: peerDependencies: react: ^15.3.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 dependencies: - '@babel/runtime': 7.22.10 + '@babel/runtime': 7.22.11 react: 18.2.0 dev: false @@ -7936,7 +7803,7 @@ packages: '@types/react': optional: true dependencies: - '@babel/runtime': 7.22.10 + '@babel/runtime': 7.22.11 '@types/react': 18.2.21 focus-lock: 0.11.6 prop-types: 15.8.1 @@ -8021,7 +7888,7 @@ packages: dependencies: find-up: 6.3.0 read-pkg: 8.1.0 - type-fest: 4.2.0 + type-fest: 4.3.1 dev: false /read-pkg-up@7.0.1: @@ -8032,6 +7899,15 @@ packages: read-pkg: 5.2.0 type-fest: 0.8.1 + /read-pkg-up@9.1.0: + resolution: {integrity: sha512-vaMRR1AC1nrd5CQM0PhlRsO5oc2AAigqr7cCrZ/MW/Rsaflz4RlgzkpL4qoU/z1F6wrbd85iFv1OQj/y5RdGvg==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + dependencies: + find-up: 6.3.0 + read-pkg: 7.1.0 + type-fest: 2.19.0 + dev: false + /read-pkg@5.2.0: resolution: {integrity: sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==} engines: {node: '>=8'} @@ -8041,14 +7917,24 @@ packages: parse-json: 5.2.0 type-fest: 0.6.0 + /read-pkg@7.1.0: + resolution: {integrity: sha512-5iOehe+WF75IccPc30bWTbpdDQLOCc3Uu8bi3Dte3Eueij81yx1Mrufk8qBx/YAbR4uL1FdUr+7BKXDwEtisXg==} + engines: {node: '>=12.20'} + dependencies: + '@types/normalize-package-data': 2.4.1 + normalize-package-data: 3.0.3 + parse-json: 5.2.0 + type-fest: 2.19.0 + dev: false + /read-pkg@8.1.0: resolution: {integrity: sha512-PORM8AgzXeskHO/WEv312k9U03B8K9JSiWF/8N9sUuFjBa+9SF2u6K7VClzXwDXab51jCd8Nd36CNM+zR97ScQ==} engines: {node: '>=16'} dependencies: '@types/normalize-package-data': 2.4.1 normalize-package-data: 6.0.0 - parse-json: 7.0.0 - type-fest: 4.2.0 + parse-json: 7.1.0 + type-fest: 4.3.1 dev: false /read-yaml-file@1.1.0: @@ -8385,11 +8271,11 @@ packages: engines: {node: '>=18'} hasBin: true dependencies: - '@semantic-release/commit-analyzer': 10.0.1(semantic-release@21.1.1) + '@semantic-release/commit-analyzer': 10.0.0(semantic-release@21.1.1) '@semantic-release/error': 4.0.0 - '@semantic-release/github': 9.0.4(semantic-release@21.1.1) + '@semantic-release/github': 9.0.0(semantic-release@21.1.1) '@semantic-release/npm': 10.0.5(semantic-release@21.1.1) - '@semantic-release/release-notes-generator': 11.0.4(semantic-release@21.1.1) + '@semantic-release/release-notes-generator': 11.0.0(semantic-release@21.1.1) aggregate-error: 4.0.1 cosmiconfig: 8.2.0 debug: 4.3.4 @@ -8414,6 +8300,7 @@ packages: signale: 1.4.0 yargs: 17.7.2 transitivePeerDependencies: + - encoding - supports-color dev: false @@ -8855,8 +8742,8 @@ packages: engines: {node: '>=6'} dev: true - /tar@6.1.15: - resolution: {integrity: sha512-/zKt9UyngnxIT/EAGYuxaMYgOIJiP81ab9ZfkILq4oNLPFX50qyYmu7jRj9qeXoxmJHjGlbH0+cm2uy1WCs10A==} + /tar@6.2.0: + resolution: {integrity: sha512-/Wo7DcT0u5HUV486xg675HtjNd3BXZ6xDbzsCUZPt5iw8bTQ63bP0Raut3mvro9u+CUyq7YQd8Cx55fsZXxqLQ==} engines: {node: '>=10'} dependencies: chownr: 2.0.0 @@ -8929,7 +8816,6 @@ packages: resolution: {integrity: sha512-iOqSav00cVxEEICeD7TjLB1sueEL+81Wpzp2bY17uZjZN0pWZPuo4suZ/61VujxmqSGFfgOcNuTZ85QJwNZQpw==} dependencies: readable-stream: 3.6.2 - dev: true /through@2.3.8: resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==} @@ -8946,7 +8832,7 @@ packages: https-proxy-agent: 5.0.0 mri: 1.1.6 rimraf: 3.0.2 - tar: 6.1.15 + tar: 6.2.0 tiny-glob: 0.2.8 transitivePeerDependencies: - supports-color @@ -8997,7 +8883,6 @@ packages: /tr46@0.0.3: resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==} - dev: true /tr46@1.0.1: resolution: {integrity: sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA==} @@ -9247,8 +9132,8 @@ packages: resolution: {integrity: sha512-tLq3bSNx+xSpwvAJnzrK0Ep5CLNWjvFTOp71URMaAEWBfRb9nnJiBoUe0tF8bI4ZFO3omgBR6NvnbzVUT3Ly4g==} engines: {node: '>=14.16'} - /type-fest@4.2.0: - resolution: {integrity: sha512-5zknd7Dss75pMSED270A1RQS3KloqRJA9XbXLe0eCxyw7xXFb3rd+9B0UQ/0E+LQT6lnrLviEolYORlRWamn4w==} + /type-fest@4.3.1: + resolution: {integrity: sha512-pphNW/msgOUSkJbH58x8sqpq8uQj6b0ZKGxEsLKMUnGorRcDjrUaLS+39+/ub41JNTwrrMyJcUB8+YZs3mbwqw==} engines: {node: '>=16'} dev: false @@ -9454,7 +9339,6 @@ packages: /webidl-conversions@3.0.1: resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==} - dev: true /webidl-conversions@4.0.2: resolution: {integrity: sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==} @@ -9465,7 +9349,6 @@ packages: dependencies: tr46: 0.0.3 webidl-conversions: 3.0.1 - dev: true /whatwg-url@7.1.0: resolution: {integrity: sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==} @@ -9643,3 +9526,7 @@ packages: /zod@3.21.4: resolution: {integrity: sha512-m46AKbrzKVzOzs/DZgVnG5H55N1sv1M8qZU3A8RIKbs3mrACDNeIOeilDymVb2HdmP8uwshOCF4uJ8uM9rCqJw==} dev: false + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index c2d7460..49c8b0a 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,6 +1,6 @@ packages: - - "packages/*" - - "packages/@chakra-icons/*" - - "templates/*" - - "tooling/*" - - "website" + - 'packages/*' + - 'packages/@chakra-icons/*' + - 'templates/*' + - 'tooling/*' + - 'website' diff --git a/tooling/cli/dist/index.bin.js b/tooling/cli/dist/index.bin.js index 377d74d..cca29fb 100755 --- a/tooling/cli/dist/index.bin.js +++ b/tooling/cli/dist/index.bin.js @@ -31,7 +31,7 @@ var ruins = __toESM(require("ruins-ts")); var package_default = { name: "@chakra-icons/cli", description: "a tooling for manage everything in @chakra-icons", - version: "1.0.2", + version: "2.0.0", author: "ri7nz ", homepage: "https://github.com/kodingdotninja/chakra-icons", repository: "https://github.com/kodingdotninja/chakra-icons.git", @@ -102,16 +102,19 @@ var metaIconDefault = (name, repository, iconPath, clonePath, sourcePath) => ({ sourcePath, sources: [] }); -var hotfixNameMap = [ +var prefixWhenNumeric = (prefix) => (n) => /^\d.*$/.test(n) ? `${prefix}${n}` : n; +var moduleName = (0, import_function.flow)(prefixWhenNumeric("I"), import_change_case.pascalCase, S.replace(/[^A-Z0-9]/gi, "")); +var hotfixPkgIconNameReplace = [ [ /tabler-icons/i, { "device-game-pad": "device-dpad" + // prevent conflict with `device-gamepad` } ] ]; var hotfixName = (metaIcon) => (name) => (0, import_function.pipe)( - hotfixNameMap, + hotfixPkgIconNameReplace, A.findFirst(([pattern]) => pattern.test(metaIcon.repository)), O.fold( () => name, @@ -122,8 +125,6 @@ var hotfixName = (metaIcon) => (name) => (0, import_function.pipe)( ) ) ); -var prefixWhenNumeric = (prefix) => (n) => /^\d.*$/.test(n) ? `${prefix}${n}` : n; -var moduleName = (0, import_function.flow)(prefixWhenNumeric("I"), import_change_case.pascalCase, S.replace(/[^A-Z0-9]/gi, "")); var setSources = (metaIcon) => (beSources) => { const createSource = (sources, svg) => { const { dir, name: _name } = path.parse(svg); diff --git a/tooling/cli/package.json b/tooling/cli/package.json index b73df99..f7cd0a0 100644 --- a/tooling/cli/package.json +++ b/tooling/cli/package.json @@ -24,7 +24,7 @@ "@babel/types": "^7.22.11", "arg": "^5.0.2", "change-case": "^4.1.2", - "create-chakra-icons": "*", + "create-chakra-icons": "workspace:*", "degit": "npm:tiged", "fp-ts": "^2.16.1", "glob": "^10.3.3",