feat: use singleton manager to support nested npm installations
This commit is contained in:
parent
b462f2d5f2
commit
e2eb0e0077
37 changed files with 175 additions and 71 deletions
|
|
@ -46,7 +46,7 @@
|
|||
"test": "run-p test:browser test:node",
|
||||
"test:browser": "karma start --coverage",
|
||||
"test:node": "lerna run test:node",
|
||||
"test:watch": "karma start --auto-watch=true --single-run=false",
|
||||
"test:browser:watch": "karma start --auto-watch=true --single-run=false",
|
||||
"test:update-snapshots": "karma start --update-snapshots",
|
||||
"test:prune-snapshots": "karma start --prune-snapshots",
|
||||
"test:bs": "karma start karma.bs.config.js --coverage",
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@
|
|||
},
|
||||
"scripts": {
|
||||
"prepublishOnly": "../../scripts/npm-prepublish.js",
|
||||
"test": "cd ../../ && yarn test --grep \"packages/ajax/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/ajax/test/**/*.test.js\""
|
||||
"test": "cd ../../ && yarn test:browser --grep \"packages/ajax/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/ajax/test/**/*.test.js\""
|
||||
},
|
||||
"keywords": [
|
||||
"lion",
|
||||
|
|
@ -33,8 +33,10 @@
|
|||
"translations",
|
||||
"*.js"
|
||||
],
|
||||
"sideEffects": false,
|
||||
"dependencies": {
|
||||
"@bundled-es-modules/axios": "0.18.1",
|
||||
"@lion/core": "0.5.2"
|
||||
"@lion/core": "0.5.2",
|
||||
"singleton-manager": "^0.0.0"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,10 @@
|
|||
import { singletonManager } from 'singleton-manager';
|
||||
import { AjaxClass } from './AjaxClass.js';
|
||||
|
||||
/**
|
||||
* @typedef {ajax} ajax the global instance for handling all ajax requests
|
||||
*/
|
||||
export let ajax = AjaxClass.getInstance(); // eslint-disable-line import/no-mutable-exports
|
||||
export let ajax = singletonManager.get('@lion/ajax::ajax::0.3.x') || AjaxClass.getInstance(); // eslint-disable-line import/no-mutable-exports
|
||||
|
||||
/**
|
||||
* setAjax allows the Application Developer to override the globally used instance of {@link:ajax}.
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@
|
|||
},
|
||||
"scripts": {
|
||||
"prepublishOnly": "../../scripts/npm-prepublish.js",
|
||||
"test": "cd ../../ && yarn test --grep \"packages/button/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/button/test/**/*.test.js\""
|
||||
"test": "cd ../../ && yarn test:browser --grep \"packages/button/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/button/test/**/*.test.js\""
|
||||
},
|
||||
"keywords": [
|
||||
"lion",
|
||||
|
|
@ -33,6 +33,9 @@
|
|||
"translations",
|
||||
"*.js"
|
||||
],
|
||||
"sideEffects": [
|
||||
"lion-button.js"
|
||||
],
|
||||
"dependencies": {
|
||||
"@lion/core": "0.5.2"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@
|
|||
},
|
||||
"scripts": {
|
||||
"prepublishOnly": "../../scripts/npm-prepublish.js",
|
||||
"test": "cd ../../ && yarn test --grep \"packages/calendar/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/calendar/test/**/*.test.js\""
|
||||
"test": "cd ../../ && yarn test:browser --grep \"packages/calendar/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/calendar/test/**/*.test.js\""
|
||||
},
|
||||
"keywords": [
|
||||
"lion",
|
||||
|
|
@ -34,6 +34,9 @@
|
|||
"translations",
|
||||
"*.js"
|
||||
],
|
||||
"sideEffects": [
|
||||
"lion-calendar.js"
|
||||
],
|
||||
"dependencies": {
|
||||
"@lion/core": "0.5.2",
|
||||
"@lion/localize": "0.9.2"
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@
|
|||
},
|
||||
"scripts": {
|
||||
"prepublishOnly": "../../scripts/npm-prepublish.js",
|
||||
"test": "cd ../../ && yarn test --grep \"packages/checkbox-group/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/checkbox-group/test/**/*.test.js\""
|
||||
"test": "cd ../../ && yarn test:browser --grep \"packages/checkbox-group/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/checkbox-group/test/**/*.test.js\""
|
||||
},
|
||||
"keywords": [
|
||||
"lion",
|
||||
|
|
@ -33,6 +33,10 @@
|
|||
"translations",
|
||||
"*.js"
|
||||
],
|
||||
"sideEffects": [
|
||||
"lion-checkbox.js",
|
||||
"lion-checkbox-group.js"
|
||||
],
|
||||
"dependencies": {
|
||||
"@lion/choice-input": "0.8.2",
|
||||
"@lion/core": "0.5.2",
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@
|
|||
},
|
||||
"scripts": {
|
||||
"prepublishOnly": "../../scripts/npm-prepublish.js",
|
||||
"test": "cd ../../ && yarn test --grep \"packages/choice-input/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/choice-input/test/**/*.test.js\""
|
||||
"test": "cd ../../ && yarn test:browser --grep \"packages/choice-input/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/choice-input/test/**/*.test.js\""
|
||||
},
|
||||
"keywords": [
|
||||
"lion",
|
||||
|
|
@ -33,6 +33,7 @@
|
|||
"translations",
|
||||
"*.js"
|
||||
],
|
||||
"sideEffects": false,
|
||||
"dependencies": {
|
||||
"@lion/core": "0.5.2",
|
||||
"@lion/field": "0.12.2"
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@
|
|||
},
|
||||
"scripts": {
|
||||
"prepublishOnly": "../../scripts/npm-prepublish.js",
|
||||
"test": "cd ../../ && yarn test --grep \"packages/core/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/core/test/**/*.test.js\""
|
||||
"test": "cd ../../ && yarn test:browser --grep \"packages/core/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/core/test/**/*.test.js\""
|
||||
},
|
||||
"keywords": [
|
||||
"lion",
|
||||
|
|
@ -32,6 +32,7 @@
|
|||
"translations",
|
||||
"*.js"
|
||||
],
|
||||
"sideEffects": false,
|
||||
"dependencies": {
|
||||
"@open-wc/dedupe-mixin": "^1.2.1",
|
||||
"@open-wc/scoped-elements": "^1.0.3",
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@
|
|||
},
|
||||
"scripts": {
|
||||
"prepublishOnly": "../../scripts/npm-prepublish.js",
|
||||
"test": "cd ../../ && yarn test --grep \"packages/dialog/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/dialog/test/**/*.test.js\""
|
||||
"test": "cd ../../ && yarn test:browser --grep \"packages/dialog/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/dialog/test/**/*.test.js\""
|
||||
},
|
||||
"keywords": [
|
||||
"lion",
|
||||
|
|
@ -31,6 +31,9 @@
|
|||
"test",
|
||||
"*.js"
|
||||
],
|
||||
"sideEffects": [
|
||||
"lion-dialog.js"
|
||||
],
|
||||
"dependencies": {
|
||||
"@lion/core": "0.5.2",
|
||||
"@lion/overlays": "0.14.0"
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@
|
|||
},
|
||||
"scripts": {
|
||||
"prepublishOnly": "../../scripts/npm-prepublish.js",
|
||||
"test": "cd ../../ && yarn test --grep \"packages/field/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/field/test/**/*.test.js\""
|
||||
"test": "cd ../../ && yarn test:browser --grep \"packages/field/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/field/test/**/*.test.js\""
|
||||
},
|
||||
"keywords": [
|
||||
"lion",
|
||||
|
|
@ -35,6 +35,9 @@
|
|||
"translations",
|
||||
"*.js"
|
||||
],
|
||||
"sideEffects": [
|
||||
"lion-field.js"
|
||||
],
|
||||
"dependencies": {
|
||||
"@lion/core": "0.5.2",
|
||||
"@lion/validate": "0.9.2"
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@
|
|||
},
|
||||
"scripts": {
|
||||
"prepublishOnly": "../../scripts/npm-prepublish.js",
|
||||
"test": "cd ../../ && yarn test --grep \"packages/fieldset/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/fieldset/test/**/*.test.js\""
|
||||
"test": "cd ../../ && yarn test:browser --grep \"packages/fieldset/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/fieldset/test/**/*.test.js\""
|
||||
},
|
||||
"keywords": [
|
||||
"lion",
|
||||
|
|
@ -33,6 +33,9 @@
|
|||
"translations",
|
||||
"*.js"
|
||||
],
|
||||
"sideEffects": [
|
||||
"lion-fieldset.js"
|
||||
],
|
||||
"dependencies": {
|
||||
"@lion/core": "0.5.2",
|
||||
"@lion/field": "0.12.2",
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@
|
|||
"translations",
|
||||
"*.js"
|
||||
],
|
||||
"sideEffects": false,
|
||||
"dependencies": {
|
||||
"@lion/button": "0.5.12",
|
||||
"@lion/checkbox-group": "0.8.8",
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@
|
|||
},
|
||||
"scripts": {
|
||||
"prepublishOnly": "../../scripts/npm-prepublish.js",
|
||||
"test": "cd ../../ && yarn test --grep \"packages/form/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/form/test/**/*.test.js\""
|
||||
"test": "cd ../../ && yarn test:browser --grep \"packages/form/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/form/test/**/*.test.js\""
|
||||
},
|
||||
"keywords": [
|
||||
"lion",
|
||||
|
|
@ -33,6 +33,9 @@
|
|||
"translations",
|
||||
"*.js"
|
||||
],
|
||||
"sideEffects": [
|
||||
"lion-form.js"
|
||||
],
|
||||
"dependencies": {
|
||||
"@lion/core": "0.5.2",
|
||||
"@lion/fieldset": "0.10.2"
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@
|
|||
},
|
||||
"scripts": {
|
||||
"prepublishOnly": "../../scripts/npm-prepublish.js",
|
||||
"test": "cd ../../ && yarn test --grep \"packages/helpers/*/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/helpers/*/test/**/*.test.js\""
|
||||
"test": "cd ../../ && yarn test:browser --grep \"packages/helpers/*/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/helpers/*/test/**/*.test.js\""
|
||||
},
|
||||
"keywords": [
|
||||
"lion",
|
||||
|
|
@ -33,6 +33,10 @@
|
|||
"sortEachDepth",
|
||||
"*.js"
|
||||
],
|
||||
"sideEffects": [
|
||||
"sb-action-logger.js",
|
||||
"sb-locale-switcher.js"
|
||||
],
|
||||
"dependencies": {
|
||||
"@lion/core": "0.5.2"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@
|
|||
},
|
||||
"scripts": {
|
||||
"prepublishOnly": "../../scripts/npm-prepublish.js",
|
||||
"test": "cd ../../ && yarn test --grep \"packages/icon/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/icon/test/**/*.test.js\""
|
||||
"test": "cd ../../ && yarn test:browser --grep \"packages/icon/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/icon/test/**/*.test.js\""
|
||||
},
|
||||
"keywords": [
|
||||
"lion",
|
||||
|
|
@ -33,7 +33,11 @@
|
|||
"translations",
|
||||
"*.js"
|
||||
],
|
||||
"sideEffects": [
|
||||
"lion-icon.js"
|
||||
],
|
||||
"dependencies": {
|
||||
"@lion/core": "0.5.2"
|
||||
"@lion/core": "0.5.2",
|
||||
"singleton-manager": "^0.0.0"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
import { singletonManager } from 'singleton-manager';
|
||||
import { IconManager } from './IconManager.js';
|
||||
|
||||
// eslint-disable-next-line import/no-mutable-exports
|
||||
export let icons = IconManager.getInstance();
|
||||
export let icons = singletonManager.get('@lion/icon::icons::0.5.x') || IconManager.getInstance();
|
||||
|
||||
export function setIcons(newIcons) {
|
||||
icons = newIcons;
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@
|
|||
},
|
||||
"scripts": {
|
||||
"prepublishOnly": "../../scripts/npm-prepublish.js",
|
||||
"test": "cd ../../ && yarn test --grep \"packages/input-amount/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/input-amount/test/**/*.test.js\""
|
||||
"test": "cd ../../ && yarn test:browser --grep \"packages/input-amount/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/input-amount/test/**/*.test.js\""
|
||||
},
|
||||
"keywords": [
|
||||
"lion",
|
||||
|
|
@ -33,6 +33,9 @@
|
|||
"translations",
|
||||
"*.js"
|
||||
],
|
||||
"sideEffects": [
|
||||
"lion-input-amount.js"
|
||||
],
|
||||
"dependencies": {
|
||||
"@lion/core": "0.5.2",
|
||||
"@lion/field": "0.12.2",
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@
|
|||
},
|
||||
"scripts": {
|
||||
"prepublishOnly": "../../scripts/npm-prepublish.js",
|
||||
"test": "cd ../../ && yarn test --grep \"packages/input-date/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/input-date/test/**/*.test.js\""
|
||||
"test": "cd ../../ && yarn test:browser --grep \"packages/input-date/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/input-date/test/**/*.test.js\""
|
||||
},
|
||||
"keywords": [
|
||||
"lion",
|
||||
|
|
@ -33,6 +33,9 @@
|
|||
"translations",
|
||||
"*.js"
|
||||
],
|
||||
"sideEffects": [
|
||||
"lion-input-date.js"
|
||||
],
|
||||
"dependencies": {
|
||||
"@lion/core": "0.5.2",
|
||||
"@lion/field": "0.12.2",
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@
|
|||
},
|
||||
"scripts": {
|
||||
"prepublishOnly": "../../scripts/npm-prepublish.js",
|
||||
"test": "cd ../../ && yarn test --grep \"packages/input-datepicker/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/input-datepicker/test/**/*.test.js\""
|
||||
"test": "cd ../../ && yarn test:browser --grep \"packages/input-datepicker/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/input-datepicker/test/**/*.test.js\""
|
||||
},
|
||||
"keywords": [
|
||||
"lion",
|
||||
|
|
@ -37,6 +37,9 @@
|
|||
"translations",
|
||||
"*.js"
|
||||
],
|
||||
"sideEffects": [
|
||||
"lion-input-datepicker.js"
|
||||
],
|
||||
"dependencies": {
|
||||
"@lion/calendar": "0.7.2",
|
||||
"@lion/core": "0.5.2",
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@
|
|||
},
|
||||
"scripts": {
|
||||
"prepublishOnly": "../../scripts/npm-prepublish.js",
|
||||
"test": "cd ../../ && yarn test --grep \"packages/input-email/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/input-email/test/**/*.test.js\""
|
||||
"test": "cd ../../ && yarn test:browser --grep \"packages/input-email/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/input-email/test/**/*.test.js\""
|
||||
},
|
||||
"keywords": [
|
||||
"lion",
|
||||
|
|
@ -33,6 +33,9 @@
|
|||
"translations",
|
||||
"*.js"
|
||||
],
|
||||
"sideEffects": [
|
||||
"lion-input-email.js"
|
||||
],
|
||||
"dependencies": {
|
||||
"@lion/core": "0.5.2",
|
||||
"@lion/field": "0.12.2",
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@
|
|||
},
|
||||
"scripts": {
|
||||
"prepublishOnly": "../../scripts/npm-prepublish.js",
|
||||
"test": "cd ../../ && yarn test --grep \"packages/input-iban/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/input-iban/test/**/*.test.js\""
|
||||
"test": "cd ../../ && yarn test:browser --grep \"packages/input-iban/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/input-iban/test/**/*.test.js\""
|
||||
},
|
||||
"keywords": [
|
||||
"lion",
|
||||
|
|
@ -33,6 +33,9 @@
|
|||
"translations",
|
||||
"*.js"
|
||||
],
|
||||
"sideEffects": [
|
||||
"lion-input-email.js"
|
||||
],
|
||||
"dependencies": {
|
||||
"@lion/core": "0.5.2",
|
||||
"@lion/field": "0.12.2",
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@
|
|||
},
|
||||
"scripts": {
|
||||
"prepublishOnly": "../../scripts/npm-prepublish.js",
|
||||
"test": "cd ../../ && yarn test --grep \"packages/input-range/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/input-range/test/**/*.test.js\""
|
||||
"test": "cd ../../ && yarn test:browser --grep \"packages/input-range/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/input-range/test/**/*.test.js\""
|
||||
},
|
||||
"keywords": [
|
||||
"lion",
|
||||
|
|
@ -32,6 +32,9 @@
|
|||
"test",
|
||||
"*.js"
|
||||
],
|
||||
"sideEffects": [
|
||||
"lion-input-range.js"
|
||||
],
|
||||
"dependencies": {
|
||||
"@lion/core": "0.5.2",
|
||||
"@lion/field": "0.12.2",
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@
|
|||
},
|
||||
"scripts": {
|
||||
"prepublishOnly": "../../scripts/npm-prepublish.js",
|
||||
"test": "cd ../../ && yarn test --grep \"packages/input/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/input/test/**/*.test.js\""
|
||||
"test": "cd ../../ && yarn test:browser --grep \"packages/input/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/input/test/**/*.test.js\""
|
||||
},
|
||||
"keywords": [
|
||||
"lion",
|
||||
|
|
@ -33,6 +33,9 @@
|
|||
"translations",
|
||||
"*.js"
|
||||
],
|
||||
"sideEffects": [
|
||||
"lion-input.js"
|
||||
],
|
||||
"dependencies": {
|
||||
"@lion/core": "0.5.2",
|
||||
"@lion/field": "0.12.2"
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@
|
|||
},
|
||||
"scripts": {
|
||||
"prepublishOnly": "../../scripts/npm-prepublish.js",
|
||||
"test": "cd ../../ && yarn test --grep \"packages/localize/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/localize/test/**/*.test.js\""
|
||||
"test": "cd ../../ && yarn test:browser --grep \"packages/localize/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/localize/test/**/*.test.js\""
|
||||
},
|
||||
"keywords": [
|
||||
"lion",
|
||||
|
|
@ -34,9 +34,11 @@
|
|||
"translations",
|
||||
"*.js"
|
||||
],
|
||||
"sideEffects": false,
|
||||
"dependencies": {
|
||||
"@bundled-es-modules/message-format": "6.0.4",
|
||||
"@lion/core": "0.5.2"
|
||||
"@lion/core": "0.5.2",
|
||||
"singleton-manager": "^0.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@bundled-es-modules/fetch-mock": "^6.5.2"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,10 @@
|
|||
import { singletonManager } from 'singleton-manager';
|
||||
import { LocalizeManager } from './LocalizeManager.js';
|
||||
|
||||
// eslint-disable-next-line import/no-mutable-exports
|
||||
export let localize = LocalizeManager.getInstance({
|
||||
export let localize =
|
||||
singletonManager.get('@lion/localize::localize::0.10.x') ||
|
||||
LocalizeManager.getInstance({
|
||||
autoLoadOnLocaleChange: true,
|
||||
fallbackLocale: 'en-GB',
|
||||
});
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@
|
|||
},
|
||||
"scripts": {
|
||||
"prepublishOnly": "../../scripts/npm-prepublish.js",
|
||||
"test": "cd ../../ && yarn test --grep \"packages/overlays/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/overlays/test/**/*.test.js\""
|
||||
"test": "cd ../../ && yarn test:browser --grep \"packages/overlays/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/overlays/test/**/*.test.js\""
|
||||
},
|
||||
"keywords": [
|
||||
"lion",
|
||||
|
|
@ -35,8 +35,10 @@
|
|||
"translations",
|
||||
"*.js"
|
||||
],
|
||||
"sideEffects": false,
|
||||
"dependencies": {
|
||||
"@lion/core": "0.5.2",
|
||||
"singleton-manager": "^0.0.0",
|
||||
"popper.js": "^1.15.0"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
import { singletonManager } from 'singleton-manager';
|
||||
import { OverlaysManager } from './OverlaysManager.js';
|
||||
|
||||
export const overlays = new OverlaysManager();
|
||||
export const overlays =
|
||||
singletonManager.get('@lion/overlays::overlays::0.15.x') || new OverlaysManager();
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@
|
|||
},
|
||||
"scripts": {
|
||||
"prepublishOnly": "../../scripts/npm-prepublish.js",
|
||||
"test": "cd ../../ && yarn test --grep \"packages/radio-group/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/radio-group/test/**/*.test.js\""
|
||||
"test": "cd ../../ && yarn test:browser --grep \"packages/radio-group/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/radio-group/test/**/*.test.js\""
|
||||
},
|
||||
"keywords": [
|
||||
"lion",
|
||||
|
|
@ -33,6 +33,10 @@
|
|||
"translations",
|
||||
"*.js"
|
||||
],
|
||||
"sideEffects": [
|
||||
"lion-radio.js",
|
||||
"lion-radio-group.js"
|
||||
],
|
||||
"dependencies": {
|
||||
"@lion/choice-input": "0.8.2",
|
||||
"@lion/core": "0.5.2",
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@
|
|||
},
|
||||
"scripts": {
|
||||
"prepublishOnly": "../../scripts/npm-prepublish.js",
|
||||
"test": "cd ../../ && yarn test --grep \"packages/select-rich/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/select-rich/test/**/*.test.js\""
|
||||
"test": "cd ../../ && yarn test:browser --grep \"packages/select-rich/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/select-rich/test/**/*.test.js\""
|
||||
},
|
||||
"keywords": [
|
||||
"lion",
|
||||
|
|
@ -37,6 +37,12 @@
|
|||
"translations",
|
||||
"*.js"
|
||||
],
|
||||
"sideEffects": [
|
||||
"lion-option.js",
|
||||
"lion-options.js",
|
||||
"lion-select-invoker.js",
|
||||
"lion-select-rich.js"
|
||||
],
|
||||
"dependencies": {
|
||||
"@lion/button": "0.5.12",
|
||||
"@lion/choice-input": "0.8.2",
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@
|
|||
},
|
||||
"scripts": {
|
||||
"prepublishOnly": "../../scripts/npm-prepublish.js",
|
||||
"test": "cd ../../ && yarn test --grep \"packages/select/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/select/test/**/*.test.js\""
|
||||
"test": "cd ../../ && yarn test:browser --grep \"packages/select/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/select/test/**/*.test.js\""
|
||||
},
|
||||
"keywords": [
|
||||
"lion",
|
||||
|
|
@ -33,6 +33,9 @@
|
|||
"translations",
|
||||
"*.js"
|
||||
],
|
||||
"sideEffects": [
|
||||
"lion-select.js"
|
||||
],
|
||||
"dependencies": {
|
||||
"@lion/core": "0.5.2",
|
||||
"@lion/field": "0.12.2"
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@
|
|||
},
|
||||
"scripts": {
|
||||
"prepublishOnly": "../../scripts/npm-prepublish.js",
|
||||
"test": "cd ../../ && yarn test --grep \"packages/steps/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/steps/test/**/*.test.js\""
|
||||
"test": "cd ../../ && yarn test:browser --grep \"packages/steps/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/steps/test/**/*.test.js\""
|
||||
},
|
||||
"keywords": [
|
||||
"lion",
|
||||
|
|
@ -33,6 +33,10 @@
|
|||
"translations",
|
||||
"*.js"
|
||||
],
|
||||
"sideEffects": [
|
||||
"lion-step.js",
|
||||
"lion-steps.js"
|
||||
],
|
||||
"dependencies": {
|
||||
"@lion/core": "0.5.2"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@
|
|||
},
|
||||
"scripts": {
|
||||
"prepublishOnly": "../../scripts/npm-prepublish.js",
|
||||
"test": "cd ../../ && yarn test --grep \"packages/switch/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/switch/test/**/*.test.js\""
|
||||
"test": "cd ../../ && yarn test:browser --grep \"packages/switch/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/switch/test/**/*.test.js\""
|
||||
},
|
||||
"keywords": [
|
||||
"lion",
|
||||
|
|
@ -33,6 +33,10 @@
|
|||
"translations",
|
||||
"*.js"
|
||||
],
|
||||
"sideEffects": [
|
||||
"lion-switch.js",
|
||||
"lion-switch-button.js"
|
||||
],
|
||||
"dependencies": {
|
||||
"@lion/choice-input": "0.8.2",
|
||||
"@lion/core": "0.5.2",
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@
|
|||
},
|
||||
"scripts": {
|
||||
"prepublishOnly": "../../scripts/npm-prepublish.js",
|
||||
"test": "cd ../../ && yarn test --grep \"packages/tabs/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/tabs/test/**/*.test.js\""
|
||||
"test": "cd ../../ && yarn test:browser --grep \"packages/tabs/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/tabs/test/**/*.test.js\""
|
||||
},
|
||||
"keywords": [
|
||||
"lion",
|
||||
|
|
@ -33,6 +33,9 @@
|
|||
"translations",
|
||||
"*.js"
|
||||
],
|
||||
"sideEffects": [
|
||||
"lion-tabs.js"
|
||||
],
|
||||
"dependencies": {
|
||||
"@lion/core": "0.5.2"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@
|
|||
},
|
||||
"scripts": {
|
||||
"prepublishOnly": "../../scripts/npm-prepublish.js",
|
||||
"test": "cd ../../ && yarn test --grep \"packages/textarea/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/textarea/test/**/*.test.js\""
|
||||
"test": "cd ../../ && yarn test:browser --grep \"packages/textarea/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/textarea/test/**/*.test.js\""
|
||||
},
|
||||
"keywords": [
|
||||
"lion",
|
||||
|
|
@ -33,6 +33,9 @@
|
|||
"translations",
|
||||
"*.js"
|
||||
],
|
||||
"sideEffects": [
|
||||
"lion-textarea.js"
|
||||
],
|
||||
"dependencies": {
|
||||
"@lion/core": "0.5.2",
|
||||
"@lion/field": "0.12.2",
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@
|
|||
},
|
||||
"scripts": {
|
||||
"prepublishOnly": "../../scripts/npm-prepublish.js",
|
||||
"test": "cd ../../ && yarn test --grep \"packages/tooltip/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/tooltip/test/**/*.test.js\""
|
||||
"test": "cd ../../ && yarn test:browser --grep \"packages/tooltip/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/tooltip/test/**/*.test.js\""
|
||||
},
|
||||
"keywords": [
|
||||
"lion",
|
||||
|
|
@ -33,6 +33,10 @@
|
|||
"translations",
|
||||
"*.js"
|
||||
],
|
||||
"sideEffects": [
|
||||
"lion-tooltip.js",
|
||||
"lion-tooltip-arrow.js"
|
||||
],
|
||||
"dependencies": {
|
||||
"@lion/core": "0.5.2",
|
||||
"@lion/overlays": "0.14.0"
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@
|
|||
},
|
||||
"scripts": {
|
||||
"prepublishOnly": "../../scripts/npm-prepublish.js",
|
||||
"test": "cd ../../ && yarn test --grep \"packages/validate/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/validate/test/**/*.test.js\""
|
||||
"test": "cd ../../ && yarn test:browser --grep \"packages/validate/test/**/*.test.js\"",
|
||||
"test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/validate/test/**/*.test.js\""
|
||||
},
|
||||
"keywords": [
|
||||
"lion",
|
||||
|
|
@ -35,6 +35,9 @@
|
|||
"translations",
|
||||
"*.js"
|
||||
],
|
||||
"sideEffects": [
|
||||
"lion-validation-feedback.js"
|
||||
],
|
||||
"dependencies": {
|
||||
"@lion/core": "0.5.2",
|
||||
"@lion/localize": "0.9.2"
|
||||
|
|
|
|||
|
|
@ -16,6 +16,9 @@ function readPackageJsonDeps(filePath) {
|
|||
result[dep] = merged[dep];
|
||||
}
|
||||
});
|
||||
// Note: we IGNORE singleton manager here as we NEED it to be a broad range of version
|
||||
// the singleton-manager should never have a breaking change
|
||||
delete result['singleton-manager'];
|
||||
return result;
|
||||
}
|
||||
return {};
|
||||
|
|
|
|||
Loading…
Reference in a new issue