diff --git a/.husky/pre-commit b/.husky/pre-commit index 85efae4386..3f508ea1d1 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,8 +1,8 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" -# ESLint via Turborepo -# npm run lint -- -- --fix +# Build changed packages +npx turbo build # Prettier Standalone npx lint-staged diff --git a/.lintstagedrc.json b/.lintstagedrc.json index 7f41d38420..40a6c18fdd 100644 --- a/.lintstagedrc.json +++ b/.lintstagedrc.json @@ -1,3 +1,4 @@ { - "*.{js,jsx,ts,tsx,json,md,mdx}": ["npx prettier --write"] + "*.{js,jsx,ts,tsx}": ["npx eslint --fix", "npx prettier --write"], + "*.{json,md,mdx}": ["npx prettier --write"] } diff --git a/packages/shared/package.json b/packages/shared/package.json index 3cee1755c2..253989a4aa 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -45,7 +45,26 @@ "main": "./dist/index.js", "module": "./dist/index.mjs", "files": [ - "dist" + "dist", + "browser", + "callWithRetry", + "color", + "cookie", + "date", + "deprecated", + "error", + "file", + "globs", + "handleValueOrFn", + "isomorphicAtob", + "keys", + "loadScript", + "localStorageBroadcastChannel", + "poller", + "proxy", + "underscore", + "url", + "react" ], "scripts": { "build": "tsup", diff --git a/tsconfig.eslint.json b/tsconfig.eslint.json deleted file mode 100644 index cf89b1187b..0000000000 --- a/tsconfig.eslint.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "noEmit": true, - "allowJs": true - }, - "include": [ - ".eslintrc.js", - "commitlint.config.js", - "jest.*.ts", - "integration/*/*.js", - "integration/**/*.ts", - "integration/**/*.tsx", - "packages/*/src", - "packages/*/*.js", - "packages/**/*.ts", - "packages/**/*.tsx", - "scripts/*.mjs" - ] -}