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`
|
## 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 ****`.
|
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?
|
## What will be included in the npm bundle?
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
"_format": "prettier '**/*.{ts,tsx,json,md}'",
|
"_format": "prettier '**/*.{ts,tsx,json,md}'",
|
||||||
"format": "npm run _format -- --write",
|
"format": "npm run _format -- --write",
|
||||||
"format:check": "npm run _format -- --list-different",
|
"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": {
|
"lint-staged": {
|
||||||
"*.{ts,tsx}": [
|
"*.{ts,tsx}": [
|
||||||
|
|
@ -36,7 +36,6 @@
|
||||||
"files": [
|
"files": [
|
||||||
"src/",
|
"src/",
|
||||||
"!src/test/",
|
"!src/test/",
|
||||||
"!src/scripts",
|
|
||||||
"dist/",
|
"dist/",
|
||||||
"!dist/test/",
|
"!dist/test/",
|
||||||
"!dist/tsconfig.tsbuildinfo"
|
"!dist/tsconfig.tsbuildinfo"
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,5 @@
|
||||||
"jsx": "react-jsx",
|
"jsx": "react-jsx",
|
||||||
"noFallthroughCasesInSwitch": true
|
"noFallthroughCasesInSwitch": true
|
||||||
},
|
},
|
||||||
"include": ["src"],
|
"include": ["src"]
|
||||||
"exclude": ["src/scripts"]
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue