Skip to content

Commit

Permalink
chore: bump release-scripts, typecheck package in CI, remove cache fo…
Browse files Browse the repository at this point in the history
…r eslint
  • Loading branch information
ArnaudBarre committed Jan 28, 2023
1 parent c3e5730 commit 9af763d
Show file tree
Hide file tree
Showing 9 changed files with 64 additions and 40 deletions.
15 changes: 7 additions & 8 deletions package.json
@@ -1,6 +1,7 @@
{
"name": "@vitejs/vite-plugin-react-monorepo",
"private": true,
"type": "module",
"engines": {
"node": "^14.18.0 || >=16.0.0"
},
Expand All @@ -18,26 +19,24 @@
"postinstall": "simple-git-hooks",
"format": "prettier --write --cache .",
"lint": "eslint --cache .",
"typecheck": "tsc -p scripts --noEmit && tsc -p playground --noEmit",
"typecheck": "tsc -p scripts && tsc -p playground && tsc -p packages/plugin-react",
"test": "run-s test-serve test-build",
"test-serve": "vitest run -c vitest.config.e2e.ts",
"test-build": "VITE_TEST_BUILD=1 vitest run -c vitest.config.e2e.ts",
"test-build-without-plugin-commonjs": "VITE_TEST_WITHOUT_PLUGIN_COMMONJS=1 pnpm test-build",
"debug-serve": "VITE_DEBUG_SERVE=1 vitest run -c vitest.config.e2e.ts",
"debug-build": "VITE_TEST_BUILD=1 VITE_PRESERVE_BUILD_ARTIFACTS=1 vitest run -c vitest.config.e2e.ts",
"test-serve": "vitest run -c playground/vitest.config.e2e.ts",
"test-build": "VITE_TEST_BUILD=1 vitest run -c playground/vitest.config.e2e.ts",
"debug-serve": "VITE_DEBUG_SERVE=1 vitest run -c playground/vitest.config.e2e.ts",
"debug-build": "VITE_TEST_BUILD=1 VITE_PRESERVE_BUILD_ARTIFACTS=1 vitest run -c playground/vitest.config.e2e.ts",
"build": "pnpm -r --filter='./packages/*' run build",
"dev": "pnpm -r --parallel --filter='./packages/*' run dev",
"release": "tsx scripts/release.ts",
"ci-publish": "tsx scripts/publishCI.ts"
},
"devDependencies": {
"@types/babel__core": "^7.20.0",
"@types/execa": "^2.0.0",
"@types/fs-extra": "^11.0.1",
"@types/node": "^18.11.18",
"@typescript-eslint/eslint-plugin": "^5.48.2",
"@typescript-eslint/parser": "^5.48.2",
"@vitejs/release-scripts": "^1.0.4",
"@vitejs/release-scripts": "^1.1.0",
"conventional-changelog-cli": "^2.2.2",
"eslint": "^8.32.0",
"eslint-define-config": "^1.14.0",
Expand Down
1 change: 0 additions & 1 deletion packages/plugin-react/src/babel.d.ts
@@ -1,4 +1,3 @@
declare module '@babel/plugin-transform-react-jsx'
declare module '@babel/plugin-transform-react-jsx-self'
declare module '@babel/plugin-transform-react-jsx-source'
declare module 'react-refresh/babel.js'
1 change: 1 addition & 0 deletions packages/plugin-react/src/refreshUtils.js
Expand Up @@ -6,6 +6,7 @@ function debounce(fn, delay) {
}
}

/* eslint-disable no-undef */
const enqueueUpdate = debounce(exports.performReactRefresh, 16)

// Taken from https://github.com/pmmmwh/react-refresh-webpack-plugin/blob/main/lib/runtime/RefreshUtils.js#L141
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-react/tsconfig.json
@@ -1,6 +1,5 @@
{
"include": ["src", "scripts"],
"exclude": ["**/*.spec.ts"],
"compilerOptions": {
"outDir": "dist",
"target": "ES2020",
Expand All @@ -9,6 +8,7 @@
"strict": true,
"declaration": true,
"sourceMap": true,
"noEmit": true,
"noUnusedLocals": true,
"esModuleInterop": true
}
Expand Down
1 change: 1 addition & 0 deletions playground/tsconfig.json
Expand Up @@ -11,6 +11,7 @@
"resolveJsonModule": true,
"moduleResolution": "Node",
"skipLibCheck": true,
"noEmit": true,
"noUnusedLocals": true,
"jsx": "preserve",
"types": ["vite/client", "node"],
Expand Down
2 changes: 1 addition & 1 deletion vitest.config.e2e.ts → playground/vitest.config.e2e.ts
Expand Up @@ -6,7 +6,7 @@ const timeout = process.env.CI ? 50000 : 30000
export default defineConfig({
resolve: {
alias: {
'~utils': resolve(__dirname, './playground/test-utils'),
'~utils': resolve(__dirname, './test-utils'),
},
},
test: {
Expand Down
65 changes: 52 additions & 13 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions scripts/tsconfig.json
Expand Up @@ -5,6 +5,7 @@
"module": "CommonJS",
"target": "ES2020",
"moduleResolution": "Node",
"noEmit": true,
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
Expand Down
16 changes: 0 additions & 16 deletions vitest.config.ts

This file was deleted.

0 comments on commit 9af763d

Please sign in to comment.