mirror of
https://github.com/garronej/ts-ci.git
synced 2025-11-30 21:43:05 +00:00
Move scripts outside of src
This commit is contained in:
parent
c0e207b967
commit
46389a7b77
4 changed files with 3 additions and 5 deletions
|
|
@ -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?
|
||||
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -17,6 +17,5 @@
|
|||
"jsx": "react-jsx",
|
||||
"noFallthroughCasesInSwitch": true
|
||||
},
|
||||
"include": ["src"],
|
||||
"exclude": ["src/scripts"]
|
||||
"include": ["src"]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue