@@ -168,6 +168,12 @@ export const defaultConfig = {
168168 envLink : 'HIGHCHARTS_CDN_URL' ,
169169 description : 'The CDN URL for Highcharts scripts to be used.'
170170 } ,
171+ useNpm : {
172+ value : false ,
173+ type : 'boolean' ,
174+ envLink : 'HIGHCHARTS_USE_NPM' ,
175+ description : 'Flag to use Highcharts scripts from NPM package'
176+ } ,
171177 coreScripts : {
172178 value : scriptsNames . core ,
173179 type : 'string[]' ,
@@ -191,12 +197,6 @@ export const defaultConfig = {
191197 type : 'string[]' ,
192198 description : 'Additional custom scripts or dependencies to fetch.'
193199 } ,
194- useNpm : {
195- value : false ,
196- type : 'boolean' ,
197- envLink : 'HIGHCHARTS_USE_NPM' ,
198- description : 'Flag to use Highcharts scripts from NPM package'
199- } ,
200200 forceFetch : {
201201 value : false ,
202202 type : 'boolean' ,
@@ -759,6 +759,12 @@ export const promptsConfig = {
759759 message : 'The URL of CDN' ,
760760 initial : defaultConfig . highcharts . cdnURL . value
761761 } ,
762+ {
763+ type : 'toggle' ,
764+ name : 'useNpm' ,
765+ message : 'Flag to use Highcharts scripts from NPM package' ,
766+ initial : defaultConfig . highcharts . useNpm . value
767+ } ,
762768 {
763769 type : 'multiselect' ,
764770 name : 'coreScripts' ,
@@ -787,12 +793,6 @@ export const promptsConfig = {
787793 initial : defaultConfig . highcharts . customScripts . value . join ( ',' ) ,
788794 separator : ','
789795 } ,
790- {
791- type : 'toggle' ,
792- name : 'useNpm' ,
793- message : 'Flag to use Highcharts scripts from NPM package' ,
794- initial : defaultConfig . highcharts . useNpm . value
795- } ,
796796 {
797797 type : 'toggle' ,
798798 name : 'forceFetch' ,
0 commit comments