Skip to content

Commit 59c58ff

Browse files
committed
Add since-latest-release script to match MetaMask/core
1 parent 2ad6cd1 commit 59c58ff

File tree

47 files changed

+197
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+197
-0
lines changed

constraints.pro

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,13 @@ gen_enforced_field(WorkspaceCwd, 'scripts.changelog:update', ChangelogUpdateScri
251251
relative_path(WorkspaceCwd, 'scripts/update-changelog.sh', BaseChangelogUpdateScript),
252252
atomic_list_concat([BaseChangelogUpdateScript, ' ', WorkspacePackageName], ChangelogUpdateScript).
253253

254+
% The "since-latest-release" script for each published package must run a common
255+
% script.
256+
gen_enforced_field(WorkspaceCwd, 'scripts.since-latest-release', SinceLatestReleaseScript) :-
257+
\+ workspace_field(WorkspaceCwd, 'private', true),
258+
workspace_field(WorkspaceCwd, 'name', WorkspacePackageName),
259+
relative_path(WorkspaceCwd, 'scripts/since-latest-release.sh', SinceLatestReleaseScript).
260+
254261
% The "lint:dependencies" script must be the same for all packages.
255262
gen_enforced_field(WorkspaceCwd, 'scripts.lint:dependencies', 'depcheck') :-
256263
WorkspaceCwd \= '.'.

packages/create-snap/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" --ignore-path ../../.gitignore",
4444
"publish:package": "../../scripts/publish-package.sh",
4545
"publish:preview": "yarn npm publish --tag preview",
46+
"since-latest-release": "../../scripts/since-latest-release.sh",
4647
"test": "jest && yarn posttest",
4748
"posttest": "jest-it-up",
4849
"test:ci": "yarn test",

packages/examples/packages/bip32/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write",
2727
"lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!snap.manifest.json\" --ignore-path ../../../../.gitignore",
2828
"publish:preview": "yarn npm publish --tag preview",
29+
"since-latest-release": "../../../../scripts/since-latest-release.sh",
2930
"start": "mm-snap watch",
3031
"test": "yarn test:e2e",
3132
"test:e2e": "jest"

packages/examples/packages/bip44/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write",
2727
"lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!snap.manifest.json\" --ignore-path ../../../../.gitignore",
2828
"publish:preview": "yarn npm publish --tag preview",
29+
"since-latest-release": "../../../../scripts/since-latest-release.sh",
2930
"start": "mm-snap watch",
3031
"test": "yarn test:e2e",
3132
"test:e2e": "jest"

packages/examples/packages/browserify-plugin/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write",
2727
"lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!snap.manifest.json\" --ignore-path ../../../../.gitignore",
2828
"publish:preview": "yarn npm publish --tag preview",
29+
"since-latest-release": "../../../../scripts/since-latest-release.sh",
2930
"test": "yarn test:e2e",
3031
"test:e2e": "jest"
3132
},

packages/examples/packages/browserify/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write",
2727
"lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!snap.manifest.json\" --ignore-path ../../../../.gitignore",
2828
"publish:preview": "yarn npm publish --tag preview",
29+
"since-latest-release": "../../../../scripts/since-latest-release.sh",
2930
"start": "mm-snap watch",
3031
"test": "yarn test:e2e",
3132
"test:e2e": "jest"

packages/examples/packages/client-status/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write",
2727
"lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!snap.manifest.json\" --ignore-path ../../../../.gitignore",
2828
"publish:preview": "yarn npm publish --tag preview",
29+
"since-latest-release": "../../../../scripts/since-latest-release.sh",
2930
"start": "mm-snap watch",
3031
"test": "yarn test:e2e",
3132
"test:e2e": "jest"

packages/examples/packages/cronjobs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write",
2727
"lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!snap.manifest.json\" --ignore-path ../../../../.gitignore",
2828
"publish:preview": "yarn npm publish --tag preview",
29+
"since-latest-release": "../../../../scripts/since-latest-release.sh",
2930
"start": "mm-snap watch",
3031
"test": "yarn test:e2e",
3132
"test:e2e": "jest"

packages/examples/packages/dialogs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write",
2727
"lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!snap.manifest.json\" --ignore-path ../../../../.gitignore",
2828
"publish:preview": "yarn npm publish --tag preview",
29+
"since-latest-release": "../../../../scripts/since-latest-release.sh",
2930
"start": "mm-snap watch",
3031
"test": "yarn test:e2e",
3132
"test:e2e": "jest"

packages/examples/packages/errors/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write",
2727
"lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!snap.manifest.json\" --ignore-path ../../../../.gitignore",
2828
"publish:preview": "yarn npm publish --tag preview",
29+
"since-latest-release": "../../../../scripts/since-latest-release.sh",
2930
"start": "mm-snap watch",
3031
"test": "yarn test:e2e",
3132
"test:e2e": "jest"

0 commit comments

Comments
 (0)