Skip to content

Commit

Permalink
fix: skipLibCheck and prevent cleaning of needed react .js files
Browse files Browse the repository at this point in the history
  • Loading branch information
justinm committed Apr 11, 2022
1 parent 6028aba commit c8d03f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions packages/@pdkit/core/nodejs/tools/ReactSupport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export class ReactSupport extends XConstruct {
declaration: false,
target: "es5",
jsx: TypeScriptJsxMode.REACT_JSX,
skipLibCheck: true,
},
});
new GitIgnore(this, ["build/*", "!react-app-env.d.ts", "!setupProxy.js", "!setupTests.js"]);
Expand All @@ -115,6 +116,8 @@ export class ReactSupport extends XConstruct {
start: `${reactScriptsCommand} start`,
build: `${reactScriptsCommand} build`,
test: `${reactScriptsCommand} test`,
clean:
'find . -name "*.js" -not -path "./node_modules/*" -not -name config-overrides.js -not -name setupProxy.js -delete && find . -name "*.d.ts" -not -path "./node_modules/*" -delete',
},
browserslist: [">0.2%", "not dead", "not op_mini all"],
});
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@pdkit/cli@workspace:packages/@pdkit/cli"
dependencies:
"@pdkit/core": 2.0.16
"@pdkit/core": 2.0.17
"@types/diff": 5.0.2
"@types/glob": 7.2.0
"@types/jest": 27.4.1
Expand Down Expand Up @@ -991,13 +991,13 @@ __metadata:
typescript: 4.6.3
yargs: 17.4.0
peerDependencies:
"@pdkit/core": 2.0.16
"@pdkit/core": 2.0.17
bin:
pdkit: index.ts
languageName: unknown
linkType: soft

"@pdkit/[email protected].16, @pdkit/core@workspace:packages/@pdkit/core":
"@pdkit/[email protected].17, @pdkit/core@workspace:packages/@pdkit/core":
version: 0.0.0-use.local
resolution: "@pdkit/core@workspace:packages/@pdkit/core"
dependencies:
Expand Down

0 comments on commit c8d03f7

Please sign in to comment.