File tree 4 files changed +15
-8
lines changed
packages/cli/src/lib/commands
4 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 1
1
node_modules
2
+ deploy
Original file line number Diff line number Diff line change 1
1
{
2
2
"root" : true ,
3
- "ignorePatterns" : [" **/*" ],
3
+ "ignorePatterns" : [" **/*" , " deploy/**/* " ],
4
4
"plugins" : [" @nx" ],
5
5
"overrides" : [
6
6
{
Original file line number Diff line number Diff line change 35
35
"@nx/eslint:lint" : {
36
36
"inputs" : [" default" , " {workspaceRoot}/.eslintrc.json" ],
37
37
"cache" : true
38
+ },
39
+ "@nx/js:tsc" : {
40
+ "cache" : true ,
41
+ "dependsOn" : [" ^build" ],
42
+ "inputs" : [" production" , " ^production" ]
38
43
}
39
44
},
40
45
"namedInputs" : {
Original file line number Diff line number Diff line change @@ -127,18 +127,19 @@ const updateProjectJsonConfig = async (
127
127
projectJson . targets . build . options . updateBuildableProjectDepsInPackageJson =
128
128
true ;
129
129
130
- if ( projectJson . targets . lint ) {
131
- const lintFilePatterns = projectJson . targets . lint . options . lintFilePatterns ;
130
+ const lintFilePatterns = projectJson . targets . lint ?. options ?. lintFilePatterns ;
131
+
132
+ if ( lintFilePatterns ) {
132
133
const patternIndex = lintFilePatterns . findIndex ( ( item ) =>
133
134
item . endsWith ( 'package.json' )
134
135
) ;
135
136
if ( patternIndex !== - 1 ) lintFilePatterns ?. splice ( patternIndex , 1 ) ;
136
137
} else {
137
- projectJson . targets . lint = {
138
- executor : '@nx/eslint:lint' ,
139
- outputs : [ '{options.outputFile}' ] ,
140
- } ;
141
- }
138
+ projectJson . targets . lint = {
139
+ executor : '@nx/eslint:lint' ,
140
+ outputs : [ '{options.outputFile}' ] ,
141
+ } ;
142
+ }
142
143
143
144
await writeProjectJson (
144
145
`packages/pieces/${ pieceType } /${ pieceName } ` ,
You can’t perform that action at this time.
0 commit comments