Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ts): map @formily/* to src folder during development #1917

Merged
merged 2 commits into from
Aug 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions designable/antd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
},
"scripts": {
"build": "rimraf -rf lib esm dist && npm run build:cjs && npm run build:esm && npm run build:umd && ts-node copy",
"build:cjs": "tsc --declaration",
"build:esm": "tsc --declaration --module es2015 --outDir esm",
"build:cjs": "tsc --project tsconfig.build.json",
"build:esm": "tsc --project tsconfig.build.json --module es2015 --outDir esm",
"build:umd": "rollup --config",
"build:playground": "webpack-cli --config playground/webpack.prod.ts",
"start": "webpack-dev-server --config playground/webpack.dev.ts"
Expand Down
14 changes: 14 additions & 0 deletions designable/antd/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./lib",
"paths": {
"@formily/*": [
"../../packages/*",
"../../designable/*",
"../../devtools/*"
]
},
"declaration": true
}
}
6 changes: 0 additions & 6 deletions designable/antd/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./lib",
"paths": {
"@formily/*": ["../*"]
}
},
"include": ["./src/**/*.ts", "./src/**/*.tsx"],
"exclude": ["./src/__tests__/*", "./esm/*", "./lib/*"]
}
4 changes: 2 additions & 2 deletions designable/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"scripts": {
"start": "dumi dev",
"build": "rimraf -rf lib esm dist && npm run build:cjs && npm run build:esm && npm run build:umd && ts-node copy",
"build:cjs": "tsc --declaration",
"build:esm": "tsc --declaration --module es2015 --outDir esm",
"build:cjs": "tsc --project tsconfig.build.json",
"build:esm": "tsc --project tsconfig.build.json --module es2015 --outDir esm",
"build:umd": "rollup --config",
"build:docs": "dumi build"
},
Expand Down
14 changes: 14 additions & 0 deletions designable/next/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./lib",
"paths": {
"@formily/*": [
"../../packages/*",
"../../designable/*",
"../../devtools/*"
]
},
"declaration": true
}
}
6 changes: 0 additions & 6 deletions designable/next/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./lib",
"paths": {
"@formily/*": ["../*"]
}
},
"include": ["./src/**/*.ts", "./src/**/*.tsx"],
"exclude": ["./src/__tests__/*", "./esm/*", "./lib/*"]
}
4 changes: 2 additions & 2 deletions designable/setters/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
},
"scripts": {
"build": "rimraf -rf lib esm dist && npm run build:cjs && npm run build:esm && npm run build:umd && ts-node copy",
"build:cjs": "tsc --declaration",
"build:esm": "tsc --declaration --module es2015 --outDir esm",
"build:cjs": "tsc --project tsconfig.build.json",
"build:esm": "tsc --project tsconfig.build.json --module es2015 --outDir esm",
"build:umd": "rollup --config",
"start": "webpack-dev-server --config playground/webpack.dev.ts"
},
Expand Down
14 changes: 14 additions & 0 deletions designable/setters/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./lib",
"paths": {
"@formily/*": [
"../../packages/*",
"../../designable/*",
"../../devtools/*"
]
},
"declaration": true
}
}
6 changes: 0 additions & 6 deletions designable/setters/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./lib",
"paths": {
"@formily/*": ["../*"]
}
},
"include": ["./src/**/*.ts", "./src/**/*.tsx"],
"exclude": ["./src/__tests__/*", "./esm/*", "./lib/*"]
}
14 changes: 14 additions & 0 deletions devtools/chrome-extension/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./lib",
"paths": {
"@formily/*": [
"../../packages/*",
"../../designable/*",
"../../devtools/*"
]
},
"declaration": true
}
}
6 changes: 0 additions & 6 deletions devtools/chrome-extension/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./lib",
"paths": {
"@formily/*": ["../*"]
}
},
"include": ["./src/**/*.ts", "./src/**/*.tsx"],
"exclude": ["./src/__tests__/*", "./esm/*", "./lib/*"]
}
4 changes: 2 additions & 2 deletions packages/antd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
"build": "rimraf -rf lib esm dist && npm run create:style && npm run build:cjs && npm run build:esm && npm run build:umd && npm run build:style",
"create:style": "ts-node create-style",
"build:style": "ts-node build-style",
"build:cjs": "tsc --declaration",
"build:esm": "tsc --declaration --module es2015 --outDir esm",
"build:cjs": "tsc --project tsconfig.build.json",
"build:esm": "tsc --project tsconfig.build.json --module es2015 --outDir esm",
"build:umd": "rollup --config",
"build:docs": "dumi build"
},
Expand Down
14 changes: 14 additions & 0 deletions packages/antd/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./lib",
"paths": {
"@formily/*": [
"../../packages/*",
"../../designable/*",
"../../devtools/*"
]
},
"declaration": true
}
}
6 changes: 0 additions & 6 deletions packages/antd/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./lib",
"paths": {
"@formily/*": ["../*"]
}
},
"include": ["./src/**/*.ts", "./src/**/*.tsx"],
"exclude": ["./src/__tests__/*", "./esm/*", "./lib/*"]
}
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"scripts": {
"start": "dumi dev",
"build": "rimraf -rf lib esm dist && npm run build:cjs && npm run build:esm && npm run build:umd && npm run build:global",
"build:cjs": "tsc --declaration",
"build:esm": "tsc --declaration --module es2015 --outDir esm",
"build:cjs": "tsc --project tsconfig.build.json",
"build:esm": "tsc --project tsconfig.build.json --module es2015 --outDir esm",
"build:umd": "rollup --config",
"build:global": "ts-node ../../scripts/build-global",
"build:docs": "dumi build"
Expand Down
14 changes: 14 additions & 0 deletions packages/core/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./lib",
"paths": {
"@formily/*": [
"../../packages/*",
"../../designable/*",
"../../devtools/*"
]
},
"declaration": true
}
}
3 changes: 0 additions & 3 deletions packages/core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./lib"
},
"include": ["./src/**/*.ts", "./src/**/*.tsx"],
"exclude": ["./src/__tests__/*", "./esm/*", "./lib/*"]
}
14 changes: 14 additions & 0 deletions packages/element/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./lib",
"paths": {
"@formily/*": [
"../../packages/*",
"../../designable/*",
"../../devtools/*"
]
},
"declaration": true
}
}
6 changes: 5 additions & 1 deletion packages/element/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
"outDir": "./lib",
"skipLibCheck": true,
"paths": {
"@formily/*": ["../*"]
"@formily/*": [
"../../packages/*",
"../../designable/*",
"../../devtools/*"
]
},
"plugins": [{ "transform": "./transformer.ts", "after": true }]
},
Expand Down
4 changes: 2 additions & 2 deletions packages/json-schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
},
"scripts": {
"build": "rimraf -rf lib esm dist && npm run build:cjs && npm run build:esm && npm run build:umd && npm run build:global",
"build:cjs": "tsc --declaration",
"build:esm": "tsc --declaration --module es2015 --outDir esm",
"build:cjs": "tsc --project tsconfig.build.json",
"build:esm": "tsc --project tsconfig.build.json --module es2015 --outDir esm",
"build:umd": "rollup --config",
"build:global": "ts-node ../../scripts/build-global"
},
Expand Down
14 changes: 14 additions & 0 deletions packages/json-schema/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./lib",
"paths": {
"@formily/*": [
"../../packages/*",
"../../designable/*",
"../../devtools/*"
]
},
"declaration": true
}
}
6 changes: 0 additions & 6 deletions packages/json-schema/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./lib",
"paths": {
"@formily/*": ["../*"]
}
},
"include": ["./src/**/*.ts", "./src/**/*.tsx"],
"exclude": ["./src/__tests__/*", "./esm/*", "./lib/*"]
}
4 changes: 2 additions & 2 deletions packages/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
"build": "rimraf -rf lib esm dist && npm run create:style && npm run build:cjs && npm run build:esm && npm run build:umd && npm run build:style",
"create:style": "ts-node create-style",
"build:style": "ts-node build-style",
"build:cjs": "tsc --declaration",
"build:esm": "tsc --declaration --module es2015 --outDir esm",
"build:cjs": "tsc --project tsconfig.build.json",
"build:esm": "tsc --project tsconfig.build.json --module es2015 --outDir esm",
"build:umd": "rollup --config",
"build:docs": "dumi build"
},
Expand Down
14 changes: 14 additions & 0 deletions packages/next/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./lib",
"paths": {
"@formily/*": [
"../../packages/*",
"../../designable/*",
"../../devtools/*"
]
},
"declaration": true
}
}
6 changes: 0 additions & 6 deletions packages/next/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./lib",
"paths": {
"@formily/*": ["../*"]
}
},
"include": ["./src/**/*.js", "./src/**/*.ts", "./src/**/*.tsx"],
"exclude": ["./src/__tests__/*"]
}
4 changes: 2 additions & 2 deletions packages/path/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"scripts": {
"start": "dumi dev",
"build": "rimraf -rf lib esm dist && npm run build:cjs && npm run build:esm && npm run build:umd",
"build:cjs": "tsc --declaration",
"build:esm": "tsc --declaration --module es2015 --outDir esm",
"build:cjs": "tsc --project tsconfig.build.json",
"build:esm": "tsc --project tsconfig.build.json --module es2015 --outDir esm",
"build:umd": "rollup --config",
"build:docs": "dumi build",
"benchmark": "ts-node ./benchmark"
Expand Down
14 changes: 14 additions & 0 deletions packages/path/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./lib",
"paths": {
"@formily/*": [
"../../packages/*",
"../../designable/*",
"../../devtools/*"
]
},
"declaration": true
}
}
6 changes: 0 additions & 6 deletions packages/path/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./lib",
"paths": {
"@formily/*": ["../*"]
}
},
"include": ["./src/**/*.ts", "./src/**/*.tsx"],
"exclude": ["./src/__tests__/*", "./esm/*", "./lib/*"]
}
4 changes: 2 additions & 2 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"scripts": {
"start": "dumi dev",
"build": "rimraf -rf lib esm dist && npm run build:cjs && npm run build:esm && npm run build:umd && npm run build:global",
"build:cjs": "tsc --declaration",
"build:esm": "tsc --declaration --module es2015 --outDir esm",
"build:cjs": "tsc --project tsconfig.build.json",
"build:esm": "tsc --project tsconfig.build.json --module es2015 --outDir esm",
"build:umd": "rollup --config",
"build:global": "ts-node ../../scripts/build-global",
"build:docs": "dumi build"
Expand Down
14 changes: 14 additions & 0 deletions packages/react/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./lib",
"paths": {
"@formily/*": [
"../../packages/*",
"../../designable/*",
"../../devtools/*"
]
},
"declaration": true
}
}
6 changes: 0 additions & 6 deletions packages/react/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./lib",
"paths": {
"@formily/*": ["../*"]
}
},
"include": ["./src/**/*.ts", "./src/**/*.tsx"],
"exclude": ["./src/__tests__/*", "./esm/*", "./lib/*"]
}
Loading