File tree Expand file tree Collapse file tree 2 files changed +23
-3
lines changed
Expand file tree Collapse file tree 2 files changed +23
-3
lines changed Original file line number Diff line number Diff line change 4444 "@ember/test-waiters" : " ^4.1.1" ,
4545 "@embroider/macros" : " ^1.19.1" ,
4646 "@embroider/core" : " ^4.2.4" ,
47- "@embroider/vite" : " ^1.3.2" ,
48- "@embroider/compat" : " ^4.1.7" ,
47+ "@embroider/vite" : " ^1.3.2<% if (compat) { %> " ,
48+ "@embroider/compat" : " ^4.1.7<% } %> " ,
4949 "@embroider/router" : " ^3.0.4" ,
5050 "@embroider/config-meta-loader" : " ^1.0.0" ,
5151 "@embroider/legacy-inspector-support" : " ^0.1.3" ,
Original file line number Diff line number Diff line change @@ -61,12 +61,29 @@ module.exports = {
6161 execBinPrefix = 'pnpm' ;
6262 }
6363
64+ let minimal = false ;
65+ let compat = true ;
66+ /**
67+ * --minimal overrides compat/no-compat
68+ */
69+ if ( options . minimal ) {
70+ minimal = true ;
71+ compat = false ;
72+ }
73+
74+ if ( ! minimal ) {
75+ if ( options . noCompat ) {
76+ compat = false ;
77+ }
78+ }
79+
80+ let noCompat = ! compat ;
81+
6482 return {
6583 appDirectory : directoryForPackageName ( name ) ,
6684 name,
6785 modulePrefix : name ,
6886 namespace,
69- minimal : options . minimal ,
7087 blueprintVersion : require ( './package' ) . version ,
7188 yarn : options . packageManager === 'yarn' ,
7289 pnpm : options . packageManager === 'pnpm' ,
@@ -82,6 +99,9 @@ module.exports = {
8299 ciProvider : options . ciProvider ,
83100 typescript : options . typescript ,
84101 packageManager : options . packageManager ?? 'npm' ,
102+ compat,
103+ noCompat,
104+ minimal,
85105 } ;
86106 } ,
87107
You can’t perform that action at this time.
0 commit comments