Move scripts/ to devEnv/
This commit is contained in:
parent
f612108e18
commit
654f5d60a3
9 changed files with 8 additions and 17 deletions
|
@ -62,7 +62,6 @@ module.exports = {
|
||||||
'./examples/*/tsconfig.json',
|
'./examples/*/tsconfig.json',
|
||||||
'./devEnv/tsconfig.json',
|
'./devEnv/tsconfig.json',
|
||||||
'./compat-tests/tsconfig.json',
|
'./compat-tests/tsconfig.json',
|
||||||
'./scripts/tsconfig.json',
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
|
|
|
@ -13,6 +13,6 @@
|
||||||
{"path": "../../packages/r3f"},
|
{"path": "../../packages/r3f"},
|
||||||
{"path": "../../examples/basic-dom"},
|
{"path": "../../examples/basic-dom"},
|
||||||
{"path": "../../compat-tests"},
|
{"path": "../../compat-tests"},
|
||||||
{"path": "../../scripts"}
|
{"path": "../../devEnv"}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,8 @@ module.exports = {
|
||||||
testMatch: [
|
testMatch: [
|
||||||
'<rootDir>/packages/*/src/**/*.test.ts',
|
'<rootDir>/packages/*/src/**/*.test.ts',
|
||||||
'<rootDir>/theatre/*/src/**/*.test.ts',
|
'<rootDir>/theatre/*/src/**/*.test.ts',
|
||||||
|
'<rootDir>/theatre/*/src/**/*.test.ts',
|
||||||
|
'<rootDir>/devEnv/**/*.test.ts',
|
||||||
],
|
],
|
||||||
moduleNameMapper: {
|
moduleNameMapper: {
|
||||||
...require('./devEnv/getAliasesFromTsConfig').getAliasesFromTsConfigForJest(),
|
...require('./devEnv/getAliasesFromTsConfig').getAliasesFromTsConfigForJest(),
|
||||||
|
@ -15,6 +17,7 @@ module.exports = {
|
||||||
nanoid: '<rootDir>/node_modules/nanoid/index.cjs',
|
nanoid: '<rootDir>/node_modules/nanoid/index.cjs',
|
||||||
'nanoid/non-secure': '<rootDir>/node_modules/nanoid/non-secure/index.cjs',
|
'nanoid/non-secure': '<rootDir>/node_modules/nanoid/non-secure/index.cjs',
|
||||||
'react-icons/(.*)': 'identity-obj-proxy',
|
'react-icons/(.*)': 'identity-obj-proxy',
|
||||||
|
'react-merge-refs': 'identity-obj-proxy',
|
||||||
},
|
},
|
||||||
setupFiles: ['./theatre/shared/src/setupTestEnv.ts'],
|
setupFiles: ['./theatre/shared/src/setupTestEnv.ts'],
|
||||||
automock: false,
|
automock: false,
|
||||||
|
|
|
@ -14,18 +14,18 @@
|
||||||
"test:e2e": "yarn workspace playground run test",
|
"test:e2e": "yarn workspace playground run test",
|
||||||
"test:e2e:ci": "yarn workspace playground run test:ci",
|
"test:e2e:ci": "yarn workspace playground run test:ci",
|
||||||
"typecheck": "yarn run build:ts",
|
"typecheck": "yarn run build:ts",
|
||||||
"build": "node -r esbuild-register scripts/build.ts",
|
"build": "node -r esbuild-register devEnv/scripts/build.ts",
|
||||||
"clean": "node -r esbuild-register scripts/clean.ts",
|
"clean": "node -r esbuild-register devEnv/scripts/clean.ts",
|
||||||
"build:ts": "tsc --build ./devEnv/typecheck-all-projects/tsconfig.all.json",
|
"build:ts": "tsc --build ./devEnv/typecheck-all-projects/tsconfig.all.json",
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
"test:compat:install": "yarn workspace @theatre/compat-tests run install-fixtures",
|
"test:compat:install": "yarn workspace @theatre/compat-tests run install-fixtures",
|
||||||
"test:compat:run": "jest --config jest.compat-tests.config.js",
|
"test:compat:run": "jest --config jest.compat-tests.config.js",
|
||||||
"postinstall": "husky install",
|
"postinstall": "husky install",
|
||||||
"release": "node -r esbuild-register scripts/release.ts",
|
"release": "node -r esbuild-register devEnv/scripts/release.ts",
|
||||||
"lint:all": "eslint . --ext ts,tsx --ignore-path=.gitignore --rulesdir ./devEnv/eslint/rules"
|
"lint:all": "eslint . --ext ts,tsx --ignore-path=.gitignore --rulesdir ./devEnv/eslint/rules"
|
||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"(theatre|packages|scripts|compat-tests)/**/*.(t|j)s?(x)": [
|
"(theatre|packages|devEnv|compat-tests)/**/*.(t|j)s?(x)": [
|
||||||
"eslint --rulesdir ./devEnv/eslint/rules --fix"
|
"eslint --rulesdir ./devEnv/eslint/rules --fix"
|
||||||
],
|
],
|
||||||
"**/*.(t|j)s?(x)": [
|
"**/*.(t|j)s?(x)": [
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
{
|
|
||||||
"extends": "../tsconfig.base.json",
|
|
||||||
"compilerOptions": {
|
|
||||||
"noEmit": true,
|
|
||||||
"resolveJsonModule": true,
|
|
||||||
"types": ["node"],
|
|
||||||
"composite": true,
|
|
||||||
"target": "es6"
|
|
||||||
},
|
|
||||||
"include": ["*.ts", "**/*.ts"]
|
|
||||||
}
|
|
Loading…
Reference in a new issue