ng-packagr 14.0.4 → 14.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,4 +2,4 @@ import { TransformResult } from 'rollup';
|
|
|
2
2
|
/**
|
|
3
3
|
* Downlevels a .js file from `ES2015` to `ES2015`. Internally, uses `tsc`.
|
|
4
4
|
*/
|
|
5
|
-
export declare function downlevelCodeWithTsc(code: string, filePath: string):
|
|
5
|
+
export declare function downlevelCodeWithTsc(code: string, filePath: string): TransformResult;
|
|
@@ -42,7 +42,7 @@ const COMPILER_OPTIONS = {
|
|
|
42
42
|
/**
|
|
43
43
|
* Downlevels a .js file from `ES2015` to `ES2015`. Internally, uses `tsc`.
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
function downlevelCodeWithTsc(code, filePath) {
|
|
46
46
|
log.debug(`tsc ${filePath}`);
|
|
47
47
|
const compilerOptions = {
|
|
48
48
|
...COMPILER_OPTIONS,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"downlevel-plugin.js","sourceRoot":"","sources":["../../../src/lib/flatten/downlevel-plugin.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA6B;AAE7B,2CAA8G;AAE9G,kDAAoC;AAEpC;;GAEG;AACH,MAAM,gBAAgB,GAAoB;IACxC,MAAM,EAAE,yBAAY,CAAC,MAAM;IAC3B,MAAM,EAAE,uBAAU,CAAC,MAAM;IACzB,OAAO,EAAE,IAAI;IACb,SAAS,EAAE,IAAI;IACf,aAAa,EAAE,IAAI;IACnB,kBAAkB,EAAE,IAAI;IACxB,gBAAgB,EAAE,iCAAoB,CAAC,OAAO;CAC/C,CAAC;AAEF;;GAEG;
|
|
1
|
+
{"version":3,"file":"downlevel-plugin.js","sourceRoot":"","sources":["../../../src/lib/flatten/downlevel-plugin.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA6B;AAE7B,2CAA8G;AAE9G,kDAAoC;AAEpC;;GAEG;AACH,MAAM,gBAAgB,GAAoB;IACxC,MAAM,EAAE,yBAAY,CAAC,MAAM;IAC3B,MAAM,EAAE,uBAAU,CAAC,MAAM;IACzB,OAAO,EAAE,IAAI;IACb,SAAS,EAAE,IAAI;IACf,aAAa,EAAE,IAAI;IACnB,kBAAkB,EAAE,IAAI;IACxB,gBAAgB,EAAE,iCAAoB,CAAC,OAAO;CAC/C,CAAC;AAEF;;GAEG;AACH,SAAgB,oBAAoB,CAAC,IAAY,EAAE,QAAgB;IACjE,GAAG,CAAC,KAAK,CAAC,OAAO,QAAQ,EAAE,CAAC,CAAC;IAC7B,MAAM,eAAe,GAAoB;QACvC,GAAG,gBAAgB;QACnB,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;KAChC,CAAC;IAEF,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,GAAG,IAAA,4BAAe,EAAC,IAAI,EAAE;QAC1D,eAAe;KAChB,CAAC,CAAC;IAEH,OAAO;QACL,IAAI,EAAE,UAAU;QAChB,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC;KAC/B,CAAC;AACJ,CAAC;AAfD,oDAeC","sourcesContent":["import * as path from 'path';\nimport { TransformResult } from 'rollup';\nimport { CompilerOptions, ModuleKind, ModuleResolutionKind, ScriptTarget, transpileModule } from 'typescript';\n\nimport * as log from '../utils/log';\n\n/**\n * Base `tsc` `CompilerOptions` shared among various downleveling methods.\n */\nconst COMPILER_OPTIONS: CompilerOptions = {\n target: ScriptTarget.ES2015,\n module: ModuleKind.ESNext,\n allowJs: true,\n sourceMap: true,\n importHelpers: true,\n downlevelIteration: true,\n moduleResolution: ModuleResolutionKind.Classic,\n};\n\n/**\n * Downlevels a .js file from `ES2015` to `ES2015`. Internally, uses `tsc`.\n */\nexport function downlevelCodeWithTsc(code: string, filePath: string): TransformResult {\n log.debug(`tsc ${filePath}`);\n const compilerOptions: CompilerOptions = {\n ...COMPILER_OPTIONS,\n mapRoot: path.dirname(filePath),\n };\n\n const { outputText, sourceMapText } = transpileModule(code, {\n compilerOptions,\n });\n\n return {\n code: outputText,\n map: JSON.parse(sourceMapText),\n };\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ng-packagr",
|
|
3
|
-
"version": "14.0
|
|
3
|
+
"version": "14.2.0",
|
|
4
4
|
"description": "Compile and package Angular libraries in Angular Package Format (APF)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"apf",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"chokidar": "^3.5.3",
|
|
42
42
|
"commander": "^9.0.0",
|
|
43
43
|
"dependency-graph": "^0.11.0",
|
|
44
|
-
"esbuild-wasm": "^0.
|
|
44
|
+
"esbuild-wasm": "^0.15.0",
|
|
45
45
|
"find-cache-dir": "^3.3.2",
|
|
46
46
|
"glob": "^8.0.0",
|
|
47
47
|
"injection-js": "^2.4.0",
|
|
@@ -55,14 +55,14 @@
|
|
|
55
55
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
56
56
|
"rxjs": "^7.5.5",
|
|
57
57
|
"sass": "^1.49.9",
|
|
58
|
-
"stylus": "^0.
|
|
58
|
+
"stylus": "^0.59.0"
|
|
59
59
|
},
|
|
60
60
|
"optionalDependencies": {
|
|
61
|
-
"esbuild": "^0.
|
|
61
|
+
"esbuild": "^0.15.0"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"@angular/compiler-cli": "^14.0.0 || ^14.0.0-next || ^14.
|
|
64
|
+
"@angular/compiler-cli": "^14.0.0 || ^14.0.0-next || ^14.2.0-next",
|
|
65
65
|
"tslib": "^2.3.0",
|
|
66
|
-
"typescript": ">=4.6.2 <4.
|
|
66
|
+
"typescript": ">=4.6.2 <4.9"
|
|
67
67
|
}
|
|
68
68
|
}
|