@@ -158,9 +158,7 @@ function addProject(
158
158
outputPath,
159
159
main : `${ options . projectRoot } /src/index` + ( options . js ? '.js' : '.ts' ) ,
160
160
tsConfig : `${ options . projectRoot } /tsconfig.lib.json` ,
161
- // TODO(jack): assets for rollup have validation that we need to fix (assets must be under <project-root>/src)
162
- assets :
163
- options . bundler === 'rollup' ? [ ] : [ `${ options . projectRoot } /*.md` ] ,
161
+ assets : [ ] ,
164
162
} ,
165
163
} ;
166
164
@@ -173,6 +171,17 @@ function addProject(
173
171
projectConfiguration . targets . build . options . skipTypeCheck = true ;
174
172
}
175
173
174
+ if (
175
+ ! options . minimal &&
176
+ // TODO(jack): assets for rollup have validation that we need to fix (assets must be under <project-root>/src)
177
+ options . bundler !== 'rollup'
178
+ ) {
179
+ projectConfiguration . targets . build . options . assets ??= [ ] ;
180
+ projectConfiguration . targets . build . options . assets . push (
181
+ joinPathFragments ( options . projectRoot , '*.md' )
182
+ ) ;
183
+ }
184
+
176
185
if ( options . publishable ) {
177
186
const publishScriptPath = addMinimalPublishScript ( tree ) ;
178
187
@@ -305,6 +314,10 @@ function createFiles(tree: Tree, options: NormalizedSchema, filesDir: string) {
305
314
tree . delete ( packageJsonPath ) ;
306
315
}
307
316
317
+ if ( options . minimal ) {
318
+ tree . delete ( join ( options . projectRoot , 'README.md' ) ) ;
319
+ }
320
+
308
321
updateTsConfig ( tree , options ) ;
309
322
}
310
323
@@ -441,6 +454,8 @@ function normalizeOptions(
441
454
const importPath =
442
455
options . importPath || getImportPath ( npmScope , projectDirectory ) ;
443
456
457
+ options . minimal ??= false ;
458
+
444
459
return {
445
460
...options ,
446
461
fileName,
0 commit comments