mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-15 14:08:49 +00:00
ci(pull-request): Fix workflows attempt #7
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import path from 'path';
|
||||
import { getCurrentDirPath, readAllMetadata, readSvgDirectory, writeFile } from '@lucide/helpers';
|
||||
import { getCurrentDirPath, readAllMetadata, readSvgDirectory, writeFile } from '../tools/build-helpers/helpers.mjs';
|
||||
|
||||
const currentDir = getCurrentDirPath(import.meta.url);
|
||||
const ICONS_DIR = path.resolve(currentDir, '../icons');
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import path from 'path';
|
||||
import { readSvgDirectory, getCurrentDirPath, readAllMetadata } from '@lucide/helpers';
|
||||
import { readSvgDirectory, getCurrentDirPath, readAllMetadata } from '../tools/build-helpers/helpers.mjs';
|
||||
|
||||
const currentDir = getCurrentDirPath(import.meta.url);
|
||||
const ICONS_DIR = path.resolve(currentDir, '../icons');
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import path from 'path';
|
||||
import { getCurrentDirPath, writeFileIfNotExists } from '@lucide/helpers';
|
||||
import { getCurrentDirPath, writeFileIfNotExists } from '../../tools/build-helpers/helpers.mjs';
|
||||
|
||||
const currentDir = getCurrentDirPath(import.meta.url);
|
||||
const ICONS_DIR = path.resolve(currentDir, '../../icons');
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import { parseSync } from '/usr/local/lib/node_modules/simple-git/svgson';
|
||||
import { parseSync } from 'svgson';
|
||||
import {
|
||||
shuffleArray,
|
||||
readSvgDirectory,
|
||||
getCurrentDirPath,
|
||||
minifySvg,
|
||||
toPascalCase,
|
||||
} from '../tools/build-helpers/main.mjs';
|
||||
} from '../tools/build-helpers/helpers.mjs';
|
||||
|
||||
const currentDir = getCurrentDirPath(import.meta.url);
|
||||
const ICONS_DIR = path.resolve(currentDir, '../icons');
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import path from 'path';
|
||||
import { promises as fs } from 'fs';
|
||||
import { getCurrentDirPath, readSvgDirectory } from '@lucide/helpers';
|
||||
import { getCurrentDirPath, readSvgDirectory } from '../tools/build-helpers/helpers.mjs';
|
||||
|
||||
// This is a special case convertion NextJS uses for their modularize imports. We try to follow the same convention, to generate the same imports.
|
||||
function pascalToKebabNextJSFlavour(str) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import path from 'path';
|
||||
import categories from '../categories.json' assert { type: 'json' };
|
||||
import { mergeArrays, writeFile, readAllMetadata, getCurrentDirPath } from '@lucide/helpers';
|
||||
import { mergeArrays, writeFile, readAllMetadata, getCurrentDirPath } from '../tools/build-helpers/helpers.mjs';
|
||||
|
||||
const currentDir = getCurrentDirPath(import.meta.url);
|
||||
const ICONS_DIR = path.resolve(currentDir, '../icons');
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import path from 'path';
|
||||
import { writeFile, getCurrentDirPath, readAllMetadata } from '@lucide/helpers';
|
||||
import { writeFile, getCurrentDirPath, readAllMetadata } from '../tools/build-helpers/helpers.mjs';
|
||||
|
||||
const currentDir = getCurrentDirPath(import.meta.url);
|
||||
const ICONS_DIR = path.resolve(currentDir, '../icons');
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import path from 'path';
|
||||
import { writeFile, getCurrentDirPath, readAllMetadata } from '@lucide/helpers';
|
||||
import { writeFile, getCurrentDirPath, readAllMetadata } from '../tools/build-helpers/helpers.mjs';
|
||||
|
||||
const currentDir = getCurrentDirPath(import.meta.url);
|
||||
const ICONS_DIR = path.resolve(currentDir, '../icons');
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
writeFile,
|
||||
mergeArrays,
|
||||
getCurrentDirPath,
|
||||
} from '@lucide/helpers';
|
||||
} from '../tools/build-helpers/helpers.mjs';
|
||||
|
||||
const currentDir = getCurrentDirPath(import.meta.url);
|
||||
const ICONS_DIR = path.resolve(currentDir, '../icons');
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import { readSvgDirectory, writeSvgFile } from '@lucide/helpers';
|
||||
import { readSvgDirectory, writeSvgFile } from '../tools/build-helpers/helpers.mjs';
|
||||
import processSvg from './render/processSvg.mjs';
|
||||
|
||||
const ICONS_DIR = path.resolve(process.cwd(), 'icons');
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import path from 'path';
|
||||
import { getCurrentDirPath } from '@lucide/helpers';
|
||||
import { getCurrentDirPath } from '../../tools/build-helpers/helpers.mjs';
|
||||
import { renameIcon } from './renameIcon.function.mjs';
|
||||
|
||||
async function main() {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import path from 'path';
|
||||
import { getCurrentDirPath, readSvgDirectory } from '@lucide/helpers';
|
||||
import { getCurrentDirPath, readSvgDirectory } from '../../tools/build-helpers/helpers.mjs';
|
||||
import yargs from 'yargs/yargs';
|
||||
import { hideBin } from 'yargs/helpers';
|
||||
import { renameIcon } from './renameIcon.function.mjs';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { optimize } from 'svgo';
|
||||
import * as prettier from 'prettier';
|
||||
import { parseSync, stringify } from 'svgson';
|
||||
import DEFAULT_ATTRS from '@lucide/build-icons/render/default-attrs.json' assert { type: 'json' };
|
||||
import DEFAULT_ATTRS from '../../tools/build-icons/render/default-attrs.json' assert { type: 'json' };
|
||||
|
||||
/**
|
||||
* Optimize SVG with `svgo`.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import fs from 'node:fs';
|
||||
import path from 'path';
|
||||
import simpleGit from '/usr/local/lib/node_modules/simple-git';
|
||||
import simpleGit from 'simple-git';
|
||||
import { Octokit } from '@octokit/rest';
|
||||
import pMemoize from 'p-memoize';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user