feat: use singleton manager to support nested npm installations

This commit is contained in:
Thomas Allmer 2020-05-18 13:20:44 +02:00 committed by Thomas Allmer
parent b462f2d5f2
commit e2eb0e0077
37 changed files with 175 additions and 71 deletions

View file

@ -46,7 +46,7 @@
"test": "run-p test:browser test:node", "test": "run-p test:browser test:node",
"test:browser": "karma start --coverage", "test:browser": "karma start --coverage",
"test:node": "lerna run test:node", "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:update-snapshots": "karma start --update-snapshots",
"test:prune-snapshots": "karma start --prune-snapshots", "test:prune-snapshots": "karma start --prune-snapshots",
"test:bs": "karma start karma.bs.config.js --coverage", "test:bs": "karma start karma.bs.config.js --coverage",

View file

@ -15,8 +15,8 @@
}, },
"scripts": { "scripts": {
"prepublishOnly": "../../scripts/npm-prepublish.js", "prepublishOnly": "../../scripts/npm-prepublish.js",
"test": "cd ../../ && yarn test --grep \"packages/ajax/test/**/*.test.js\"", "test": "cd ../../ && yarn test:browser --grep \"packages/ajax/test/**/*.test.js\"",
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/ajax/test/**/*.test.js\"" "test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/ajax/test/**/*.test.js\""
}, },
"keywords": [ "keywords": [
"lion", "lion",
@ -33,8 +33,10 @@
"translations", "translations",
"*.js" "*.js"
], ],
"sideEffects": false,
"dependencies": { "dependencies": {
"@bundled-es-modules/axios": "0.18.1", "@bundled-es-modules/axios": "0.18.1",
"@lion/core": "0.5.2" "@lion/core": "0.5.2",
"singleton-manager": "^0.0.0"
} }
} }

View file

@ -1,9 +1,10 @@
import { singletonManager } from 'singleton-manager';
import { AjaxClass } from './AjaxClass.js'; import { AjaxClass } from './AjaxClass.js';
/** /**
* @typedef {ajax} ajax the global instance for handling all ajax requests * @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}. * setAjax allows the Application Developer to override the globally used instance of {@link:ajax}.

View file

@ -15,8 +15,8 @@
}, },
"scripts": { "scripts": {
"prepublishOnly": "../../scripts/npm-prepublish.js", "prepublishOnly": "../../scripts/npm-prepublish.js",
"test": "cd ../../ && yarn test --grep \"packages/button/test/**/*.test.js\"", "test": "cd ../../ && yarn test:browser --grep \"packages/button/test/**/*.test.js\"",
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/button/test/**/*.test.js\"" "test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/button/test/**/*.test.js\""
}, },
"keywords": [ "keywords": [
"lion", "lion",
@ -33,6 +33,9 @@
"translations", "translations",
"*.js" "*.js"
], ],
"sideEffects": [
"lion-button.js"
],
"dependencies": { "dependencies": {
"@lion/core": "0.5.2" "@lion/core": "0.5.2"
}, },

View file

@ -15,8 +15,8 @@
}, },
"scripts": { "scripts": {
"prepublishOnly": "../../scripts/npm-prepublish.js", "prepublishOnly": "../../scripts/npm-prepublish.js",
"test": "cd ../../ && yarn test --grep \"packages/calendar/test/**/*.test.js\"", "test": "cd ../../ && yarn test:browser --grep \"packages/calendar/test/**/*.test.js\"",
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/calendar/test/**/*.test.js\"" "test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/calendar/test/**/*.test.js\""
}, },
"keywords": [ "keywords": [
"lion", "lion",
@ -34,6 +34,9 @@
"translations", "translations",
"*.js" "*.js"
], ],
"sideEffects": [
"lion-calendar.js"
],
"dependencies": { "dependencies": {
"@lion/core": "0.5.2", "@lion/core": "0.5.2",
"@lion/localize": "0.9.2" "@lion/localize": "0.9.2"

View file

@ -15,8 +15,8 @@
}, },
"scripts": { "scripts": {
"prepublishOnly": "../../scripts/npm-prepublish.js", "prepublishOnly": "../../scripts/npm-prepublish.js",
"test": "cd ../../ && yarn test --grep \"packages/checkbox-group/test/**/*.test.js\"", "test": "cd ../../ && yarn test:browser --grep \"packages/checkbox-group/test/**/*.test.js\"",
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/checkbox-group/test/**/*.test.js\"" "test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/checkbox-group/test/**/*.test.js\""
}, },
"keywords": [ "keywords": [
"lion", "lion",
@ -33,6 +33,10 @@
"translations", "translations",
"*.js" "*.js"
], ],
"sideEffects": [
"lion-checkbox.js",
"lion-checkbox-group.js"
],
"dependencies": { "dependencies": {
"@lion/choice-input": "0.8.2", "@lion/choice-input": "0.8.2",
"@lion/core": "0.5.2", "@lion/core": "0.5.2",

View file

@ -15,8 +15,8 @@
}, },
"scripts": { "scripts": {
"prepublishOnly": "../../scripts/npm-prepublish.js", "prepublishOnly": "../../scripts/npm-prepublish.js",
"test": "cd ../../ && yarn test --grep \"packages/choice-input/test/**/*.test.js\"", "test": "cd ../../ && yarn test:browser --grep \"packages/choice-input/test/**/*.test.js\"",
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/choice-input/test/**/*.test.js\"" "test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/choice-input/test/**/*.test.js\""
}, },
"keywords": [ "keywords": [
"lion", "lion",
@ -33,6 +33,7 @@
"translations", "translations",
"*.js" "*.js"
], ],
"sideEffects": false,
"dependencies": { "dependencies": {
"@lion/core": "0.5.2", "@lion/core": "0.5.2",
"@lion/field": "0.12.2" "@lion/field": "0.12.2"

View file

@ -15,8 +15,8 @@
}, },
"scripts": { "scripts": {
"prepublishOnly": "../../scripts/npm-prepublish.js", "prepublishOnly": "../../scripts/npm-prepublish.js",
"test": "cd ../../ && yarn test --grep \"packages/core/test/**/*.test.js\"", "test": "cd ../../ && yarn test:browser --grep \"packages/core/test/**/*.test.js\"",
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/core/test/**/*.test.js\"" "test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/core/test/**/*.test.js\""
}, },
"keywords": [ "keywords": [
"lion", "lion",
@ -32,6 +32,7 @@
"translations", "translations",
"*.js" "*.js"
], ],
"sideEffects": false,
"dependencies": { "dependencies": {
"@open-wc/dedupe-mixin": "^1.2.1", "@open-wc/dedupe-mixin": "^1.2.1",
"@open-wc/scoped-elements": "^1.0.3", "@open-wc/scoped-elements": "^1.0.3",

View file

@ -15,8 +15,8 @@
}, },
"scripts": { "scripts": {
"prepublishOnly": "../../scripts/npm-prepublish.js", "prepublishOnly": "../../scripts/npm-prepublish.js",
"test": "cd ../../ && yarn test --grep \"packages/dialog/test/**/*.test.js\"", "test": "cd ../../ && yarn test:browser --grep \"packages/dialog/test/**/*.test.js\"",
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/dialog/test/**/*.test.js\"" "test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/dialog/test/**/*.test.js\""
}, },
"keywords": [ "keywords": [
"lion", "lion",
@ -31,6 +31,9 @@
"test", "test",
"*.js" "*.js"
], ],
"sideEffects": [
"lion-dialog.js"
],
"dependencies": { "dependencies": {
"@lion/core": "0.5.2", "@lion/core": "0.5.2",
"@lion/overlays": "0.14.0" "@lion/overlays": "0.14.0"

View file

@ -15,8 +15,8 @@
}, },
"scripts": { "scripts": {
"prepublishOnly": "../../scripts/npm-prepublish.js", "prepublishOnly": "../../scripts/npm-prepublish.js",
"test": "cd ../../ && yarn test --grep \"packages/field/test/**/*.test.js\"", "test": "cd ../../ && yarn test:browser --grep \"packages/field/test/**/*.test.js\"",
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/field/test/**/*.test.js\"" "test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/field/test/**/*.test.js\""
}, },
"keywords": [ "keywords": [
"lion", "lion",
@ -35,6 +35,9 @@
"translations", "translations",
"*.js" "*.js"
], ],
"sideEffects": [
"lion-field.js"
],
"dependencies": { "dependencies": {
"@lion/core": "0.5.2", "@lion/core": "0.5.2",
"@lion/validate": "0.9.2" "@lion/validate": "0.9.2"

View file

@ -15,8 +15,8 @@
}, },
"scripts": { "scripts": {
"prepublishOnly": "../../scripts/npm-prepublish.js", "prepublishOnly": "../../scripts/npm-prepublish.js",
"test": "cd ../../ && yarn test --grep \"packages/fieldset/test/**/*.test.js\"", "test": "cd ../../ && yarn test:browser --grep \"packages/fieldset/test/**/*.test.js\"",
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/fieldset/test/**/*.test.js\"" "test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/fieldset/test/**/*.test.js\""
}, },
"keywords": [ "keywords": [
"lion", "lion",
@ -33,6 +33,9 @@
"translations", "translations",
"*.js" "*.js"
], ],
"sideEffects": [
"lion-fieldset.js"
],
"dependencies": { "dependencies": {
"@lion/core": "0.5.2", "@lion/core": "0.5.2",
"@lion/field": "0.12.2", "@lion/field": "0.12.2",

View file

@ -32,6 +32,7 @@
"translations", "translations",
"*.js" "*.js"
], ],
"sideEffects": false,
"dependencies": { "dependencies": {
"@lion/button": "0.5.12", "@lion/button": "0.5.12",
"@lion/checkbox-group": "0.8.8", "@lion/checkbox-group": "0.8.8",

View file

@ -15,8 +15,8 @@
}, },
"scripts": { "scripts": {
"prepublishOnly": "../../scripts/npm-prepublish.js", "prepublishOnly": "../../scripts/npm-prepublish.js",
"test": "cd ../../ && yarn test --grep \"packages/form/test/**/*.test.js\"", "test": "cd ../../ && yarn test:browser --grep \"packages/form/test/**/*.test.js\"",
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/form/test/**/*.test.js\"" "test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/form/test/**/*.test.js\""
}, },
"keywords": [ "keywords": [
"lion", "lion",
@ -33,6 +33,9 @@
"translations", "translations",
"*.js" "*.js"
], ],
"sideEffects": [
"lion-form.js"
],
"dependencies": { "dependencies": {
"@lion/core": "0.5.2", "@lion/core": "0.5.2",
"@lion/fieldset": "0.10.2" "@lion/fieldset": "0.10.2"

View file

@ -15,8 +15,8 @@
}, },
"scripts": { "scripts": {
"prepublishOnly": "../../scripts/npm-prepublish.js", "prepublishOnly": "../../scripts/npm-prepublish.js",
"test": "cd ../../ && yarn test --grep \"packages/helpers/*/test/**/*.test.js\"", "test": "cd ../../ && yarn test:browser --grep \"packages/helpers/*/test/**/*.test.js\"",
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/helpers/*/test/**/*.test.js\"" "test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/helpers/*/test/**/*.test.js\""
}, },
"keywords": [ "keywords": [
"lion", "lion",
@ -33,6 +33,10 @@
"sortEachDepth", "sortEachDepth",
"*.js" "*.js"
], ],
"sideEffects": [
"sb-action-logger.js",
"sb-locale-switcher.js"
],
"dependencies": { "dependencies": {
"@lion/core": "0.5.2" "@lion/core": "0.5.2"
} }

View file

@ -15,8 +15,8 @@
}, },
"scripts": { "scripts": {
"prepublishOnly": "../../scripts/npm-prepublish.js", "prepublishOnly": "../../scripts/npm-prepublish.js",
"test": "cd ../../ && yarn test --grep \"packages/icon/test/**/*.test.js\"", "test": "cd ../../ && yarn test:browser --grep \"packages/icon/test/**/*.test.js\"",
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/icon/test/**/*.test.js\"" "test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/icon/test/**/*.test.js\""
}, },
"keywords": [ "keywords": [
"lion", "lion",
@ -33,7 +33,11 @@
"translations", "translations",
"*.js" "*.js"
], ],
"sideEffects": [
"lion-icon.js"
],
"dependencies": { "dependencies": {
"@lion/core": "0.5.2" "@lion/core": "0.5.2",
"singleton-manager": "^0.0.0"
} }
} }

View file

@ -1,7 +1,8 @@
import { singletonManager } from 'singleton-manager';
import { IconManager } from './IconManager.js'; import { IconManager } from './IconManager.js';
// eslint-disable-next-line import/no-mutable-exports // 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) { export function setIcons(newIcons) {
icons = newIcons; icons = newIcons;

View file

@ -15,8 +15,8 @@
}, },
"scripts": { "scripts": {
"prepublishOnly": "../../scripts/npm-prepublish.js", "prepublishOnly": "../../scripts/npm-prepublish.js",
"test": "cd ../../ && yarn test --grep \"packages/input-amount/test/**/*.test.js\"", "test": "cd ../../ && yarn test:browser --grep \"packages/input-amount/test/**/*.test.js\"",
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/input-amount/test/**/*.test.js\"" "test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/input-amount/test/**/*.test.js\""
}, },
"keywords": [ "keywords": [
"lion", "lion",
@ -33,6 +33,9 @@
"translations", "translations",
"*.js" "*.js"
], ],
"sideEffects": [
"lion-input-amount.js"
],
"dependencies": { "dependencies": {
"@lion/core": "0.5.2", "@lion/core": "0.5.2",
"@lion/field": "0.12.2", "@lion/field": "0.12.2",

View file

@ -15,8 +15,8 @@
}, },
"scripts": { "scripts": {
"prepublishOnly": "../../scripts/npm-prepublish.js", "prepublishOnly": "../../scripts/npm-prepublish.js",
"test": "cd ../../ && yarn test --grep \"packages/input-date/test/**/*.test.js\"", "test": "cd ../../ && yarn test:browser --grep \"packages/input-date/test/**/*.test.js\"",
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/input-date/test/**/*.test.js\"" "test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/input-date/test/**/*.test.js\""
}, },
"keywords": [ "keywords": [
"lion", "lion",
@ -33,6 +33,9 @@
"translations", "translations",
"*.js" "*.js"
], ],
"sideEffects": [
"lion-input-date.js"
],
"dependencies": { "dependencies": {
"@lion/core": "0.5.2", "@lion/core": "0.5.2",
"@lion/field": "0.12.2", "@lion/field": "0.12.2",

View file

@ -15,8 +15,8 @@
}, },
"scripts": { "scripts": {
"prepublishOnly": "../../scripts/npm-prepublish.js", "prepublishOnly": "../../scripts/npm-prepublish.js",
"test": "cd ../../ && yarn test --grep \"packages/input-datepicker/test/**/*.test.js\"", "test": "cd ../../ && yarn test:browser --grep \"packages/input-datepicker/test/**/*.test.js\"",
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/input-datepicker/test/**/*.test.js\"" "test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/input-datepicker/test/**/*.test.js\""
}, },
"keywords": [ "keywords": [
"lion", "lion",
@ -37,6 +37,9 @@
"translations", "translations",
"*.js" "*.js"
], ],
"sideEffects": [
"lion-input-datepicker.js"
],
"dependencies": { "dependencies": {
"@lion/calendar": "0.7.2", "@lion/calendar": "0.7.2",
"@lion/core": "0.5.2", "@lion/core": "0.5.2",

View file

@ -15,8 +15,8 @@
}, },
"scripts": { "scripts": {
"prepublishOnly": "../../scripts/npm-prepublish.js", "prepublishOnly": "../../scripts/npm-prepublish.js",
"test": "cd ../../ && yarn test --grep \"packages/input-email/test/**/*.test.js\"", "test": "cd ../../ && yarn test:browser --grep \"packages/input-email/test/**/*.test.js\"",
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/input-email/test/**/*.test.js\"" "test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/input-email/test/**/*.test.js\""
}, },
"keywords": [ "keywords": [
"lion", "lion",
@ -33,6 +33,9 @@
"translations", "translations",
"*.js" "*.js"
], ],
"sideEffects": [
"lion-input-email.js"
],
"dependencies": { "dependencies": {
"@lion/core": "0.5.2", "@lion/core": "0.5.2",
"@lion/field": "0.12.2", "@lion/field": "0.12.2",

View file

@ -15,8 +15,8 @@
}, },
"scripts": { "scripts": {
"prepublishOnly": "../../scripts/npm-prepublish.js", "prepublishOnly": "../../scripts/npm-prepublish.js",
"test": "cd ../../ && yarn test --grep \"packages/input-iban/test/**/*.test.js\"", "test": "cd ../../ && yarn test:browser --grep \"packages/input-iban/test/**/*.test.js\"",
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/input-iban/test/**/*.test.js\"" "test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/input-iban/test/**/*.test.js\""
}, },
"keywords": [ "keywords": [
"lion", "lion",
@ -33,6 +33,9 @@
"translations", "translations",
"*.js" "*.js"
], ],
"sideEffects": [
"lion-input-email.js"
],
"dependencies": { "dependencies": {
"@lion/core": "0.5.2", "@lion/core": "0.5.2",
"@lion/field": "0.12.2", "@lion/field": "0.12.2",

View file

@ -15,8 +15,8 @@
}, },
"scripts": { "scripts": {
"prepublishOnly": "../../scripts/npm-prepublish.js", "prepublishOnly": "../../scripts/npm-prepublish.js",
"test": "cd ../../ && yarn test --grep \"packages/input-range/test/**/*.test.js\"", "test": "cd ../../ && yarn test:browser --grep \"packages/input-range/test/**/*.test.js\"",
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/input-range/test/**/*.test.js\"" "test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/input-range/test/**/*.test.js\""
}, },
"keywords": [ "keywords": [
"lion", "lion",
@ -32,6 +32,9 @@
"test", "test",
"*.js" "*.js"
], ],
"sideEffects": [
"lion-input-range.js"
],
"dependencies": { "dependencies": {
"@lion/core": "0.5.2", "@lion/core": "0.5.2",
"@lion/field": "0.12.2", "@lion/field": "0.12.2",

View file

@ -15,8 +15,8 @@
}, },
"scripts": { "scripts": {
"prepublishOnly": "../../scripts/npm-prepublish.js", "prepublishOnly": "../../scripts/npm-prepublish.js",
"test": "cd ../../ && yarn test --grep \"packages/input/test/**/*.test.js\"", "test": "cd ../../ && yarn test:browser --grep \"packages/input/test/**/*.test.js\"",
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/input/test/**/*.test.js\"" "test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/input/test/**/*.test.js\""
}, },
"keywords": [ "keywords": [
"lion", "lion",
@ -33,6 +33,9 @@
"translations", "translations",
"*.js" "*.js"
], ],
"sideEffects": [
"lion-input.js"
],
"dependencies": { "dependencies": {
"@lion/core": "0.5.2", "@lion/core": "0.5.2",
"@lion/field": "0.12.2" "@lion/field": "0.12.2"

View file

@ -15,8 +15,8 @@
}, },
"scripts": { "scripts": {
"prepublishOnly": "../../scripts/npm-prepublish.js", "prepublishOnly": "../../scripts/npm-prepublish.js",
"test": "cd ../../ && yarn test --grep \"packages/localize/test/**/*.test.js\"", "test": "cd ../../ && yarn test:browser --grep \"packages/localize/test/**/*.test.js\"",
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/localize/test/**/*.test.js\"" "test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/localize/test/**/*.test.js\""
}, },
"keywords": [ "keywords": [
"lion", "lion",
@ -34,9 +34,11 @@
"translations", "translations",
"*.js" "*.js"
], ],
"sideEffects": false,
"dependencies": { "dependencies": {
"@bundled-es-modules/message-format": "6.0.4", "@bundled-es-modules/message-format": "6.0.4",
"@lion/core": "0.5.2" "@lion/core": "0.5.2",
"singleton-manager": "^0.0.0"
}, },
"devDependencies": { "devDependencies": {
"@bundled-es-modules/fetch-mock": "^6.5.2" "@bundled-es-modules/fetch-mock": "^6.5.2"

View file

@ -1,10 +1,13 @@
import { singletonManager } from 'singleton-manager';
import { LocalizeManager } from './LocalizeManager.js'; import { LocalizeManager } from './LocalizeManager.js';
// eslint-disable-next-line import/no-mutable-exports // eslint-disable-next-line import/no-mutable-exports
export let localize = LocalizeManager.getInstance({ export let localize =
autoLoadOnLocaleChange: true, singletonManager.get('@lion/localize::localize::0.10.x') ||
fallbackLocale: 'en-GB', LocalizeManager.getInstance({
}); autoLoadOnLocaleChange: true,
fallbackLocale: 'en-GB',
});
export function setLocalize(newLocalize) { export function setLocalize(newLocalize) {
localize.teardown(); localize.teardown();

View file

@ -15,8 +15,8 @@
}, },
"scripts": { "scripts": {
"prepublishOnly": "../../scripts/npm-prepublish.js", "prepublishOnly": "../../scripts/npm-prepublish.js",
"test": "cd ../../ && yarn test --grep \"packages/overlays/test/**/*.test.js\"", "test": "cd ../../ && yarn test:browser --grep \"packages/overlays/test/**/*.test.js\"",
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/overlays/test/**/*.test.js\"" "test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/overlays/test/**/*.test.js\""
}, },
"keywords": [ "keywords": [
"lion", "lion",
@ -35,8 +35,10 @@
"translations", "translations",
"*.js" "*.js"
], ],
"sideEffects": false,
"dependencies": { "dependencies": {
"@lion/core": "0.5.2", "@lion/core": "0.5.2",
"singleton-manager": "^0.0.0",
"popper.js": "^1.15.0" "popper.js": "^1.15.0"
} }
} }

View file

@ -1,3 +1,5 @@
import { singletonManager } from 'singleton-manager';
import { OverlaysManager } from './OverlaysManager.js'; import { OverlaysManager } from './OverlaysManager.js';
export const overlays = new OverlaysManager(); export const overlays =
singletonManager.get('@lion/overlays::overlays::0.15.x') || new OverlaysManager();

View file

@ -15,8 +15,8 @@
}, },
"scripts": { "scripts": {
"prepublishOnly": "../../scripts/npm-prepublish.js", "prepublishOnly": "../../scripts/npm-prepublish.js",
"test": "cd ../../ && yarn test --grep \"packages/radio-group/test/**/*.test.js\"", "test": "cd ../../ && yarn test:browser --grep \"packages/radio-group/test/**/*.test.js\"",
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/radio-group/test/**/*.test.js\"" "test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/radio-group/test/**/*.test.js\""
}, },
"keywords": [ "keywords": [
"lion", "lion",
@ -33,6 +33,10 @@
"translations", "translations",
"*.js" "*.js"
], ],
"sideEffects": [
"lion-radio.js",
"lion-radio-group.js"
],
"dependencies": { "dependencies": {
"@lion/choice-input": "0.8.2", "@lion/choice-input": "0.8.2",
"@lion/core": "0.5.2", "@lion/core": "0.5.2",

View file

@ -15,8 +15,8 @@
}, },
"scripts": { "scripts": {
"prepublishOnly": "../../scripts/npm-prepublish.js", "prepublishOnly": "../../scripts/npm-prepublish.js",
"test": "cd ../../ && yarn test --grep \"packages/select-rich/test/**/*.test.js\"", "test": "cd ../../ && yarn test:browser --grep \"packages/select-rich/test/**/*.test.js\"",
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/select-rich/test/**/*.test.js\"" "test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/select-rich/test/**/*.test.js\""
}, },
"keywords": [ "keywords": [
"lion", "lion",
@ -37,6 +37,12 @@
"translations", "translations",
"*.js" "*.js"
], ],
"sideEffects": [
"lion-option.js",
"lion-options.js",
"lion-select-invoker.js",
"lion-select-rich.js"
],
"dependencies": { "dependencies": {
"@lion/button": "0.5.12", "@lion/button": "0.5.12",
"@lion/choice-input": "0.8.2", "@lion/choice-input": "0.8.2",

View file

@ -15,8 +15,8 @@
}, },
"scripts": { "scripts": {
"prepublishOnly": "../../scripts/npm-prepublish.js", "prepublishOnly": "../../scripts/npm-prepublish.js",
"test": "cd ../../ && yarn test --grep \"packages/select/test/**/*.test.js\"", "test": "cd ../../ && yarn test:browser --grep \"packages/select/test/**/*.test.js\"",
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/select/test/**/*.test.js\"" "test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/select/test/**/*.test.js\""
}, },
"keywords": [ "keywords": [
"lion", "lion",
@ -33,6 +33,9 @@
"translations", "translations",
"*.js" "*.js"
], ],
"sideEffects": [
"lion-select.js"
],
"dependencies": { "dependencies": {
"@lion/core": "0.5.2", "@lion/core": "0.5.2",
"@lion/field": "0.12.2" "@lion/field": "0.12.2"

View file

@ -15,8 +15,8 @@
}, },
"scripts": { "scripts": {
"prepublishOnly": "../../scripts/npm-prepublish.js", "prepublishOnly": "../../scripts/npm-prepublish.js",
"test": "cd ../../ && yarn test --grep \"packages/steps/test/**/*.test.js\"", "test": "cd ../../ && yarn test:browser --grep \"packages/steps/test/**/*.test.js\"",
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/steps/test/**/*.test.js\"" "test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/steps/test/**/*.test.js\""
}, },
"keywords": [ "keywords": [
"lion", "lion",
@ -33,6 +33,10 @@
"translations", "translations",
"*.js" "*.js"
], ],
"sideEffects": [
"lion-step.js",
"lion-steps.js"
],
"dependencies": { "dependencies": {
"@lion/core": "0.5.2" "@lion/core": "0.5.2"
} }

View file

@ -15,8 +15,8 @@
}, },
"scripts": { "scripts": {
"prepublishOnly": "../../scripts/npm-prepublish.js", "prepublishOnly": "../../scripts/npm-prepublish.js",
"test": "cd ../../ && yarn test --grep \"packages/switch/test/**/*.test.js\"", "test": "cd ../../ && yarn test:browser --grep \"packages/switch/test/**/*.test.js\"",
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/switch/test/**/*.test.js\"" "test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/switch/test/**/*.test.js\""
}, },
"keywords": [ "keywords": [
"lion", "lion",
@ -33,6 +33,10 @@
"translations", "translations",
"*.js" "*.js"
], ],
"sideEffects": [
"lion-switch.js",
"lion-switch-button.js"
],
"dependencies": { "dependencies": {
"@lion/choice-input": "0.8.2", "@lion/choice-input": "0.8.2",
"@lion/core": "0.5.2", "@lion/core": "0.5.2",

View file

@ -15,8 +15,8 @@
}, },
"scripts": { "scripts": {
"prepublishOnly": "../../scripts/npm-prepublish.js", "prepublishOnly": "../../scripts/npm-prepublish.js",
"test": "cd ../../ && yarn test --grep \"packages/tabs/test/**/*.test.js\"", "test": "cd ../../ && yarn test:browser --grep \"packages/tabs/test/**/*.test.js\"",
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/tabs/test/**/*.test.js\"" "test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/tabs/test/**/*.test.js\""
}, },
"keywords": [ "keywords": [
"lion", "lion",
@ -33,6 +33,9 @@
"translations", "translations",
"*.js" "*.js"
], ],
"sideEffects": [
"lion-tabs.js"
],
"dependencies": { "dependencies": {
"@lion/core": "0.5.2" "@lion/core": "0.5.2"
} }

View file

@ -15,8 +15,8 @@
}, },
"scripts": { "scripts": {
"prepublishOnly": "../../scripts/npm-prepublish.js", "prepublishOnly": "../../scripts/npm-prepublish.js",
"test": "cd ../../ && yarn test --grep \"packages/textarea/test/**/*.test.js\"", "test": "cd ../../ && yarn test:browser --grep \"packages/textarea/test/**/*.test.js\"",
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/textarea/test/**/*.test.js\"" "test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/textarea/test/**/*.test.js\""
}, },
"keywords": [ "keywords": [
"lion", "lion",
@ -33,6 +33,9 @@
"translations", "translations",
"*.js" "*.js"
], ],
"sideEffects": [
"lion-textarea.js"
],
"dependencies": { "dependencies": {
"@lion/core": "0.5.2", "@lion/core": "0.5.2",
"@lion/field": "0.12.2", "@lion/field": "0.12.2",

View file

@ -15,8 +15,8 @@
}, },
"scripts": { "scripts": {
"prepublishOnly": "../../scripts/npm-prepublish.js", "prepublishOnly": "../../scripts/npm-prepublish.js",
"test": "cd ../../ && yarn test --grep \"packages/tooltip/test/**/*.test.js\"", "test": "cd ../../ && yarn test:browser --grep \"packages/tooltip/test/**/*.test.js\"",
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/tooltip/test/**/*.test.js\"" "test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/tooltip/test/**/*.test.js\""
}, },
"keywords": [ "keywords": [
"lion", "lion",
@ -33,6 +33,10 @@
"translations", "translations",
"*.js" "*.js"
], ],
"sideEffects": [
"lion-tooltip.js",
"lion-tooltip-arrow.js"
],
"dependencies": { "dependencies": {
"@lion/core": "0.5.2", "@lion/core": "0.5.2",
"@lion/overlays": "0.14.0" "@lion/overlays": "0.14.0"

View file

@ -15,8 +15,8 @@
}, },
"scripts": { "scripts": {
"prepublishOnly": "../../scripts/npm-prepublish.js", "prepublishOnly": "../../scripts/npm-prepublish.js",
"test": "cd ../../ && yarn test --grep \"packages/validate/test/**/*.test.js\"", "test": "cd ../../ && yarn test:browser --grep \"packages/validate/test/**/*.test.js\"",
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/validate/test/**/*.test.js\"" "test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/validate/test/**/*.test.js\""
}, },
"keywords": [ "keywords": [
"lion", "lion",
@ -35,6 +35,9 @@
"translations", "translations",
"*.js" "*.js"
], ],
"sideEffects": [
"lion-validation-feedback.js"
],
"dependencies": { "dependencies": {
"@lion/core": "0.5.2", "@lion/core": "0.5.2",
"@lion/localize": "0.9.2" "@lion/localize": "0.9.2"

View file

@ -16,6 +16,9 @@ function readPackageJsonDeps(filePath) {
result[dep] = merged[dep]; 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 result;
} }
return {}; return {};