diff --git a/demo/package-lock.json b/demo/package-lock.json index 41f398236..0978f6981 100644 --- a/demo/package-lock.json +++ b/demo/package-lock.json @@ -1,6 +1,6 @@ { "name": "angular-datatables-demo", - "version": "9.0.3-dev", + "version": "10.0.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/demo/package.json b/demo/package.json index 19dfb84c7..556b65fab 100644 --- a/demo/package.json +++ b/demo/package.json @@ -1,6 +1,6 @@ { "name": "angular-datatables-demo", - "version": "9.0.3-dev", + "version": "10.0.0", "license": "MIT", "scripts": { "ng": "ng", diff --git a/package-lock.json b/package-lock.json index 93cb7d5b6..1d4813576 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "angular-datatables", - "version": "9.0.3-dev", + "version": "10.0.0-dev", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 776289ff4..ee67460ca 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "angular-datatables", - "version": "9.0.3-dev", + "version": "10.0.0", "description": "Angular directive for DataTables", "scripts": { "build": "npm run clean && npm run compile && npm run bundles && npm run schematics:build", diff --git a/schematics/src/ng-add/index.ts b/schematics/src/ng-add/index.ts index 42818267d..c1b910613 100644 --- a/schematics/src/ng-add/index.ts +++ b/schematics/src/ng-add/index.ts @@ -17,17 +17,17 @@ function addPackageJsonDependencies() { { version: '^3.4.1', name: 'jquery', isDev: false }, { version: '^1.10.20', name: 'datatables.net', isDev: false }, { version: '^1.10.20', name: 'datatables.net-dt', isDev: false }, - { version: '^9.0.1', name: 'angular-datatables', isDev: false }, + { version: '^10.0.0', name: 'angular-datatables', isDev: false }, { version: '^3.3.33', name: '@types/jquery', isDev: true }, { version: '^1.10.18', name: '@types/datatables.net', isDev: true } ]; dependencies.forEach(dependency => { - addPackageToPackageJson(tree, dependency.name, dependency.version, dependency.isDev) - context.logger.log('info', `✅️ Added "${dependency.name}" into "${dependency.isDev ? "devDependencies" : "dependencies" }"`); + addPackageToPackageJson(tree, dependency.name, dependency.version, dependency.isDev); + context.logger.log('info', `✅️ Added "${dependency.name}" into "${dependency.isDev ? 'devDependencies' : 'dependencies' }"`); }); - return tree - } + return tree; + }; } function installPackageJsonDependencies(): Rule { @@ -61,11 +61,10 @@ function updateAngularJsonFile() { tree.overwrite('angular.json', JSON.stringify(angularJsonFileObject, null, 2)); context.logger.log('info', `✅️ Updated angular.json`); } else { - context.logger.log('error', '🚫 Failed to locate angular.json else.') + context.logger.log('error', '🚫 Failed to locate angular.json else.'); } } catch (e) { context.logger.log('error', `🚫 Failed to update angular.json foobar.`); } - - } + }; }