@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.
- package/dist/index.js +133 -135
- package/dist/index.js.map +1 -1
- package/dist/reportManualReview-DQ00-OKx.js +50 -0
- package/dist/reportManualReview-DQ00-OKx.js.map +1 -0
- package/dist/transforms/button.js +493 -566
- package/dist/transforms/button.js.map +1 -1
- package/package.json +19 -14
- package/.changeset/better-impalas-drop.md +0 -5
- package/.changeset/config.json +0 -13
- package/.changeset/quick-mails-joke.md +0 -128
- package/.github/CODEOWNERS +0 -1
- package/.github/actions/bootstrap/action.yml +0 -49
- package/.github/actions/commitlint/action.yml +0 -27
- package/.github/actions/test/action.yml +0 -23
- package/.github/workflows/cd-cd.yml +0 -127
- package/.github/workflows/renovate.yml +0 -16
- package/.husky/commit-msg +0 -1
- package/.husky/pre-commit +0 -1
- package/.nvmrc +0 -1
- package/.prettierignore +0 -1
- package/.prettierrc.js +0 -5
- package/DEVELOPER.md +0 -783
- package/babel.config.js +0 -28
- package/commitlint.config.js +0 -3
- package/dist/index.d.ts +0 -1
- package/dist/transforms/button.d.ts +0 -16
- package/eslint.config.js +0 -15
- package/jest.config.js +0 -9
- package/mkdocs.yml +0 -4
- package/renovate.json +0 -9
- package/scripts/build.sh +0 -10
- package/src/__tests__/runCodemod.test.ts +0 -96
- package/src/index.ts +0 -4
- package/src/runCodemod.ts +0 -88
- package/src/transforms/button/__tests__/button.test.tsx +0 -153
- package/src/transforms/button/button.ts +0 -418
- package/src/transforms/helpers/__tests__/createTestTransform.test.ts +0 -27
- package/src/transforms/helpers/__tests__/hasImport.test.ts +0 -52
- package/src/transforms/helpers/__tests__/iconUtils.test.ts +0 -207
- package/src/transforms/helpers/__tests__/jsxElementUtils.test.ts +0 -130
- package/src/transforms/helpers/__tests__/jsxReportingUtils.test.ts +0 -265
- package/src/transforms/helpers/createTestTransform.ts +0 -18
- package/src/transforms/helpers/hasImport.ts +0 -60
- package/src/transforms/helpers/iconUtils.ts +0 -87
- package/src/transforms/helpers/index.ts +0 -5
- package/src/transforms/helpers/jsxElementUtils.ts +0 -67
- package/src/transforms/helpers/jsxReportingUtils.ts +0 -224
- package/src/utils/__tests__/getOptions.test.ts +0 -170
- package/src/utils/__tests__/handleError.test.ts +0 -18
- package/src/utils/__tests__/loadTransformModules.test.ts +0 -51
- package/src/utils/__tests__/reportManualReview.test.ts +0 -42
- package/src/utils/getOptions.ts +0 -63
- package/src/utils/handleError.ts +0 -6
- package/src/utils/index.ts +0 -4
- package/src/utils/loadTransformModules.ts +0 -28
- package/src/utils/reportManualReview.ts +0 -17
- package/test-button.tsx +0 -230
- package/test-file.js +0 -2
- package/tsconfig.json +0 -14
- 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
|