From 21a7a76ed26e2688563a98a7d69f104e4866231c Mon Sep 17 00:00:00 2001 From: adueck Date: Sun, 23 Jul 2023 10:43:10 +0400 Subject: [PATCH] css packaging --- package-lock.json | 4 ++-- package.json | 2 +- src/components/package-lock.json | 4 ++-- src/components/package.json | 2 +- src/components/post-build.cjs | 30 ++++++++++++++++++------------ src/lib/package.json | 2 +- 6 files changed, 25 insertions(+), 19 deletions(-) diff --git a/package-lock.json b/package-lock.json index bbcb45c..0b1b98e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "pashto-inflector", - "version": "5.10.0", + "version": "5.10.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "pashto-inflector", - "version": "5.10.0", + "version": "5.10.1", "hasInstallScript": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index c55aa7d..1d2117a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pashto-inflector", - "version": "5.10.0", + "version": "5.10.1", "author": "lingdocs.com", "description": "A Pashto inflection and verb conjugation engine, inculding React components for displaying Pashto text, inflections, and conjugations", "homepage": "https://verbs.lingdocs.com", diff --git a/src/components/package-lock.json b/src/components/package-lock.json index 2cd6818..fb9bd79 100644 --- a/src/components/package-lock.json +++ b/src/components/package-lock.json @@ -1,12 +1,12 @@ { "name": "@lingdocs/ps-react", - "version": "5.10.0", + "version": "5.10.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@lingdocs/ps-react", - "version": "5.10.0", + "version": "5.10.1", "license": "MIT", "dependencies": { "@formkit/auto-animate": "^1.0.0-beta.3", diff --git a/src/components/package.json b/src/components/package.json index 71671e7..bd939b8 100644 --- a/src/components/package.json +++ b/src/components/package.json @@ -1,6 +1,6 @@ { "name": "@lingdocs/ps-react", - "version": "5.10.0", + "version": "5.10.1", "description": "Pashto inflector library module with React components", "main": "dist/components/library.js", "module": "dist/components/library.js", diff --git a/src/components/post-build.cjs b/src/components/post-build.cjs index 6cbdcc9..0917e06 100644 --- a/src/components/post-build.cjs +++ b/src/components/post-build.cjs @@ -3,20 +3,26 @@ const fs = require("fs-extra"); const path = require("path"); glob("src/verb-info/*.svg", (err, files) => { - if (err) throw err; - files.forEach((file) => { - fs.copySync(file, `dist/components/src/verb-info/${path.basename(file)}`); - }); + if (err) throw err; + files.forEach((file) => { + fs.copySync(file, `dist/components/src/verb-info/${path.basename(file)}`); + }); }); glob("src/vp-explorer/*.svg", (err, files) => { - if (err) throw err; - files.forEach((file) => { - fs.copySync(file, `dist/components/src/vp-explorer/${path.basename(file)}`); - }); + if (err) throw err; + files.forEach((file) => { + fs.copySync(file, `dist/components/src/vp-explorer/${path.basename(file)}`); + }); }); glob("src/vp-explorer/*.jpg", (err, files) => { - if (err) throw err; - files.forEach((file) => { - fs.copySync(file, `dist/components/src/vp-explorer/${path.basename(file)}`); - }); + if (err) throw err; + files.forEach((file) => { + fs.copySync(file, `dist/components/src/vp-explorer/${path.basename(file)}`); + }); +}); +glob("src/vp-explorer/*.css", (err, files) => { + if (err) throw err; + files.forEach((file) => { + fs.copySync(file, `dist/components/src/vp-explorer/${path.basename(file)}`); + }); }); diff --git a/src/lib/package.json b/src/lib/package.json index ffc05af..d1deb1e 100644 --- a/src/lib/package.json +++ b/src/lib/package.json @@ -1,6 +1,6 @@ { "name": "@lingdocs/inflect", - "version": "5.10.0", + "version": "5.10.1", "description": "Pashto inflector library", "main": "dist/index.js", "types": "dist/lib/library.d.ts",