css packaging

This commit is contained in:
adueck 2023-07-23 10:43:10 +04:00
parent 4ddea6594f
commit 21a7a76ed2
6 changed files with 25 additions and 19 deletions

4
package-lock.json generated
View File

@ -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": {

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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)}`);
});
});

View File

@ -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",