@wise/wds-codemods 0.0.1-experimental-cbae00f โ†’ 0.0.1-experimental-926a862

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/dist/index.js +133 -135
  2. package/dist/index.js.map +1 -1
  3. package/dist/reportManualReview-DQ00-OKx.js +50 -0
  4. package/dist/reportManualReview-DQ00-OKx.js.map +1 -0
  5. package/dist/transforms/button.js +493 -566
  6. package/dist/transforms/button.js.map +1 -1
  7. package/package.json +19 -14
  8. package/.changeset/better-impalas-drop.md +0 -5
  9. package/.changeset/config.json +0 -13
  10. package/.changeset/quick-mails-joke.md +0 -128
  11. package/.github/CODEOWNERS +0 -1
  12. package/.github/actions/bootstrap/action.yml +0 -49
  13. package/.github/actions/commitlint/action.yml +0 -27
  14. package/.github/actions/test/action.yml +0 -23
  15. package/.github/workflows/cd-cd.yml +0 -127
  16. package/.github/workflows/renovate.yml +0 -16
  17. package/.husky/commit-msg +0 -1
  18. package/.husky/pre-commit +0 -1
  19. package/.nvmrc +0 -1
  20. package/.prettierignore +0 -1
  21. package/.prettierrc.js +0 -5
  22. package/DEVELOPER.md +0 -783
  23. package/babel.config.js +0 -28
  24. package/commitlint.config.js +0 -3
  25. package/dist/index.d.ts +0 -1
  26. package/dist/transforms/button.d.ts +0 -16
  27. package/eslint.config.js +0 -15
  28. package/jest.config.js +0 -9
  29. package/mkdocs.yml +0 -4
  30. package/renovate.json +0 -9
  31. package/scripts/build.sh +0 -10
  32. package/src/__tests__/runCodemod.test.ts +0 -96
  33. package/src/index.ts +0 -4
  34. package/src/runCodemod.ts +0 -88
  35. package/src/transforms/button/__tests__/button.test.tsx +0 -153
  36. package/src/transforms/button/button.ts +0 -418
  37. package/src/transforms/helpers/__tests__/createTestTransform.test.ts +0 -27
  38. package/src/transforms/helpers/__tests__/hasImport.test.ts +0 -52
  39. package/src/transforms/helpers/__tests__/iconUtils.test.ts +0 -207
  40. package/src/transforms/helpers/__tests__/jsxElementUtils.test.ts +0 -130
  41. package/src/transforms/helpers/__tests__/jsxReportingUtils.test.ts +0 -265
  42. package/src/transforms/helpers/createTestTransform.ts +0 -18
  43. package/src/transforms/helpers/hasImport.ts +0 -60
  44. package/src/transforms/helpers/iconUtils.ts +0 -87
  45. package/src/transforms/helpers/index.ts +0 -5
  46. package/src/transforms/helpers/jsxElementUtils.ts +0 -67
  47. package/src/transforms/helpers/jsxReportingUtils.ts +0 -224
  48. package/src/utils/__tests__/getOptions.test.ts +0 -170
  49. package/src/utils/__tests__/handleError.test.ts +0 -18
  50. package/src/utils/__tests__/loadTransformModules.test.ts +0 -51
  51. package/src/utils/__tests__/reportManualReview.test.ts +0 -42
  52. package/src/utils/getOptions.ts +0 -63
  53. package/src/utils/handleError.ts +0 -6
  54. package/src/utils/index.ts +0 -4
  55. package/src/utils/loadTransformModules.ts +0 -28
  56. package/src/utils/reportManualReview.ts +0 -17
  57. package/test-button.tsx +0 -230
  58. package/test-file.js +0 -2
  59. package/tsconfig.json +0 -14
  60. package/tsup.config.js +0 -13
@@ -1,127 +0,0 @@
1
- name: '๐Ÿš€ CI/CD'
2
-
3
- on:
4
- push:
5
- branches:
6
- - main
7
- pull_request:
8
-
9
- concurrency:
10
- group: ${{ github.workflow }}-${{ github.ref }}
11
- cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
12
-
13
- env:
14
- DO_NOT_TRACK: 1
15
-
16
- jobs:
17
- pipeline:
18
- name: '๐Ÿš€ Build, Lint & Test'
19
- runs-on: ubuntu-latest
20
-
21
- steps:
22
- - name: ๐Ÿ›’ Check out repository
23
- uses: actions/checkout@v4
24
-
25
- - name: โš™๏ธ Bootstrap
26
- uses: ./.github/actions/bootstrap
27
- with:
28
- github-token: ${{ secrets.GITHUB_TOKEN }}
29
- npm-token-automation: ${{ secrets.NPM_TOKEN_AUTOMATION }}
30
-
31
- - name: ๐Ÿ“ Lint
32
- run: pnpm run lint
33
-
34
- - name: ๐Ÿงช Run Tests
35
- run: pnpm test
36
-
37
- - name: ๐Ÿ—๏ธ Build
38
- run: pnpm run build
39
-
40
- publish-branch:
41
- name: ๐Ÿš€ Publish experimental packages
42
- if: ${{ github.event_name == 'pull_request' && !startsWith(github.head_ref, 'changeset-release/') }}
43
- runs-on: ubuntu-latest
44
- timeout-minutes: 10
45
- needs: [pipeline]
46
-
47
- steps:
48
- - name: ๐Ÿ›’ Check out repository
49
- uses: actions/checkout@v4
50
- with:
51
- token: ${{ secrets.GH_ACCESS_TOKEN }}
52
-
53
- - name: โš™๏ธ Bootstrap
54
- uses: ./.github/actions/bootstrap
55
- with:
56
- github-token: ${{ secrets.GITHUB_TOKEN }}
57
- npm-token-automation: ${{ secrets.NPM_TOKEN_AUTOMATION }}
58
-
59
- - name: ๐Ÿ—๏ธ Build
60
- run: pnpm run build
61
-
62
- - name: Setup npm token
63
- run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN_AUTOMATION }}" >> ~/.npmrc
64
- shell: bash
65
-
66
- - name: Publish snapshot release on npm
67
- run: |
68
- # Get current version from package.json
69
- CURRENT_VERSION=$(node -p "require('./package.json').version")
70
- EXPERIMENTAL_VERSION="${CURRENT_VERSION}-experimental-${GITHUB_SHA:0:7}"
71
-
72
- # Update package.json version directly
73
- npm version $EXPERIMENTAL_VERSION --no-git-tag-version
74
-
75
- # Publish the experimental version
76
- npm publish --tag experimental
77
- env:
78
- GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
79
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_AUTOMATION }}
80
-
81
- publish:
82
- name: ๐Ÿš€ Publish stable packages
83
- if: ${{ github.ref == 'refs/heads/main' }}
84
- runs-on: ubuntu-latest
85
- needs: [pipeline]
86
-
87
- steps:
88
- - name: ๐Ÿ›’ Check out repository
89
- uses: actions/checkout@v4
90
- with:
91
- token: ${{ secrets.GH_ACCESS_TOKEN }}
92
-
93
- - name: โš™๏ธ Bootstrap
94
- uses: ./.github/actions/bootstrap
95
- with:
96
- github-token: ${{ secrets.GITHUB_TOKEN }}
97
- npm-token-automation: ${{ secrets.NPM_TOKEN_AUTOMATION }}
98
-
99
- - name: ๐Ÿ—๏ธ Build
100
- run: pnpm run build
101
-
102
- - name: ๐Ÿ‘ฉโ€๐Ÿ’ป Set GitHub credentials
103
- run: |
104
- mkdir -p ~/.ssh
105
- ssh-keyscan github.com >> ~/.ssh/known_hosts
106
- git config --global user.name "tw-actions"
107
- git config --global user.email circle@circle.tw.ee
108
-
109
- - name: ๐Ÿ” Set up commit signing
110
- uses: crazy-max/ghaction-import-gpg@v6
111
- with:
112
- gpg_private_key: ${{ secrets.GPG_SIGN_KEY }}
113
- git_config_global: true
114
- git_user_signingkey: true
115
- git_commit_gpgsign: true
116
-
117
- - name: Create changesets release PR
118
- id: changesets
119
- uses: changesets/action@v1
120
- with:
121
- publish: pnpm release
122
- commit: 'chore: release'
123
- title: 'chore: release new version and update changelog'
124
- setupGitUser: false
125
- env:
126
- GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
127
- NPM_TOKEN: ${{ secrets.NPM_TOKEN_AUTOMATION }}
@@ -1,16 +0,0 @@
1
- name: Renovate
2
-
3
- on:
4
- push:
5
- branches:
6
- - main
7
- paths:
8
- - pnpm-lock.yaml
9
- schedule:
10
- - cron: '0 2 * * 1' # Run every Monday at 2AM
11
- workflow_dispatch:
12
-
13
- jobs:
14
- renovate:
15
- uses: transferwise/renovate-workflows/.github/workflows/run.yaml@v1
16
- secrets: inherit
package/.husky/commit-msg DELETED
@@ -1 +0,0 @@
1
- npx --no -- commitlint --edit $1
package/.husky/pre-commit DELETED
@@ -1 +0,0 @@
1
- pnpm lint
package/.nvmrc DELETED
@@ -1 +0,0 @@
1
- lts/*
package/.prettierignore DELETED
@@ -1 +0,0 @@
1
- pnpm-lock.yaml
package/.prettierrc.js DELETED
@@ -1,5 +0,0 @@
1
- export default {
2
- printWidth: 100,
3
- singleQuote: true,
4
- trailingComma: 'all',
5
- };