Skip to content

Commit

Permalink
[wip] feat: add types for older Ember scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
michelegera committed Nov 27, 2023
1 parent bfafcdf commit 50151fb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test-app/config/ember-try.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
const getChannelURL = require('ember-source-channel-url');
const { embroiderSafe, embroiderOptimized } = require('@embroider/test-setup');

// Needed for ember-source < 4.8, when preview types were first shipped
const emberTypesPackages = {
'@types/ember__application': '^4.0.8',
'@types/ember__routing': '^4.0.16',
};

module.exports = async function () {
return {
usePnpm: true,
Expand All @@ -12,6 +18,7 @@ module.exports = async function () {
npm: {
devDependencies: {
'ember-source': '~3.28.0',
...emberTypesPackages,
},
},
},
Expand Down Expand Up @@ -75,6 +82,7 @@ module.exports = async function () {
npm: {
devDependencies: {
'ember-source': '~3.28.0',
...emberTypesPackages,
},
ember: {
edition: 'classic',
Expand Down

0 comments on commit 50151fb

Please sign in to comment.