Skip to content

Commit b2287cf

Browse files
author
farfromrefug
committed
fix: vue3 build fix
1 parent 27f7a4c commit b2287cf

File tree

15 files changed

+45
-19
lines changed

15 files changed

+45
-19
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,5 @@ packages/**/*.metadata.json
6060

6161
.vscode/settings.json
6262

63-
/blueprint.md
63+
/blueprint.md
64+
*.tsbuildinfo

demo-vue3

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"build.all": "lerna run build.all",
1717
"build.angular": "lerna run build.angular",
1818
"build.win": "lerna run build-win",
19-
"clean": "rimraf 'packages/**/*.d.ts' 'packages/**/*.js' 'packages/**/*.js.map' 'packages/**/*.metada' 'packages/**/angular/ng-package.json'",
20-
"fullclean": "npm run clean && rimraf 'packages/**/node_modules' 'demo-*/hooks' 'demo-*/node_modules' 'package-lock.json' 'pnpm-lock.yaml' 'node_modules'",
19+
"clean": "rimraf -g 'packages/**/*.d.ts' 'packages/**/*.tsbuildinfo' 'packages/**/*.mjs' 'packages/**/*.js.map' 'packages/**/*.mjs.map' 'packages/**/*.metada' 'packages/**/angular/ng-package.json'",
20+
"fullclean": "npm run clean && rimraf -g 'packages/**/node_modules' 'demo-*/hooks' 'demo-*/node_modules' 'package-lock.json' 'pnpm-lock.yaml' 'node_modules'",
2121
"commitmsg": "commitlint -e $GIT_PARAMS",
2222
"demo.ng.android": "cd ./demo-ng && ns run android --no-hmr --env.watchNodeModules",
2323
"demo.ng.clean": "cd ./demo-ng && ns clean",
@@ -43,7 +43,6 @@
4343
"submodules": "git submodule update --init",
4444
"sync": "node ./tools/sync.js",
4545
"sync.test": "node ./tools/sync.js",
46-
"tsc": "cpy '**/*.d.ts' '../plugin' --parents --cwd=src && tsc -skipLibCheck -d",
4746
"update": "node ./tools/update.js",
4847
"watch": "npm run tsc -- -w",
4948
"doc": "node tools/builddoc.mjs",

packages/alignedflowlayout/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"build": "npm run tsc && npm run readme",
1515
"build.all": "npm run build",
1616
"readme": "readme generate -c ../../tools/readme/blueprint.json",
17-
"tsc": "cpy '**/*.d.ts' '../../packages/alignedflowlayout' --parents --cwd=../../src/alignedflowlayout && tsc -skipLibCheck -d",
17+
"tsc": "cpy '**/*.d.ts' '../../packages/alignedflowlayout' --parents --cwd=../../src/alignedflowlayout && tsc --build",
1818
"clean": "rimraf ./*.d.ts ./*.js ./*.js.map"
1919
},
2020
"nativescript": {

packages/collectionview/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"build.all": "npm run build && npm run build.angular",
1212
"build.angular": "ng-packagr -p ../../src/collectionview/angular/ng-package.json -c ../../src/collectionview/angular/tsconfig.json && rm angular/.npmignore",
1313
"readme": "readme generate -c ../../tools/readme/blueprint.json",
14-
"tsc": "cpy '**/*.d.ts' '../../packages/collectionview' --parents --cwd=../../src/collectionview && tsc -skipLibCheck -d",
14+
"tsc": "cpy '**/*.d.ts' '../../packages/collectionview' --parents --cwd=../../src/collectionview && tsc --build",
1515
"clean": "rimraf ./*.d.ts ./*.js ./*.js.map"
1616
},
1717
"nativescript": {

packages/collectionview/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
"outDir": "./"
66
},
77
"include": ["../../src/collectionview/**/*.ts", "../../references.d.ts", "../../tools/references.d.ts", "../../src/references.d.ts"],
8-
"exclude": ["../../src/collectionview/angular/**", "../../src/collectionview/vue3/**"],
8+
"exclude": ["../../src/collectionview/angular/**"],
99
"references": [
1010
{
1111
//Need for tsc
12-
"path": "../../tsconfig.vue3.json"
12+
"path": "./tsconfig.vue3.json",
1313
}
1414
]
1515
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"composite": true,
5+
"paths": {
6+
"nativescript-vue": ["./node_modules/nativescript-vue3"]
7+
}
8+
},
9+
"include": [
10+
"../../src/collectionview/vue3/**/*"
11+
]
12+
}

packages/swipemenu/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"build.all": "npm run build && npm run build.angular",
1616
"build.angular": "ng-packagr -p ../../src/swipemenu/angular/ng-package.json -c ../../src/swipemenu/angular/tsconfig.json && rm angular/.npmignore",
1717
"readme": "readme generate -c ../../tools/readme/blueprint.json",
18-
"tsc": "cpy '**/*.d.ts' '../../packages/swipemenu' --parents --cwd=../../src/swipemenu && tsc -skipLibCheck -d",
18+
"tsc": "cpy '**/*.d.ts' '../../packages/swipemenu' --parents --cwd=../../src/swipemenu && tsc --build",
1919
"clean": "rimraf ./*.d.ts ./*.js ./*.js.map"
2020
},
2121
"nativescript": {

packages/swipemenu/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
"outDir": "./",
66
},
77
"include": ["../../src/swipemenu/**/*.ts", "../../references.d.ts", "../../tools/references.d.ts", "../../src/references.d.ts"],
8-
"exclude": ["../../src/swipemenu/angular/**", "../../src/swipemenu/vue3/**"],
8+
"exclude": ["../../src/swipemenu/angular/**"],
99
"references": [
1010
{
1111
//Need for tsc
12-
"path": "../../tsconfig.vue3.json"
12+
"path": "./tsconfig.vue3.json"
1313
}
1414
]
1515
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"composite": true,
5+
"paths": {
6+
"nativescript-vue": ["./node_modules/nativescript-vue3"]
7+
}
8+
},
9+
"include": [
10+
"../../src/swipemenu/vue3/**/*"
11+
]
12+
}

0 commit comments

Comments
 (0)