diff --git a/ng-package.json b/ng-package.json index 67d4aeb..825ac74 100644 --- a/ng-package.json +++ b/ng-package.json @@ -4,6 +4,6 @@ "dest": "dist", "workingDirectory": ".ng_build", "lib": { - "entryFile": "lib/public_api.ts" + "entryFile": "public_api.ts" } } diff --git a/package-lock.json b/package-lock.json index f6cb3e0..27867bd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1553,6 +1553,16 @@ "capture-stack-trace": "1.0.0" } }, + "crlf": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/crlf/-/crlf-1.1.1.tgz", + "integrity": "sha1-JBcoQbTINSmmqkSJ337tlYsu0W8=", + "dev": true, + "requires": { + "glub": "1.0.3", + "transform-file": "1.0.1" + } + }, "cross-spawn": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", @@ -2675,6 +2685,31 @@ "sparkles": "1.0.0" } }, + "glub": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/glub/-/glub-1.0.3.tgz", + "integrity": "sha1-VsFkMpiuJQZcYxUAMze7pp0vuGY=", + "dev": true, + "requires": { + "glob": "5.0.15", + "minimist": "1.2.0" + }, + "dependencies": { + "glob": { + "version": "5.0.15", + "resolved": "https://registry.npmjs.org/glob/-/glob-5.0.15.tgz", + "integrity": "sha1-G8k2ueAvSmA/zCIuz3Yz0wuLk7E=", + "dev": true, + "requires": { + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" + } + } + } + }, "got": { "version": "6.7.1", "resolved": "https://registry.npmjs.org/got/-/got-6.7.1.tgz", @@ -6610,7 +6645,7 @@ "integrity": "sha512-oRYoIKWBU3Ic37fLA5VJu31VqQO4bWubRntcHSJ+cwaDQBwdnZ9x4zmhJfm/nFQ2E82/I4loSioHnACamrKGgA==", "dev": true, "requires": { - "symbol-observable": "1.0.4" + "symbol-observable": "1.1.0" } }, "safe-buffer": { @@ -7274,9 +7309,9 @@ "dev": true }, "symbol-observable": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-1.0.4.tgz", - "integrity": "sha1-Kb9hXUqnEhvdiYsi1LP5vE4qoD0=", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-1.1.0.tgz", + "integrity": "sha512-dQoid9tqQ+uotGhuTKEY11X4xhyYePVnqGSoSm3OGKh2E8LZ6RPULp1uXTctk33IeERlrRJYoVSBglsL05F5Uw==", "dev": true }, "symbol-tree": { @@ -7412,6 +7447,15 @@ "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=", "dev": true }, + "transform-file": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/transform-file/-/transform-file-1.0.1.tgz", + "integrity": "sha1-f5WYSs0j1Ov4q7R+6dg74WbRJoc=", + "dev": true, + "requires": { + "os-tmpdir": "1.0.2" + } + }, "trim-newlines": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-1.0.0.tgz", diff --git a/package.json b/package.json index e31003f..05db320 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "prebuild": "del-cli dist", "build": "npm run package && npm run build:cli", "build:cli": "tsc -p tsconfig.cli.json", + "postbuild:cli": "crlf --set=LF dist/**/*.js", "commit": "git-cz", "lint": "tslint --project tsconfig.json src/**/*.ts", "prepublish": "npm run lint && npm run test && npm run build", @@ -61,6 +62,7 @@ "codelyzer": "4.0.1", "commitizen": "2.9.6", "core-js": "2.5.1", + "crlf": "1.1.1", "del-cli": "1.1.0", "glob": "7.1.2", "jest": "21.2.1",