Skip to content

Commit

Permalink
chore: add typecheck and repair manifest files
Browse files Browse the repository at this point in the history
  • Loading branch information
samrith-s committed Jan 16, 2025
1 parent 1862530 commit 06062d3
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 14 deletions.
3 changes: 2 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/samrith-s/genshi.git",
"url": "git+https://github.com/samrith-s/genshi.git",
"directory": "packages/core"
},
"bugs": {
Expand All @@ -34,6 +34,7 @@
"build": "vite build",
"lint": "sh ../../scripts/shell/lint.sh .",
"format": "sh ../../scripts/shell/format.sh .",
"typecheck": "sh ../../scripts/shell/typecheck.sh .",
"test": "vitest --coverage"
},
"devDependencies": {
Expand Down
4 changes: 4 additions & 0 deletions packages/core/tsconfig.check.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"include": ["src/**/*"]
}
4 changes: 3 additions & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@
"main": "lib/index.cjs",
"types": "lib/types/src/index.d.ts",
"exports": {
"types": "./lib/types/src/index.d.ts",
"import": "./lib/index.js",
"require": "./lib/index.cjs"
},
"repository": {
"type": "git",
"url": "https://github.com/samrith-s/genshi.git",
"url": "git+https://github.com/samrith-s/genshi.git",
"directory": "packages/react"
},
"bugs": {
Expand All @@ -28,6 +29,7 @@
"build": "vite build",
"lint": "sh ../../scripts/shell/lint.sh .",
"format": "sh ../../scripts/shell/format.sh .",
"typecheck": "sh ../../scripts/shell/typecheck.sh .",
"test": "vitest --coverage",
"example": "parcel example/index.html"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/react/tsconfig.check.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"include": ["src/**/*"]
}
7 changes: 0 additions & 7 deletions scripts/shell/resolve-root.sh

This file was deleted.

6 changes: 1 addition & 5 deletions scripts/shell/typecheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,4 @@ export ROOT=$(readlink -f $PWD/../../);
export NODE_MODULES=$(readlink -f $ROOT/node_modules);
export NODE_MODULES_BIN=$(readlink -f $NODE_MODULES/.bin);

echo $ROOT
echo $NODE_MODULES
echo $NODE_MODULES_BIN

$NODE_MODULES_BIN/eslint --ignore-path $ROOT/.eslintignore $@;
$NODE_MODULES_BIN/tsc --checkJs false -p ./tsconfig.check.json;
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"include": ["packages/**/*", "**/*.ts", "**/*.tsx", "**/*.json"],
"exclude": ["node_modules", ".rollup.cache", ".yarn", "lib", "dist"],
"compilerOptions": {
"noEmit": true,
"module": "ESNext",
"baseUrl": ".",
"rootDir": ".",
Expand Down

0 comments on commit 06062d3

Please sign in to comment.