Skip to content

Commit

Permalink
upgrade typescript independently of a larger lockfile re-roll (#967)
Browse files Browse the repository at this point in the history
* upgrade typescript independently of a larger lockfile re-roll

* Upgrade typescript project wide
  • Loading branch information
stefanpenner authored Sep 8, 2021
1 parent dd6284e commit 6198dfe
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 21 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@
"prettier": "^2.3.1",
"release-it": "^14.2.1",
"release-it-lerna-changelog": "^3.1.0",
"release-it-yarn-workspaces": "^2.0.0"
"release-it-yarn-workspaces": "^2.0.0",
"typescript": "4.4.2"
},
"publishConfig": {
"registry": "https://registry.npmjs.org"
Expand Down
2 changes: 1 addition & 1 deletion packages/addon-shim/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
"devDependencies": {
"@types/semver": "^7.3.6",
"typescript": "~4.0.0",
"typescript": "*",
"webpack": "^5"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion packages/compat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"ember-cli-htmlbars-3": "npm:ember-cli-htmlbars@3",
"@glimmer/syntax": "0.80.0",
"ember-engines": "^0.8.15",
"typescript": "~4.0.0"
"typescript": "*"
},
"peerDependencies": {
"@embroider/core": "0.44.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"@types/tmp": "^0.1.0",
"fixturify": "^2.1.1",
"tmp": "^0.1.0",
"typescript": "~4.0.0"
"typescript": "*"
},
"engines": {
"node": "12.* || 14.* || >= 16"
Expand Down
11 changes: 5 additions & 6 deletions packages/core/src/js-handlebars.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
// This is handlebars plus helpers specifically for generating Javascript.
import { compile, registerHelper } from 'handlebars';
import handlebars from 'handlebars';
import jsStringEscape from 'js-string-escape';

registerHelper('js-string-escape', jsStringEscape);
handlebars.registerHelper('js-string-escape', jsStringEscape);

registerHelper('json-stringify', function (input: any, indent?: number) {
handlebars.registerHelper('json-stringify', function (input: any, indent?: number) {
return JSON.stringify(input, null, indent);
});

registerHelper('eq', function (a: any, b: any) {
handlebars.registerHelper('eq', function (a: any, b: any) {
return a === b;
});

export { compile };
export const compile = handlebars.compile;
2 changes: 1 addition & 1 deletion packages/hbs-loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"dependencies": {},
"devDependencies": {
"@types/node": "^15.12.2",
"typescript": "~4.0.0"
"typescript": "*"
},
"peerDependencies": {
"@embroider/core": "0.44.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/macros/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"@types/node": "^15.12.2",
"@types/resolve": "^1.20.0",
"@types/semver": "^7.3.6",
"typescript": "~4.0.0"
"typescript": "*"
},
"engines": {
"node": "12.* || 14.* || >= 16"
Expand Down
2 changes: 1 addition & 1 deletion packages/shared-internals/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"@types/tmp": "^0.1.0",
"fixturify": "^2.1.1",
"tmp": "^0.1.0",
"typescript": "~4.0.0"
"typescript": "*"
},
"engines": {
"node": "12.* || 14.* || >= 16"
Expand Down
2 changes: 1 addition & 1 deletion packages/util/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"prettier": "^2.2.1",
"qunit": "^2.16.0",
"qunit-dom": "^1.6.0",
"typescript": "~4.0.0",
"typescript": "*",
"webpack": "^5"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion packages/webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"@types/lodash": "^4.14.170",
"@types/mini-css-extract-plugin": "^1.4.3",
"@types/node": "^15.12.2",
"typescript": "~4.0.0",
"typescript": "*",
"webpack": "^5.38.1"
},
"peerDependencies": {
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"experimentalDecorators": true,
"allowUnreachableCode": false,
"strict": true,
"skipLibCheck": true
"skipLibCheck": true,
"useUnknownInCatchVariables": false
},
"exclude": [
"node_modules",
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -17397,16 +17397,16 @@ typescript-memoize@^1.0.0-alpha.3, typescript-memoize@^1.0.1:
resolved "https://registry.yarnpkg.com/typescript-memoize/-/typescript-memoize-1.0.1.tgz#0a8199aa28f6fe18517f6e9308ef7bfbe9a98d59"
integrity sha512-oJNge1qUrOK37d5Y6Ly2txKeuelYVsFtNF6U9kXIN7juudcQaHJQg2MxLOy0CqtkW65rVDYuTCOjnSIVPd8z3w==

typescript@*, typescript@4.4.2:
version "4.4.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.4.2.tgz#6d618640d430e3569a1dfb44f7d7e600ced3ee86"
integrity sha512-gzP+t5W4hdy4c+68bfcv0t400HVJMMd2+H9B7gae1nQlBzCqvrXX+6GL/b3GAgyTH966pzrZ70/fRjwAtZksSQ==

typescript@^4.1.5:
version "4.3.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.3.2.tgz#399ab18aac45802d6f2498de5054fcbbe716a805"
integrity sha512-zZ4hShnmnoVnAHpVHWpTcxdv7dWP60S2FsydQLV8V5PbS3FifjWFFRiHSWpDJahly88PRyV5teTSLoq4eG7mKw==

typescript@~4.0.0:
version "4.0.7"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.0.7.tgz#7168032c43d2a2671c95c07812f69523c79590af"
integrity sha512-yi7M4y74SWvYbnazbn8/bmJmX4Zlej39ZOqwG/8dut/MYoSQ119GY9ZFbbGsD4PFZYWxqik/XsP3vk3+W5H3og==

uc.micro@^1.0.1, uc.micro@^1.0.5:
version "1.0.6"
resolved "https://registry.yarnpkg.com/uc.micro/-/uc.micro-1.0.6.tgz#9c411a802a409a91fc6cf74081baba34b24499ac"
Expand Down

0 comments on commit 6198dfe

Please sign in to comment.