Skip to content

Commit 77c0d74

Browse files
authored
chore(ts): map @designable/* to src folder during development (#26)
1 parent 30dc8e1 commit 77c0d74

21 files changed

+83
-55
lines changed

packages/core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"module": "esm",
1111
"scripts": {
1212
"build": "rimraf -rf lib esm dist && npm run build:cjs && npm run build:esm && npm run build:umd",
13-
"build:cjs": "tsc --declaration",
14-
"build:esm": "tsc --declaration --module es2015 --outDir esm",
13+
"build:cjs": "tsc --project tsconfig.build.json",
14+
"build:esm": "tsc --project tsconfig.build.json --module es2015 --outDir esm",
1515
"build:umd": "rollup --config"
1616
},
1717
"dependencies": {

packages/core/tsconfig.build.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"outDir": "./lib",
5+
"paths": {
6+
"@designable/*": ["../*"]
7+
},
8+
"declaration": true
9+
}
10+
}

packages/core/tsconfig.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
{
22
"extends": "../../tsconfig.json",
3-
"compilerOptions": {
4-
"outDir": "./lib",
5-
"paths": {
6-
"@designable/*": ["../*"]
7-
}
8-
},
93
"include": ["./src/**/*.ts", "./src/**/*.tsx"],
104
"exclude": ["./src/__tests__/*", "./esm/*", "./lib/*"]
115
}

packages/formily/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"module": "esm",
1111
"scripts": {
1212
"build": "rimraf -rf lib esm dist && npm run build:cjs && npm run build:esm && npm run build:umd",
13-
"build:cjs": "tsc --declaration",
14-
"build:esm": "tsc --declaration --module es2015 --outDir esm",
13+
"build:cjs": "tsc --project tsconfig.build.json",
14+
"build:esm": "tsc --project tsconfig.build.json --module es2015 --outDir esm",
1515
"build:umd": "rollup --config"
1616
},
1717
"publishConfig": {
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"outDir": "./lib",
5+
"paths": {
6+
"@designable/*": ["../*"]
7+
},
8+
"declaration": true
9+
}
10+
}

packages/formily/tsconfig.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
{
22
"extends": "../../tsconfig.json",
3-
"compilerOptions": {
4-
"outDir": "./lib",
5-
"paths": {
6-
"@designable/*": ["../*"]
7-
}
8-
},
93
"include": ["./src/**/*.ts", "./src/**/*.tsx"],
104
"exclude": ["./src/__tests__/*", "./esm/*", "./lib/*"]
115
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"outDir": "./lib",
5+
"paths": {
6+
"@designable/*": ["../*"]
7+
},
8+
"declaration": true
9+
}
10+
}

packages/playground/tsconfig.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
{
22
"extends": "../../tsconfig.json",
3-
"compilerOptions": {
4-
"outDir": "./lib",
5-
"paths": {
6-
"@designable/*": ["../*"]
7-
}
8-
},
93
"include": ["./src/**/*.ts", "./src/**/*.tsx"],
104
"exclude": ["./src/__tests__/*", "./esm/*", "./lib/*"]
115
}

packages/react-sandbox/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"module": "esm",
1111
"scripts": {
1212
"build": "rimraf -rf lib esm dist && npm run build:cjs && npm run build:esm && npm run build:umd",
13-
"build:cjs": "tsc --declaration",
14-
"build:esm": "tsc --declaration --module es2015 --outDir esm",
13+
"build:cjs": "tsc --project tsconfig.build.json",
14+
"build:esm": "tsc --project tsconfig.build.json --module es2015 --outDir esm",
1515
"build:umd": "rollup --config"
1616
},
1717
"peerDependencies": {
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"outDir": "./lib",
5+
"paths": {
6+
"@designable/*": ["../*"]
7+
},
8+
"declaration": true
9+
}
10+
}

0 commit comments

Comments
 (0)