File tree 5 files changed +11
-3
lines changed
packages/@glimmer/compiler
5 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ export default () =>
84
84
types : './dist/dev/index.d.ts' ,
85
85
default : './dist/dev/index.js' ,
86
86
} ,
87
- ...( pkg [ 'repo-meta' ] ?. [ 'support-cjs' ]
87
+ ...( pkg [ 'repo-meta' ] ?. supportcjs
88
88
? {
89
89
require : {
90
90
default : './dist/dev/index.cjs' ,
Original file line number Diff line number Diff line change 10
10
"type" : " module" ,
11
11
"exports" : " ./index.ts" ,
12
12
"repo-meta" : {
13
- "support-cjs " : true
13
+ "supportcjs " : true
14
14
},
15
15
"publishConfig" : {
16
16
"access" : " public" ,
Original file line number Diff line number Diff line change @@ -66,6 +66,11 @@ export interface RepoMetaForPackage {
66
66
* Whether this package has buildable entry points and therefore needs to be built.
67
67
*/
68
68
built ?: true ;
69
+
70
+ /**
71
+ * Whether this package has to support CJS (usually for legacy reasons)
72
+ */
73
+ supportcjs ?: true ;
69
74
}
70
75
71
76
type RepoMetaEnv = 'node' | 'console' | 'qunit' | 'decorator:classic' ;
@@ -79,6 +84,7 @@ export interface PackageInfo {
79
84
entryPoints ?: PackageEntryPoints ;
80
85
'repo-meta' ?: {
81
86
strictness ?: 'strict' | 'loose' ;
87
+ supportcjs ?: boolean ;
82
88
env ?: RepoMetaEnv [ ] ;
83
89
lint ?: string [ ] ;
84
90
built : boolean ;
Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ const packagesMetadata = packages.map((pkg) => {
90
90
if ( repoMeta . lint ) meta . lint = Array . isArray ( repoMeta . lint ) ? repoMeta . lint : [ repoMeta . lint ] ;
91
91
if ( repoMeta . env ) meta . env = repoMeta . env ;
92
92
if ( repoMeta . built ) meta . built = repoMeta . built ;
93
+ if ( repoMeta . supportcjs ) meta . supportcjs = repoMeta . supportcjs ;
93
94
}
94
95
95
96
if ( Object . keys ( entryPoints ) . length > 0 ) {
Original file line number Diff line number Diff line change 171
171
"type" : " module" ,
172
172
"private" : false ,
173
173
"repo-meta" : {
174
- "built" : true
174
+ "built" : true ,
175
+ "supportcjs" : true
175
176
},
176
177
"entryPoints" : {
177
178
"." : [[[" default" ], " ./index.ts" ]]
You can’t perform that action at this time.
0 commit comments