docs: add npx2yarn component (#14512)
* initial * initial * update tests * remove unused import * allow passing with no tests * vale fixes
This commit is contained in:
1 parent
5f90cd0650
commit
43951ce60e
16 files changed
+330
-10
No files matched your search
@@ -25,7 +25,8 @@
|
||||
"scripts": {
|
||||
"build": "yarn clean && tsc",
|
||||
"clean": "rimraf dist",
|
||||
"watch": "tsc --watch"
|
||||
"watch": "tsc --watch",
|
||||
"test": "vitest --passWithNoTests"
|
||||
},
|
||||
"dependencies": {
|
||||
"@mdx-js/mdx": "^3.1.0",
|
||||
@@ -44,7 +45,9 @@
|
||||
"rimraf": "^5.0.5",
|
||||
"tsconfig": "*",
|
||||
"types": "*",
|
||||
"typescript": "^5.3.3"
|
||||
"typescript": "^5.3.3",
|
||||
"vite-tsconfig-paths": "^5.1.4",
|
||||
"vitest": "^2.1.8"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18.17.0"
|
||||
|
||||
@@ -16,5 +16,8 @@
|
||||
"skipLibCheck": true,
|
||||
"resolveJsonModule": true
|
||||
},
|
||||
"include": ["src"]
|
||||
"include": ["src"],
|
||||
"exclude": [
|
||||
"**/__tests__"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/tsconfig",
|
||||
"extends": "./tsconfig.json",
|
||||
"include": [
|
||||
"src/**/*",
|
||||
"__tests__/**/*",
|
||||
"__mocks__/**/*"
|
||||
],
|
||||
"exclude": []
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
import { defineConfig } from 'vitest/config'
|
||||
import react from '@vitejs/plugin-react'
|
||||
import tsconfigPaths from 'vite-tsconfig-paths'
|
||||
import { resolve } from 'path'
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
tsconfigPaths({
|
||||
configNames: ["tsconfig.tests.json"]
|
||||
}),
|
||||
react()
|
||||
],
|
||||
test: {
|
||||
environment: 'jsdom',
|
||||
setupFiles: [resolve(__dirname, '../../vitest.setup.ts')],
|
||||
},
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user