mirror of
https://github.com/iconify/iconify.git
synced 2025-01-07 15:44:05 +00:00
Sync local dependencies, script to automatically update version numbers
This commit is contained in:
parent
fb537ef559
commit
4c85bcd9f3
@ -1,72 +1,72 @@
|
|||||||
{
|
{
|
||||||
"name": "ember-demo",
|
"name": "ember-demo",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "Small description for ember-demo goes here",
|
"description": "Small description for ember-demo goes here",
|
||||||
"repository": "",
|
"repository": "",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"author": "",
|
"author": "",
|
||||||
"directories": {
|
"directories": {
|
||||||
"doc": "doc",
|
"doc": "doc",
|
||||||
"test": "tests"
|
"test": "tests"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "ember build --environment=production",
|
"build": "ember build --environment=production",
|
||||||
"lint": "npm-run-all --aggregate-output --continue-on-error --parallel \"lint:!(fix)\"",
|
"lint": "npm-run-all --aggregate-output --continue-on-error --parallel \"lint:!(fix)\"",
|
||||||
"lint:fix": "npm-run-all --aggregate-output --continue-on-error --parallel lint:*:fix",
|
"lint:fix": "npm-run-all --aggregate-output --continue-on-error --parallel lint:*:fix",
|
||||||
"lint:hbs": "ember-template-lint .",
|
"lint:hbs": "ember-template-lint .",
|
||||||
"lint:hbs:fix": "ember-template-lint . --fix",
|
"lint:hbs:fix": "ember-template-lint . --fix",
|
||||||
"lint:js": "eslint . --cache",
|
"lint:js": "eslint . --cache",
|
||||||
"lint:js:fix": "eslint . --fix",
|
"lint:js:fix": "eslint . --fix",
|
||||||
"start": "ember serve",
|
"start": "ember serve",
|
||||||
"test": "npm-run-all lint test:*",
|
"test": "npm-run-all lint test:*",
|
||||||
"test:ember": "ember test"
|
"test:ember": "ember test"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@ember/optional-features": "^2.0.0",
|
"@ember/optional-features": "^2.0.0",
|
||||||
"@ember/test-helpers": "^2.6.0",
|
"@ember/test-helpers": "^2.6.0",
|
||||||
"@glimmer/component": "^1.0.4",
|
"@glimmer/component": "^1.0.4",
|
||||||
"@glimmer/tracking": "^1.0.4",
|
"@glimmer/tracking": "^1.0.4",
|
||||||
"@iconify-icons/mdi-light": "^1.1.1",
|
"@iconify-icons/mdi-light": "^1.1.1",
|
||||||
"@iconify/ember": "^1.0.3",
|
"@iconify/ember": "^1.1.0",
|
||||||
"babel-eslint": "^10.1.0",
|
"babel-eslint": "^10.1.0",
|
||||||
"broccoli-asset-rev": "^3.0.0",
|
"broccoli-asset-rev": "^3.0.0",
|
||||||
"ember-auto-import": "^2.2.4",
|
"ember-auto-import": "^2.2.4",
|
||||||
"ember-cli": "~4.1.0",
|
"ember-cli": "~4.1.0",
|
||||||
"ember-cli-app-version": "^5.0.0",
|
"ember-cli-app-version": "^5.0.0",
|
||||||
"ember-cli-babel": "^7.26.11",
|
"ember-cli-babel": "^7.26.11",
|
||||||
"ember-cli-dependency-checker": "^3.2.0",
|
"ember-cli-dependency-checker": "^3.2.0",
|
||||||
"ember-cli-htmlbars": "^6.0.1",
|
"ember-cli-htmlbars": "^6.0.1",
|
||||||
"ember-cli-inject-live-reload": "^2.1.0",
|
"ember-cli-inject-live-reload": "^2.1.0",
|
||||||
"ember-cli-sri": "^2.1.1",
|
"ember-cli-sri": "^2.1.1",
|
||||||
"ember-cli-terser": "^4.0.2",
|
"ember-cli-terser": "^4.0.2",
|
||||||
"ember-data": "~4.1.0",
|
"ember-data": "~4.1.0",
|
||||||
"ember-export-application-global": "^2.0.1",
|
"ember-export-application-global": "^2.0.1",
|
||||||
"ember-fetch": "^8.1.1",
|
"ember-fetch": "^8.1.1",
|
||||||
"ember-load-initializers": "^2.1.2",
|
"ember-load-initializers": "^2.1.2",
|
||||||
"ember-page-title": "^7.0.0",
|
"ember-page-title": "^7.0.0",
|
||||||
"ember-qunit": "^5.1.5",
|
"ember-qunit": "^5.1.5",
|
||||||
"ember-resolver": "^8.0.3",
|
"ember-resolver": "^8.0.3",
|
||||||
"ember-source": "~4.1.0",
|
"ember-source": "~4.1.0",
|
||||||
"ember-template-lint": "^3.15.0",
|
"ember-template-lint": "^3.15.0",
|
||||||
"ember-welcome-page": "^6.0.0",
|
"ember-welcome-page": "^6.0.0",
|
||||||
"eslint": "^7.32.0",
|
"eslint": "^7.32.0",
|
||||||
"eslint-config-prettier": "^8.3.0",
|
"eslint-config-prettier": "^8.3.0",
|
||||||
"eslint-plugin-ember": "^10.5.8",
|
"eslint-plugin-ember": "^10.5.8",
|
||||||
"eslint-plugin-node": "^11.1.0",
|
"eslint-plugin-node": "^11.1.0",
|
||||||
"eslint-plugin-prettier": "^4.0.0",
|
"eslint-plugin-prettier": "^4.0.0",
|
||||||
"eslint-plugin-qunit": "^7.2.0",
|
"eslint-plugin-qunit": "^7.2.0",
|
||||||
"loader.js": "^4.7.0",
|
"loader.js": "^4.7.0",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"prettier": "^2.5.1",
|
"prettier": "^2.5.1",
|
||||||
"qunit": "^2.17.2",
|
"qunit": "^2.17.2",
|
||||||
"qunit-dom": "^2.0.0",
|
"qunit-dom": "^2.0.0",
|
||||||
"webpack": "^5.65.0"
|
"webpack": "^5.65.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "12.* || 14.* || >= 16"
|
"node": "12.* || 14.* || >= 16"
|
||||||
},
|
},
|
||||||
"ember": {
|
"ember": {
|
||||||
"edition": "octane"
|
"edition": "octane"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
2
demo/nextjs-demo/package-lock.json
generated
2
demo/nextjs-demo/package-lock.json
generated
@ -8,7 +8,7 @@
|
|||||||
"name": "@iconify-demo/nextjs",
|
"name": "@iconify-demo/nextjs",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@iconify/react": "^3.1.3",
|
"@iconify/react": "^3.2.0",
|
||||||
"next": "^12.0.8",
|
"next": "^12.0.8",
|
||||||
"react": "^17.0.2",
|
"react": "^17.0.2",
|
||||||
"react-dom": "^17.0.2"
|
"react-dom": "^17.0.2"
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
"start": "next start"
|
"start": "next start"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@iconify/react": "^3.1.3",
|
"@iconify/react": "^3.2.0",
|
||||||
"next": "^12.0.8",
|
"next": "^12.0.8",
|
||||||
"react": "^17.0.2",
|
"react": "^17.0.2",
|
||||||
"react-dom": "^17.0.2"
|
"react-dom": "^17.0.2"
|
||||||
|
2
demo/nuxt3-demo/package-lock.json
generated
2
demo/nuxt3-demo/package-lock.json
generated
@ -6,7 +6,7 @@
|
|||||||
"": {
|
"": {
|
||||||
"name": "@iconify-demo/nuxt3",
|
"name": "@iconify-demo/nuxt3",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@iconify/vue": "^3.1.3"
|
"@iconify/vue": "^3.2.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"nuxt3": "latest"
|
"nuxt3": "latest"
|
||||||
|
@ -10,6 +10,6 @@
|
|||||||
"nuxt3": "latest"
|
"nuxt3": "latest"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@iconify/vue": "^3.1.3"
|
"@iconify/vue": "^3.2.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
4
demo/react-demo/package-lock.json
generated
4
demo/react-demo/package-lock.json
generated
@ -14,8 +14,8 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@iconify-icons/mdi-light": "^1.1.1",
|
"@iconify-icons/mdi-light": "^1.1.1",
|
||||||
"@iconify-icons/uil": "^1.1.2",
|
"@iconify-icons/uil": "^1.1.2",
|
||||||
"@iconify/core": "^1.2.3",
|
"@iconify/core": "^1.3.1",
|
||||||
"@iconify/react": "^3.1.3",
|
"@iconify/react": "^3.2.0",
|
||||||
"@types/react": "^17.0.33",
|
"@types/react": "^17.0.33",
|
||||||
"@types/react-dom": "^17.0.10",
|
"@types/react-dom": "^17.0.10",
|
||||||
"@vitejs/plugin-react": "^1.0.7",
|
"@vitejs/plugin-react": "^1.0.7",
|
||||||
|
@ -14,8 +14,8 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@iconify-icons/mdi-light": "^1.1.1",
|
"@iconify-icons/mdi-light": "^1.1.1",
|
||||||
"@iconify-icons/uil": "^1.1.2",
|
"@iconify-icons/uil": "^1.1.2",
|
||||||
"@iconify/core": "^1.2.3",
|
"@iconify/core": "^1.3.1",
|
||||||
"@iconify/react": "^3.1.3",
|
"@iconify/react": "^3.2.0",
|
||||||
"@types/react": "^17.0.33",
|
"@types/react": "^17.0.33",
|
||||||
"@types/react-dom": "^17.0.10",
|
"@types/react-dom": "^17.0.10",
|
||||||
"@vitejs/plugin-react": "^1.0.7",
|
"@vitejs/plugin-react": "^1.0.7",
|
||||||
|
2
demo/sapper-demo/package-lock.json
generated
2
demo/sapper-demo/package-lock.json
generated
@ -19,7 +19,7 @@
|
|||||||
"@babel/preset-env": "^7.16.11",
|
"@babel/preset-env": "^7.16.11",
|
||||||
"@babel/runtime": "^7.16.7",
|
"@babel/runtime": "^7.16.7",
|
||||||
"@iconify-icons/openmoji": "^1.1.20",
|
"@iconify-icons/openmoji": "^1.1.20",
|
||||||
"@iconify/svelte": "^2.1.2",
|
"@iconify/svelte": "^2.2.0",
|
||||||
"@rollup/plugin-babel": "^5.3.0",
|
"@rollup/plugin-babel": "^5.3.0",
|
||||||
"@rollup/plugin-commonjs": "^21.0.1",
|
"@rollup/plugin-commonjs": "^21.0.1",
|
||||||
"@rollup/plugin-node-resolve": "^13.1.3",
|
"@rollup/plugin-node-resolve": "^13.1.3",
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
"@babel/preset-env": "^7.16.11",
|
"@babel/preset-env": "^7.16.11",
|
||||||
"@babel/runtime": "^7.16.7",
|
"@babel/runtime": "^7.16.7",
|
||||||
"@iconify-icons/openmoji": "^1.1.20",
|
"@iconify-icons/openmoji": "^1.1.20",
|
||||||
"@iconify/svelte": "^2.1.2",
|
"@iconify/svelte": "^2.2.0",
|
||||||
"@rollup/plugin-babel": "^5.3.0",
|
"@rollup/plugin-babel": "^5.3.0",
|
||||||
"@rollup/plugin-commonjs": "^21.0.1",
|
"@rollup/plugin-commonjs": "^21.0.1",
|
||||||
"@rollup/plugin-node-resolve": "^13.1.3",
|
"@rollup/plugin-node-resolve": "^13.1.3",
|
||||||
|
2
demo/svelte-demo-vite/package-lock.json
generated
2
demo/svelte-demo-vite/package-lock.json
generated
@ -9,7 +9,7 @@
|
|||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@iconify-icons/mdi-light": "^1.1.1",
|
"@iconify-icons/mdi-light": "^1.1.1",
|
||||||
"@iconify/svelte": "^2.1.2",
|
"@iconify/svelte": "^2.2.0",
|
||||||
"@sveltejs/vite-plugin-svelte": "^1.0.0-next.35",
|
"@sveltejs/vite-plugin-svelte": "^1.0.0-next.35",
|
||||||
"@tsconfig/svelte": "^3.0.0",
|
"@tsconfig/svelte": "^3.0.0",
|
||||||
"svelte": "^3.46.2",
|
"svelte": "^3.46.2",
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@iconify-icons/mdi-light": "^1.1.1",
|
"@iconify-icons/mdi-light": "^1.1.1",
|
||||||
"@iconify/svelte": "^2.1.2",
|
"@iconify/svelte": "^2.2.0",
|
||||||
"@sveltejs/vite-plugin-svelte": "^1.0.0-next.35",
|
"@sveltejs/vite-plugin-svelte": "^1.0.0-next.35",
|
||||||
"@tsconfig/svelte": "^3.0.0",
|
"@tsconfig/svelte": "^3.0.0",
|
||||||
"svelte": "^3.46.2",
|
"svelte": "^3.46.2",
|
||||||
|
2
demo/svelte-demo/package-lock.json
generated
2
demo/svelte-demo/package-lock.json
generated
@ -13,7 +13,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@iconify-icons/mdi-light": "^1.1.1",
|
"@iconify-icons/mdi-light": "^1.1.1",
|
||||||
"@iconify-icons/uil": "^1.1.2",
|
"@iconify-icons/uil": "^1.1.2",
|
||||||
"@iconify/svelte": "^2.1.2",
|
"@iconify/svelte": "^2.2.0",
|
||||||
"@rollup/plugin-commonjs": "^16.0.0",
|
"@rollup/plugin-commonjs": "^16.0.0",
|
||||||
"@rollup/plugin-node-resolve": "^10.0.0",
|
"@rollup/plugin-node-resolve": "^10.0.0",
|
||||||
"rollup": "^2.33.3",
|
"rollup": "^2.33.3",
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@iconify-icons/mdi-light": "^1.1.1",
|
"@iconify-icons/mdi-light": "^1.1.1",
|
||||||
"@iconify-icons/uil": "^1.1.2",
|
"@iconify-icons/uil": "^1.1.2",
|
||||||
"@iconify/svelte": "^2.1.2",
|
"@iconify/svelte": "^2.2.0",
|
||||||
"@rollup/plugin-commonjs": "^16.0.0",
|
"@rollup/plugin-commonjs": "^16.0.0",
|
||||||
"@rollup/plugin-node-resolve": "^10.0.0",
|
"@rollup/plugin-node-resolve": "^10.0.0",
|
||||||
"rollup": "^2.33.3",
|
"rollup": "^2.33.3",
|
||||||
|
2
demo/sveltekit-demo/package-lock.json
generated
2
demo/sveltekit-demo/package-lock.json
generated
@ -14,7 +14,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@iconify-icons/mdi-light": "^1.1.1",
|
"@iconify-icons/mdi-light": "^1.1.1",
|
||||||
"@iconify/svelte": "^2.1.2",
|
"@iconify/svelte": "^2.2.0",
|
||||||
"@sveltejs/kit": "next",
|
"@sveltejs/kit": "next",
|
||||||
"@types/cookie": "^0.4.1",
|
"@types/cookie": "^0.4.1",
|
||||||
"svelte": "^3.46.2",
|
"svelte": "^3.46.2",
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@iconify-icons/mdi-light": "^1.1.1",
|
"@iconify-icons/mdi-light": "^1.1.1",
|
||||||
"@iconify/svelte": "^2.1.2",
|
"@iconify/svelte": "^2.2.0",
|
||||||
"@sveltejs/kit": "next",
|
"@sveltejs/kit": "next",
|
||||||
"@types/cookie": "^0.4.1",
|
"@types/cookie": "^0.4.1",
|
||||||
"svelte": "^3.46.2",
|
"svelte": "^3.46.2",
|
||||||
|
4
demo/vue-demo/package-lock.json
generated
4
demo/vue-demo/package-lock.json
generated
@ -13,8 +13,8 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@iconify-icons/bx": "^1.1.5",
|
"@iconify-icons/bx": "^1.1.5",
|
||||||
"@iconify-icons/dashicons": "^1.1.1",
|
"@iconify-icons/dashicons": "^1.1.1",
|
||||||
"@iconify/types": "^1.0.12",
|
"@iconify/types": "^1.1.0",
|
||||||
"@iconify/vue": "^3.1.3",
|
"@iconify/vue": "^3.2.0",
|
||||||
"@vitejs/plugin-vue": "^2.1.0",
|
"@vitejs/plugin-vue": "^2.1.0",
|
||||||
"typescript": "^4.6.3",
|
"typescript": "^4.6.3",
|
||||||
"vite": "^2.7.13"
|
"vite": "^2.7.13"
|
||||||
|
@ -12,8 +12,8 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@iconify-icons/bx": "^1.1.5",
|
"@iconify-icons/bx": "^1.1.5",
|
||||||
"@iconify-icons/dashicons": "^1.1.1",
|
"@iconify-icons/dashicons": "^1.1.1",
|
||||||
"@iconify/types": "^1.0.12",
|
"@iconify/types": "^1.1.0",
|
||||||
"@iconify/vue": "^3.1.3",
|
"@iconify/vue": "^3.2.0",
|
||||||
"@vitejs/plugin-vue": "^2.1.0",
|
"@vitejs/plugin-vue": "^2.1.0",
|
||||||
"typescript": "^4.6.3",
|
"typescript": "^4.6.3",
|
||||||
"vite": "^2.7.13"
|
"vite": "^2.7.13"
|
||||||
|
@ -14,7 +14,7 @@ export function cleanWorkspace(workspace: PackageInfo) {
|
|||||||
if (!stat.isDirectory()) {
|
if (!stat.isDirectory()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
89
monorepo/src/helpers/versions.ts
Normal file
89
monorepo/src/helpers/versions.ts
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
import fs from 'fs';
|
||||||
|
import { addLinksToWorkspace } from './add-links';
|
||||||
|
import { addToPath, pathToString, relativePath } from './dirs';
|
||||||
|
import { runNPMCommand } from './exec';
|
||||||
|
import { consoleLog } from './log';
|
||||||
|
import { PackageInfo } from './types';
|
||||||
|
import { findWorkspaces } from './workspaces';
|
||||||
|
|
||||||
|
const props: string[] = [
|
||||||
|
'dependencies',
|
||||||
|
'devDependencies',
|
||||||
|
'optionalDependencies',
|
||||||
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Change versions of local package
|
||||||
|
*/
|
||||||
|
export function updateVersions(workspace: PackageInfo) {
|
||||||
|
// Find all workspaces
|
||||||
|
const workspaces = findWorkspaces();
|
||||||
|
|
||||||
|
// Get package.json
|
||||||
|
const packageFilename = pathToString(
|
||||||
|
addToPath(workspace.path, 'package.json')
|
||||||
|
);
|
||||||
|
|
||||||
|
let data: Record<string, unknown>;
|
||||||
|
try {
|
||||||
|
data = JSON.parse(fs.readFileSync(packageFilename, 'utf8'));
|
||||||
|
} catch {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const updated: Set<string> = new Set();
|
||||||
|
props.forEach((prop) => {
|
||||||
|
const dependencies = data[prop];
|
||||||
|
if (typeof dependencies !== 'object') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Find local packages
|
||||||
|
workspaces.forEach((item) => {
|
||||||
|
if (
|
||||||
|
item.name === workspace.name ||
|
||||||
|
item.private ||
|
||||||
|
typeof dependencies[item.name] !== 'string'
|
||||||
|
) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const newVersion = item.version;
|
||||||
|
const oldValue = dependencies[item.name] as string;
|
||||||
|
|
||||||
|
// ^*
|
||||||
|
if (oldValue.slice(0, 1) === '^') {
|
||||||
|
const oldVersion = oldValue.slice(1);
|
||||||
|
if (oldVersion !== newVersion) {
|
||||||
|
// Change version
|
||||||
|
dependencies[item.name] = '^' + newVersion;
|
||||||
|
updated.add(item.name);
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// exact version
|
||||||
|
if (oldValue.match(/^[0-9]/) && oldValue !== newVersion) {
|
||||||
|
dependencies[item.name] = newVersion;
|
||||||
|
updated.add(item.name);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
if (!updated.size) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update package.json
|
||||||
|
const newContent = JSON.stringify(data, null, '\t') + '\n';
|
||||||
|
fs.writeFileSync(packageFilename, newContent, 'utf8');
|
||||||
|
consoleLog(
|
||||||
|
`Updated dependencies in ${relativePath(packageFilename)}: ${Array.from(
|
||||||
|
updated
|
||||||
|
).join(', ')}`
|
||||||
|
);
|
||||||
|
|
||||||
|
// Reinstall dependencies to update package-lock.json
|
||||||
|
runNPMCommand(workspace, ['install']);
|
||||||
|
addLinksToWorkspace(workspace);
|
||||||
|
}
|
@ -4,6 +4,7 @@ import { cleanWorkspace } from './helpers/clean';
|
|||||||
import { runNPMCommand } from './helpers/exec';
|
import { runNPMCommand } from './helpers/exec';
|
||||||
import { actionOptions, enablePrivateFilter } from './helpers/options';
|
import { actionOptions, enablePrivateFilter } from './helpers/options';
|
||||||
import { removeLinksFromWorkspace } from './helpers/remove-links';
|
import { removeLinksFromWorkspace } from './helpers/remove-links';
|
||||||
|
import { updateVersions } from './helpers/versions';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* All actions
|
* All actions
|
||||||
@ -24,6 +25,9 @@ const actionFunctions: Record<string, () => void> = {
|
|||||||
addLinksToWorkspace(workspace);
|
addLinksToWorkspace(workspace);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
versions: () => {
|
||||||
|
runAction('Updating versions of local packages', updateVersions);
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -18,7 +18,8 @@
|
|||||||
"unlink": "node monorepo unlink",
|
"unlink": "node monorepo unlink",
|
||||||
"reinstall": "node monorepo clean install",
|
"reinstall": "node monorepo clean install",
|
||||||
"build": "node monorepo run build --if-present --public",
|
"build": "node monorepo run build --if-present --public",
|
||||||
"test": "node monorepo run build --if-present --public"
|
"test": "node monorepo run build --if-present --public",
|
||||||
|
"versions": "node monorepo versions"
|
||||||
},
|
},
|
||||||
"devDependencies": {}
|
"devDependencies": {}
|
||||||
}
|
}
|
||||||
|
14
packages/core/package-lock.json
generated
14
packages/core/package-lock.json
generated
@ -11,7 +11,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@iconify/api-redundancy": "^1.1.0",
|
"@iconify/api-redundancy": "^1.1.0",
|
||||||
"@iconify/types": "^1.1.0",
|
"@iconify/types": "^1.1.0",
|
||||||
"@iconify/utils": "^1.0.29"
|
"@iconify/utils": "^1.0.31"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "^27.4.1",
|
"@types/jest": "^27.4.1",
|
||||||
@ -796,9 +796,9 @@
|
|||||||
"integrity": "sha512-Jh0llaK2LRXQoYsorIH8maClebsnzTcve+7U3rQUSnC11X4jtPnFuyatqFLvMxZ8MLG8dB4zfHsbPfuvxluONw=="
|
"integrity": "sha512-Jh0llaK2LRXQoYsorIH8maClebsnzTcve+7U3rQUSnC11X4jtPnFuyatqFLvMxZ8MLG8dB4zfHsbPfuvxluONw=="
|
||||||
},
|
},
|
||||||
"node_modules/@iconify/utils": {
|
"node_modules/@iconify/utils": {
|
||||||
"version": "1.0.29",
|
"version": "1.0.31",
|
||||||
"resolved": "https://registry.npmjs.org/@iconify/utils/-/utils-1.0.29.tgz",
|
"resolved": "https://registry.npmjs.org/@iconify/utils/-/utils-1.0.31.tgz",
|
||||||
"integrity": "sha512-ReARQUYRAzuj0fvzUhHZlw38bMYq8u+oKsecMalk2Lp98b54uHtOcpEKTAdXwTwYV7MMxEGCa4pRmYofZtXdOw==",
|
"integrity": "sha512-sBksCt6kI4WaMHwXo1c/MQVuQfWwwd87qHiAPASN8neoQvMCdYTLn+2khc3/OmYPbmg6kYisCxVLkAv0pcy9Ig==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@antfu/install-pkg": "^0.1.0",
|
"@antfu/install-pkg": "^0.1.0",
|
||||||
"@antfu/utils": "^0.5.0",
|
"@antfu/utils": "^0.5.0",
|
||||||
@ -7671,9 +7671,9 @@
|
|||||||
"integrity": "sha512-Jh0llaK2LRXQoYsorIH8maClebsnzTcve+7U3rQUSnC11X4jtPnFuyatqFLvMxZ8MLG8dB4zfHsbPfuvxluONw=="
|
"integrity": "sha512-Jh0llaK2LRXQoYsorIH8maClebsnzTcve+7U3rQUSnC11X4jtPnFuyatqFLvMxZ8MLG8dB4zfHsbPfuvxluONw=="
|
||||||
},
|
},
|
||||||
"@iconify/utils": {
|
"@iconify/utils": {
|
||||||
"version": "1.0.29",
|
"version": "1.0.31",
|
||||||
"resolved": "https://registry.npmjs.org/@iconify/utils/-/utils-1.0.29.tgz",
|
"resolved": "https://registry.npmjs.org/@iconify/utils/-/utils-1.0.31.tgz",
|
||||||
"integrity": "sha512-ReARQUYRAzuj0fvzUhHZlw38bMYq8u+oKsecMalk2Lp98b54uHtOcpEKTAdXwTwYV7MMxEGCa4pRmYofZtXdOw==",
|
"integrity": "sha512-sBksCt6kI4WaMHwXo1c/MQVuQfWwwd87qHiAPASN8neoQvMCdYTLn+2khc3/OmYPbmg6kYisCxVLkAv0pcy9Ig==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@antfu/install-pkg": "^0.1.0",
|
"@antfu/install-pkg": "^0.1.0",
|
||||||
"@antfu/utils": "^0.5.0",
|
"@antfu/utils": "^0.5.0",
|
||||||
|
@ -109,7 +109,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@iconify/api-redundancy": "^1.1.0",
|
"@iconify/api-redundancy": "^1.1.0",
|
||||||
"@iconify/types": "^1.1.0",
|
"@iconify/types": "^1.1.0",
|
||||||
"@iconify/utils": "^1.0.29"
|
"@iconify/utils": "^1.0.31"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "^27.4.1",
|
"@types/jest": "^27.4.1",
|
||||||
|
Loading…
Reference in New Issue
Block a user