Skip to content

Commit

Permalink
chore: i18next version upgrade (#341)
Browse files Browse the repository at this point in the history
* chore: updated i18next version

BREAKING CHANGE as i18next is declared as peer dependency as compared to a direct dependency. This should give more freedom to the devs in terms of updating the i18next version in their individual packages.

* chore: updated dependencies

* Revert "chore: updated dependencies"

This reverts commit 8e68f4d.

* chore: node image upgrade

* chore: cleanup

* chore: added node engine restriction

* chore: added i18next to devdep

* chore: updated deps

* chore: used npm ci for CI

* chore: reverted html-loader version

* chore: updated jest setup

* chore: runInBand for jest ci

* chore: bumped jspm deps

Co-authored-by: Sayan Pal <spal@netatwork.de>
  • Loading branch information
Sayan751 and Sayan Pal committed Jul 5, 2021
1 parent 6ebb86c commit a54729a
Show file tree
Hide file tree
Showing 17 changed files with 15,304 additions and 5,997 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ jobs:
test:
working_directory: ~/repo
docker:
- image: circleci/node:9-jessie-browsers
- image: cimg/node:16.4.0-browsers
steps:
- checkout
- run: npm install
- run: npm ci
- run:
name: Tests
command: 'npm run test-ci'
Expand Down
2 changes: 1 addition & 1 deletion build/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ if (args.dev) {
Promise
.all(targetFormats.map(target => {
const { outputs, tsConfig, ...options } = configs[target];
return build(target, { ...options, external: EXTERNAL_LIBS }, outputs as rollup.OutputOptionsFile[]);
return build(target, { ...options, external: EXTERNAL_LIBS }, outputs);
}))
.then(() => generateDts())
.then(() => {
Expand Down
12 changes: 3 additions & 9 deletions build/shared.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as rollup from 'rollup';
import type { RollupOptions, OutputOptions } from 'rollup';
import typescript from 'rollup-plugin-typescript2';
import rimraf from 'rimraf';
import { IRollupWatchOptions } from './interfaces';
Expand All @@ -9,8 +10,8 @@ export type IBuildTargetFormat = 'es5' | 'es2015' | 'es2017' | 'amd' | 'system'

export async function build(
target: IBuildTargetFormat,
options: rollup.RollupFileOptions,
outputs: rollup.OutputOptionsFile[]
options: RollupOptions,
outputs: OutputOptions[]
): Promise<void> {
return rollup
.rollup({
Expand Down Expand Up @@ -61,13 +62,6 @@ export async function watchAndReBuild(
console.log('Error:', e);
return;
}
if (e.code === 'FATAL') {
console.log('===============');
console.error('FATAL:', e);
console.log('===============');
// rollup will exit
return;
}
if (e.code === 'END') {
onBundleChanged(e);
return;
Expand Down
Loading

0 comments on commit a54729a

Please sign in to comment.