Skip to content

Commit b308843

Browse files
authored
generate correct xrpl-latest-min.js file name (#3034)
* generate correct xrpl-latest-min.js file name * remove content of /build in secret-numbers on clean * update HISTORY
1 parent 7f85e33 commit b308843

File tree

6 files changed

+35
-30
lines changed

6 files changed

+35
-30
lines changed

CONTRIBUTING.md

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -236,47 +236,48 @@ Note: The same updated config can be used to update xrpl-py's CI as well.
236236
## Release
237237

238238
1. Checkout `main` (or your beta branch) and `git pull`.
239-
1. Create a new branch (`git checkout -b <BRANCH_NAME>`) to capture updates that take place during this process.
240-
1. Update `HISTORY.md` to reflect release changes.
239+
2. Create a new branch (`git checkout -b <BRANCH_NAME>`) to capture updates that take place during this process.
240+
3. Update `HISTORY.md` to reflect release changes.
241241

242242
- [ ] Update the version number and release date, and ensure it lists the changes since the previous release.
243243

244-
1. Run `npm run docgen` if the docs were modified in this release to update them (skip this step for a beta).
245-
1. Run `npm run build` to triple check the build still works
246-
1. Run `npx lerna version --no-git-tag-version` - This bumps the package versions.
244+
4. Run `npm run docgen` if the docs were modified in this release to update them (skip this step for a beta).
245+
5. Run `npm run clean` to delete previously generated artifacts.
246+
6. Run `npm run build` to triple check the build still works
247+
7. Run `npx lerna version --no-git-tag-version` - This bumps the package versions.
247248

248249
- For each changed package, pick what the new version should be. Lerna will bump the versions, commit version bumps to `main`, and create a new git tag for each published package.
249250
- If you do NOT want to update the package number, choose "Custom Version" and set the version to be the same as the existing version. Lerna will not publish any changes in this case.
250251
- If publishing a beta, make sure that the versions are all of the form `a.b.c-beta.d`, where `a`, `b`, and `c` are identical to the last normal release except for one, which has been incremented by 1.
251252

252-
1. Run `npm i` to update the package-lock with the updated versions.
253-
1. Create a new PR from this branch into `main` and merge it (you can directly merge into the beta branch for a beta).
254-
1. Checkout `main` and `git pull` (you can skip this step for a beta since you already have the latest version of the beta branch).
255-
1. Actually publish the packages with one of the following:
253+
8. Run `npm i` to update the package-lock with the updated versions.
254+
9. Create a new PR from this branch into `main` and merge it (you can directly merge into the beta branch for a beta).
255+
10. Checkout `main` and `git pull` (you can skip this step for a beta since you already have the latest version of the beta branch).
256+
11. Actually publish the packages with one of the following:
256257

257-
- Stable release: Run `npx lerna publish from-package --yes`
258-
- Beta release: Run `npx lerna publish from-package --dist-tag beta --yes`
259-
Notice this allows developers to install the package with `npm add xrpl@beta`
258+
- Stable release: Run `npx lerna publish from-package --yes`
259+
- Beta release: Run `npx lerna publish from-package --dist-tag beta --yes`
260+
Notice this allows developers to install the package with `npm add xrpl@beta`
260261

261-
1. If requested, enter your [npmjs.com](https://npmjs.com) OTP (one-time password) to complete publication.
262+
12. If requested, enter your [npmjs.com](https://npmjs.com) OTP (one-time password) to complete publication.
262263

263-
NOW YOU HAVE PUBLISHED! But you're not done; we have to notify people!
264+
NOW YOU HAVE PUBLISHED! But you're not done; we have to notify people!
264265

265-
1. Run `git tag <tagname> -m <tagname>`, where `<tagname>` is the new package and version (e.g. `[email protected]`), for each version released.
266-
1. Run `git push --follow-tags`, to push the tags to Github.
267-
1. On GitHub, click the "Releases" link on the right-hand side of the page.
266+
13. Run `git tag <tagname> -m <tagname>`, where `<tagname>` is the new package and version (e.g. `[email protected]`), for each version released.
267+
14. Run `git push --follow-tags`, to push the tags to Github.
268+
15. On GitHub, click the "Releases" link on the right-hand side of the page.
268269

269-
1. Repeat for each release:
270+
16. Repeat for each release:
270271

271-
1. Click "Draft a new release"
272-
1. Click "Choose a tag", and choose a tag that you just created.
273-
1. Edit the name of the release to match the tag (IE \<package\>@\<version\>) and edit the description as you see fit.
272+
1. Click "Draft a new release"
273+
2. Click "Choose a tag", and choose a tag that you just created.
274+
3. Edit the name of the release to match the tag (IE \<package\>@\<version\>) and edit the description as you see fit.
274275

275-
1. Send an email to [xrpl-announce](https://groups.google.com/g/xrpl-announce).
276-
1. Lastly, send a similar message to the XRPL Discord in the [`javascript` channel](https://discord.com/channels/886050993802985492/886053111179915295). The message should include:
277-
1. The version changes for xrpl libraries
278-
1. A link to the more detailed changes
279-
1. Highlights of important changes
276+
17. Send an email to [xrpl-announce](https://groups.google.com/g/xrpl-announce).
277+
18. Lastly, send a similar message to the XRPL Discord in the [`javascript` channel](https://discord.com/channels/886050993802985492/886053111179915295). The message should include:
278+
1. The version changes for xrpl libraries
279+
2. A link to the more detailed changes
280+
3. Highlights of important changes
280281

281282

282283
## Mailing Lists

packages/secret-numbers/HISTORY.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ Subscribe to [the **xrpl-announce** mailing list](https://groups.google.com/g/xr
44

55
## Unreleased
66

7+
### BREAKING CHANGES:
8+
* Renamed `build/xrplf-secret-numbers-latest.min.js` to `build/xrplf-secret-numbers-latest-min.js`.
9+
710
## 1.0.0 (2024-02-01)
811

912
### BREAKING CHANGES:

packages/secret-numbers/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"types": "dist/index.d.ts",
99
"scripts": {
1010
"prepublish": "npm run clean && npm run lint && npm run test && npm run test:browser && npm run build",
11-
"clean": "rm -rf ./dist ./coverage ./test/testCompiledForWeb tsconfig.build.tsbuildinfo",
11+
"clean": "rm -rf ./build ./dist ./coverage ./test/testCompiledForWeb tsconfig.build.tsbuildinfo",
1212
"test": "jest --verbose",
1313
"test:browser": "npm run build && npm run build:browserTests && karma start ./karma.config.js",
1414
"build": "run-s build:lib build:web",

packages/xrpl/HISTORY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Subscribe to [the **xrpl-announce** mailing list](https://groups.google.com/g/xr
88
* Support for `Single Asset Vault` (XLS-65)
99
* Adds `XRPLNumber` amount type used in Vault transactions. This supports integer, decimal, or scientific notation strings.
1010
* Adds `ClawbackAmount` amount type used in transactions related to Clawback.
11+
* Fixed minified `build/xrpl-latest-min.js` to have all the latest xrpl package changes.
1112

1213
### Fixed
1314
* Fix `AccountRoot` ledger object to correctly parse `FirstNFTokenSequence` field

packages/xrpl/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"build:browserTests": "webpack --config ./test/webpack.config.js",
5555
"analyze": "webpack --analyze",
5656
"watch": "run-s build:lib --watch",
57-
"clean": "rm -rf ./dist ./coverage ./test/testCompiledForWeb tsconfig.build.tsbuildinfo",
57+
"clean": "rm -rf ./build ./dist ./coverage ./test/testCompiledForWeb tsconfig.build.tsbuildinfo",
5858
"docgen": "tsc --build tsconfig.docs.json && typedoc && echo js.xrpl.org >> ../../docs/CNAME",
5959
"prepare": "copyfiles ../../README.md xrpl/README.md",
6060
"prepublish": "run-s clean build",

webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ module.exports = {
4848
const localConfig = merge(config, {
4949
mode: "production",
5050
output: {
51-
filename: `${filename}-latest.min.js`,
51+
filename: `${filename}-latest-min.js`,
5252
},
5353
});
5454

@@ -57,7 +57,7 @@ module.exports = {
5757
new BundleAnalyzerPlugin({
5858
analyzerPort: `auto`,
5959
analyzerMode: "static",
60-
}),
60+
})
6161
);
6262
}
6363
return localConfig;

0 commit comments

Comments
 (0)