File tree Expand file tree Collapse file tree 5 files changed +11
-3
lines changed
packages/@glimmer/compiler Expand file tree Collapse file tree 5 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ export default () =>
8484 types : './dist/dev/index.d.ts' ,
8585 default : './dist/dev/index.js' ,
8686 } ,
87- ...( pkg [ 'repo-meta' ] ?. [ 'support-cjs' ]
87+ ...( pkg [ 'repo-meta' ] ?. supportcjs
8888 ? {
8989 require : {
9090 default : './dist/dev/index.cjs' ,
Original file line number Diff line number Diff line change 1010 "type" : " module" ,
1111 "exports" : " ./index.ts" ,
1212 "repo-meta" : {
13- "support-cjs " : true
13+ "supportcjs " : true
1414 },
1515 "publishConfig" : {
1616 "access" : " public" ,
Original file line number Diff line number Diff line change @@ -66,6 +66,11 @@ export interface RepoMetaForPackage {
6666 * Whether this package has buildable entry points and therefore needs to be built.
6767 */
6868 built ?: true ;
69+
70+ /**
71+ * Whether this package has to support CJS (usually for legacy reasons)
72+ */
73+ supportcjs ?: true ;
6974}
7075
7176type RepoMetaEnv = 'node' | 'console' | 'qunit' | 'decorator:classic' ;
@@ -79,6 +84,7 @@ export interface PackageInfo {
7984 entryPoints ?: PackageEntryPoints ;
8085 'repo-meta' ?: {
8186 strictness ?: 'strict' | 'loose' ;
87+ supportcjs ?: boolean ;
8288 env ?: RepoMetaEnv [ ] ;
8389 lint ?: string [ ] ;
8490 built : boolean ;
Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ const packagesMetadata = packages.map((pkg) => {
9090 if ( repoMeta . lint ) meta . lint = Array . isArray ( repoMeta . lint ) ? repoMeta . lint : [ repoMeta . lint ] ;
9191 if ( repoMeta . env ) meta . env = repoMeta . env ;
9292 if ( repoMeta . built ) meta . built = repoMeta . built ;
93+ if ( repoMeta . supportcjs ) meta . supportcjs = repoMeta . supportcjs ;
9394 }
9495
9596 if ( Object . keys ( entryPoints ) . length > 0 ) {
Original file line number Diff line number Diff line change 171171 "type" : " module" ,
172172 "private" : false ,
173173 "repo-meta" : {
174- "built" : true
174+ "built" : true ,
175+ "supportcjs" : true
175176 },
176177 "entryPoints" : {
177178 "." : [[[" default" ], " ./index.ts" ]]
You can’t perform that action at this time.
0 commit comments