Skip to content

Commit 25a9622

Browse files
committed
chore(core): remove hooks from the core
1 parent ffb629e commit 25a9622

File tree

4 files changed

+6
-50
lines changed

4 files changed

+6
-50
lines changed

packages/core/package.json

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,20 @@
66
"sideEffects": false,
77
"typings": "./index.d.ts",
88
"scripts": {
9-
"preuninstall": "node preuninstall.js",
10-
"postinstall": "node postinstall.js",
119
"tsc": "../../node_modules/.bin/cpy '**/*.d.ts' '../../packages/core' --cwd=../../src/core --parents && ../../node_modules/.bin/tsc -d",
1210
"tsc-win": "..\\..\\node_modules\\.bin\\cpy '**/*.d.ts' '..\\..\\packages\\core' --cwd=..\\..\\src\\core --parents && ..\\..\\node_modules\\.bin\\tsc -d",
13-
"build": "npm run tsc && npm run build.hooks",
11+
"build": "npm run tsc",
1412
"build.watch": "npm run tsc -- -w",
15-
"build.win": "npm run tsc-win && npm run build.hooks.win",
16-
"build.hooks.win": "..\\..\\node_modules\\.bin\\tsc -skipLibCheck -p tsconfig.hooks.json",
17-
"build.hooks": " tsc -skipLibCheck -p tsconfig.hooks.json",
18-
"build.all": "npm run build.hooks && npm run build",
19-
"build.all.win": "npm run build.hooks.win && npm run build.win",
13+
"build.win": "npm run tsc-win",
14+
"build.all": "npm run build",
15+
"build.all.win": "npm run build.win",
2016
"clean": "../../node_modules/.bin/rimraf ./*.d.ts ./*.js ./*.js.map android"
2117
},
2218
"nativescript": {
2319
"platforms": {
2420
"android": "6.2.0",
2521
"ios": "6.2.0"
26-
},
27-
"hooks": [
28-
{
29-
"type": "before-prepare",
30-
"script": "scripts/before-prepare.js",
31-
"inject": true
32-
}
33-
]
22+
}
3423
},
3524
"keywords": [
3625
"NativeScript",
@@ -49,8 +38,5 @@
4938
"homepage": "https://github.com/nativescript-community/ui-material-components",
5039
"repository": "https://github.com/nativescript-community/ui-material-components",
5140
"readmeFilename": "README.md",
52-
"gitHead": "48cf92e33d0f74f46c045dd3a80652243a19a40c",
53-
"dependencies": {
54-
"@nativescript/hook": "~2.0.0"
55-
}
41+
"gitHead": "48cf92e33d0f74f46c045dd3a80652243a19a40c"
5642
}

src/core/postinstall.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/core/preuninstall.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/core/scripts/before-prepare.ts

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)