Move scripts outside of src

This commit is contained in:
garronej 2023-03-21 15:30:41 +01:00
parent c0e207b967
commit 46389a7b77
4 changed files with 3 additions and 5 deletions

View file

@ -80,7 +80,7 @@ If you want to release for both CJS and ESM, it's a bit less straign forward. Yo
## Can I use `npm` (or something else) instead of `yarn`
Yes, just remove the `yarn.lock` file and edit `.github/workflows/ci.yaml`, replace all `yarn ***` by `npm run ****`.
Note however that the the script (`src/link-in-app.ts`) that enable you to test in an external app will no longer work.
Note however that the the script (`scripts/link-in-app.ts`) that enable you to test in an external app will no longer work.
## What will be included in the npm bundle?

View file

@ -16,7 +16,7 @@
"_format": "prettier '**/*.{ts,tsx,json,md}'",
"format": "npm run _format -- --write",
"format:check": "npm run _format -- --list-different",
"link-in-app": "ts-node --skipProject src/scripts/link-in-app.ts"
"link-in-app": "ts-node --skipProject scripts/link-in-app.ts"
},
"lint-staged": {
"*.{ts,tsx}": [
@ -36,7 +36,6 @@
"files": [
"src/",
"!src/test/",
"!src/scripts",
"dist/",
"!dist/test/",
"!dist/tsconfig.tsbuildinfo"

View file

@ -17,6 +17,5 @@
"jsx": "react-jsx",
"noFallthroughCasesInSwitch": true
},
"include": ["src"],
"exclude": ["src/scripts"]
"include": ["src"]
}