diff --git a/doc/MAINTAINER.md b/doc/MAINTAINER.md index 2b0be97..a6536f6 100644 --- a/doc/MAINTAINER.md +++ b/doc/MAINTAINER.md @@ -1,13 +1,16 @@ ## Workflow releasing a new version 1. Update: pull latest master with `git pull` -2. Cut release: Run `npm run cut-release {version-type}`. Example: +2. Cut release: Run `npm run cut-release`. Example: ```shell - # with minor - npm run cut-release minor + # automatic versioning + npm run cut-release + # manual version + npm run cut-release -- -- --release-as minor + npm run cut-release -- -- --release-as 1.x.x-beta ``` 3. Commit: `git add .` and then `git commit chore(release): prepare release XXX` where `XXX` is the new version -4. Tag: `git tag -a XXX` where `XXX` is the version +4. Tag: `git tag -a XXX -m 'prepare release XXX'` where `XXX` is the version 5. Push to remote repo: `git push --follow-tags` 6. Publish: Run `npm publish` to release the new version diff --git a/rollup.config.js b/rollup.config.js index 0be6809..4051589 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -53,7 +53,6 @@ export default [ 'aurelia-dependency-injection', 'aurelia-pal', 'aurelia-templating', - // 'aurelia-templating-resources', 'aurelia-task-queue', 'aurelia-logging', 'aurelia-path', @@ -63,7 +62,7 @@ export default [ config.output.forEach(output => output.sourcemap = true); config.onwarn = /** @param {import('rollup').RollupWarning} warning */ (warning, warn) => { if (warning.code === 'CIRCULAR_DEPENDENCY') return; - warn(warning.message); + warn(warning); }; return config; diff --git a/src/null-repeat-strategy.ts b/src/null-repeat-strategy.ts index df25d69..c541fd2 100644 --- a/src/null-repeat-strategy.ts +++ b/src/null-repeat-strategy.ts @@ -3,11 +3,11 @@ * A strategy for repeating a template over null or undefined (does nothing) */ export class NullRepeatStrategy { - instanceChanged(repeat, items) { + instanceChanged(repeat, items): void { repeat.removeAllViews(true); } - getCollectionObserver(observerLocator, items) { + getCollectionObserver(observerLocator, items): any { // empty } }