Skip to content

Commit

Permalink
fix(lib): upgraded the lib to v12
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyNahas committed Jun 6, 2021
1 parent ebc41bd commit 481a3c9
Show file tree
Hide file tree
Showing 14 changed files with 29,486 additions and 6,035 deletions.
19 changes: 14 additions & 5 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json",
"aot": true,
"assets": [
"src/favicon.ico",
"src/assets"
Expand All @@ -37,7 +36,13 @@
"./node_modules/prismjs/prism.js",
"./node_modules/prismjs/components/prism-typescript.min.js",
"./node_modules/prismjs/components/prism-css.min.js"
]
],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
},
"configurations": {
"production": {
Expand Down Expand Up @@ -68,7 +73,8 @@
}
]
}
}
},
"defaultConfiguration": ""
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
Expand Down Expand Up @@ -135,7 +141,9 @@
"options": {
"outputPath": "dist/password-strength/server",
"main": "server.ts",
"tsConfig": "tsconfig.server.json"
"tsConfig": "tsconfig.server.json",
"sourceMap": true,
"optimization": false
},
"configurations": {
"production": {
Expand All @@ -149,7 +157,8 @@
"sourceMap": false,
"optimization": true
}
}
},
"defaultConfiguration": ""
},
"serve-ssr": {
"builder": "@nguniversal/builders:ssr-dev-server",
Expand Down
2 changes: 1 addition & 1 deletion config/karma-test-shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Error.stackTraceLimit = Infinity;
require('core-js/es6');
require('core-js/es7/reflect');

require('zone.js/dist/zone');
require('zone.js');
require('zone.js/dist/long-stack-trace-zone');
require('zone.js/dist/proxy');
require('zone.js/dist/sync-test');
Expand Down
2 changes: 1 addition & 1 deletion demo/prerender.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Load zone.js for the server.
import 'zone.js/dist/zone-node';
import 'zone.js/node';
import 'reflect-metadata';
import {existsSync, mkdirSync, readFileSync, writeFileSync} from 'fs';
import {join} from 'path';
Expand Down
2 changes: 1 addition & 1 deletion demo/server.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// These are important and needed before anything else
import 'zone.js/dist/zone-node';
import 'zone.js/node';
import 'reflect-metadata';

import { renderModuleFactory } from '@angular/platform-server';
Expand Down
2 changes: 1 addition & 1 deletion demo/src/polyfills.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
/***************************************************************************************************
* Zone JS is required by default for Angular itself.
*/
import 'zone.js/dist/zone'; // Included with Angular CLI.
import 'zone.js'; // Included with Angular CLI.



Expand Down
2 changes: 1 addition & 1 deletion demo/src/test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This file is required by karma.conf.js and loads recursively all the .spec and framework files

import 'zone.js/dist/zone-testing';
import 'zone.js/testing';
import { getTestBed } from '@angular/core/testing';
import {
BrowserDynamicTestingModule,
Expand Down
Loading

0 comments on commit 481a3c9

Please sign in to comment.