Skip to content

Commit

Permalink
build: add support for typescript versions <3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
apust committed Nov 30, 2020
1 parent e63f1e9 commit 71da6e2
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 2 deletions.
19 changes: 19 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
"@types/node": "^14.0.27",
"babel-loader": "^8.1.0",
"codelyzer": "^6.0.0",
"downlevel-dts": "^0.7.0",
"husky": "^4.2.5",
"jasmine-core": "^3.6.0",
"jasmine-spec-reporter": "^5.0.2",
Expand Down
6 changes: 5 additions & 1 deletion src/packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
},
"scripts": {
"build": "export PACKAGE_NAME=`basename $INIT_CWD` && ng build --prod $PACKAGE_NAME",
"prepublishOnly": "npm run build"
"downlevelDts": "cd dist && npx downlevel-dts . ts3.4 [--to=3.4]",
"prepublishOnly": "npm run build && npm run downlevelDts"
},
"typesVersions": {
"<3.9": { "*": ["ts3.4/*"] }
}
}
6 changes: 5 additions & 1 deletion src/packages/layout/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
},
"scripts": {
"build": "export PACKAGE_NAME=`basename $INIT_CWD` && ng build --prod $PACKAGE_NAME",
"prepublishOnly": "npm run build"
"downlevelDts": "cd dist && npx downlevel-dts . ts3.4 [--to=3.4]",
"prepublishOnly": "npm run build && npm run downlevelDts"
},
"typesVersions": {
"<3.9": { "*": ["ts3.4/*"] }
}
}

0 comments on commit 71da6e2

Please sign in to comment.