nativescript-vue 2.8.4 → 2.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,19 +0,0 @@
1
- const { isBundleCheckRequired } = require('./helpers')
2
-
3
- module.exports = function (hookArgs, $errors, $injector) {
4
- const shouldCheckBundleOption = isBundleCheckRequired($injector)
5
-
6
- if (shouldCheckBundleOption) {
7
- const bundle =
8
- hookArgs &&
9
- hookArgs.checkForChangesOpts &&
10
- hookArgs.checkForChangesOpts.projectChangesOptions &&
11
- hookArgs.checkForChangesOpts.projectChangesOptions.bundle
12
-
13
- if (!bundle) {
14
- $errors.failWithoutHelp(
15
- "Nativescript-vue doesn't work without --bundle option. Please specify --bundle option to the command and execute it again."
16
- )
17
- }
18
- }
19
- }
@@ -1,18 +0,0 @@
1
- const { isBundleCheckRequired } = require('./helpers')
2
-
3
- module.exports = function (hookArgs, $errors, $injector) {
4
- const shouldCheckBundleOption = isBundleCheckRequired($injector)
5
-
6
- if (shouldCheckBundleOption) {
7
- const bundle =
8
- hookArgs &&
9
- hookArgs.config &&
10
- hookArgs.config.appFilesUpdaterOptions &&
11
- hookArgs.config.appFilesUpdaterOptions.bundle
12
- if (!bundle) {
13
- $errors.failWithoutHelp(
14
- "Nativescript-vue doesn't work without --bundle option. Please specify --bundle option to the command and execute it again."
15
- )
16
- }
17
- }
18
- }
@@ -1,14 +0,0 @@
1
- function isBundleCheckRequired($injector) {
2
- try {
3
- const $staticConfig = $injector.resolve('$staticConfig')
4
- const version = $staticConfig && $staticConfig.version
5
- const majorVersion = (version || '').split('.')[0]
6
- // If the major version is not available, probably we are in some new version of CLI, where the staticConfig is not available
7
- // So it definitely should work with bundle;
8
- return !majorVersion || +majorVersion < 6
9
- } catch (err) {
10
- return false
11
- }
12
- }
13
-
14
- module.exports.isBundleCheckRequired = isBundleCheckRequired