@transferwise/icons 4.5.0 → 4.5.2

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 (2) hide show
  1. package/README.md +3 -4
  2. package/package.json +29 -26
package/README.md CHANGED
@@ -150,9 +150,8 @@ The build process for parsing, optimizing and generating individual icon compone
150
150
  Follow these steps, if you'd like to contribute to the project:
151
151
 
152
152
  1. Run `pnpm run build` to check your changes.
153
- 1. For a single-run check of version match and linting errors, run `pnpm run test`.
154
- 1. **Bump version number in `package.json` according to [semver](http://semver.org/) and add an item to `CHANGELOG.md`**.
153
+ 1. For a single-run check of linting errors, run `pnpm run test`.
154
+ 1. **Add a changeset** by running `pnpm changeset` and following the prompts — select the semver bump level and describe what changed.
155
155
  1. Submit your pull request from a feature branch and get code reviewed.
156
156
  1. If the pull request is approved and the [Github Action](https://github.com/transferwise/icons/actions) passes, you will be able to squash and merge.
157
- 1. (CircleCI build will fail. I don't know how to get it to stop running)
158
- 1. Code will automatically be released to [GitHub](https://github.com/transferwise/icons/releases) and published to [npm](https://www.npmjs.com/package/@transferwise/icons) with the version specified in the changelog and package file.
157
+ 1. After merge, the changesets action will open a release PR titled "chore: release new version and update changelog" that bumps the version and updates `CHANGELOG.md`. When that PR is merged, the package is automatically published to [npm](https://www.npmjs.com/package/@transferwise/icons) and released on [GitHub](https://github.com/transferwise/icons/releases).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/icons",
3
- "version": "4.5.0",
3
+ "version": "4.5.2",
4
4
  "description": "Wise SVG icons",
5
5
  "author": "Wise Payments Ltd.",
6
6
  "sideEffects": [
@@ -13,27 +13,6 @@
13
13
  "lib/",
14
14
  "build/"
15
15
  ],
16
- "scripts": {
17
- "dev": "next dev",
18
- "build": "run-s build:*",
19
- "build:clean": "rimraf lib build && mkdir lib && mkdir -p build/components",
20
- "build:icon-components": "pnpm run build-icon-components",
21
- "build:css": "cat src/style/main.css build/rtl.css | postcss --output lib/styles/main.min.css",
22
- "build:format": "pnpm run prettier --write",
23
- "build:rollup": "rollup --config --sourcemap",
24
- "demo:build": "next build && touch demo/.nojekyll",
25
- "demo:deploy": "gh-pages -d demo -t true",
26
- "rollup:watch": "rollup --config --sourcemap --watch",
27
- "test": "run-s test:*",
28
- "test:lint": "pnpm run lint",
29
- "check-release-to-github": "release-to-github-with-changelog-pre-release-checks",
30
- "lint": "eslint 'src/build-scripts/**/*.{ts,tsx}'",
31
- "lint-fix": "pnpm run lint --fix",
32
- "prettier": "prettier './build/**/*.{ts,tsx,js}'",
33
- "release-to-github": "release-to-github-with-changelog --branch=main",
34
- "build-icon-components": "ts-node --project ./tsconfig.scripts.json src/build-scripts/build-icon-components.ts",
35
- "get-atoms": "git submodule update --remote --merge"
36
- },
37
16
  "repository": {
38
17
  "type": "git",
39
18
  "fullname": "transferwise/icons",
@@ -56,6 +35,7 @@
56
35
  "@babel/preset-env": "^8.0.2",
57
36
  "@babel/preset-react": "^8.0.1",
58
37
  "@babel/preset-typescript": "^8.0.1",
38
+ "@changesets/cli": "^3.0.2",
59
39
  "@csstools/postcss-minify": "^3.0.0",
60
40
  "@rollup/plugin-babel": "^7.1.0",
61
41
  "@rollup/plugin-typescript": "^12.3.0",
@@ -76,7 +56,6 @@
76
56
  "prettier": "^3.9.6",
77
57
  "react": "^18.3.1",
78
58
  "react-dom": "^18.3.1",
79
- "release-to-github-with-changelog": "^1.2.4",
80
59
  "rimraf": "^6.1.3",
81
60
  "rollup": "^4.63.0",
82
61
  "rollup-plugin-analyzer": "^4.0.0",
@@ -86,17 +65,41 @@
86
65
  "ts-node": "^10.9.2",
87
66
  "typescript": "^6.0.3"
88
67
  },
89
- "prettier": "@transferwise/eslint-config/.prettierrc.js",
68
+ "prettier": {
69
+ "printWidth": 100,
70
+ "singleQuote": true,
71
+ "trailingComma": "all"
72
+ },
90
73
  "publishConfig": {
91
74
  "registry": "https://registry.npmjs.org/",
92
75
  "access": "public"
93
76
  },
94
- "packageManager": "pnpm@11.15.1",
95
77
  "engines": {
96
78
  "node": "^24"
97
79
  },
98
80
  "wise": {
99
81
  "platform": "wise-library",
100
82
  "strict": true
83
+ },
84
+ "scripts": {
85
+ "dev": "next dev",
86
+ "build": "run-s build:*",
87
+ "build:clean": "rimraf lib build && mkdir lib && mkdir -p build/components",
88
+ "build:icon-components": "pnpm run build-icon-components",
89
+ "build:css": "cat src/style/main.css build/rtl.css | postcss --output lib/styles/main.min.css",
90
+ "build:format": "pnpm run prettier --write",
91
+ "build:rollup": "rollup --config --sourcemap",
92
+ "demo:build": "next build && touch demo/.nojekyll",
93
+ "demo:deploy": "gh-pages -d demo -t true",
94
+ "rollup:watch": "rollup --config --sourcemap --watch",
95
+ "test": "run-s test:*",
96
+ "test:lint": "pnpm run lint",
97
+ "changeset": "changeset",
98
+ "release": "changeset publish",
99
+ "lint": "eslint 'src/build-scripts/**/*.{ts,tsx}'",
100
+ "lint-fix": "pnpm run lint --fix",
101
+ "prettier": "prettier './build/**/*.{ts,tsx,js}'",
102
+ "build-icon-components": "ts-node --project ./tsconfig.scripts.json src/build-scripts/build-icon-components.ts",
103
+ "get-atoms": "git submodule update --remote --merge"
101
104
  }
102
- }
105
+ }