Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ericfennis committed Feb 21, 2024
1 parent 4b6ddeb commit aa5bf15
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 117 deletions.
2 changes: 0 additions & 2 deletions packages/lucide-solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@
"copy:license": "cp ../../LICENSE ./LICENSE",
"clean": "rm -rf dist && rm -rf stats && rm -rf ./src/icons/*.js",
"build:bundle": "rollup -c rollup.config.mjs",
"build:types": "tsc --emitDeclarationOnly --noEmit false --root ./src --outDir ./dist/types",
"build:source": "esbuild ./src/** --outdir=./dist/source --loader:.js=jsx --jsx=preserve --bundle --format=esm --sourcemap --target=esnext --external:solid-js",
"build:icons": "build-icons --output=./src --templateSrc=./scripts/exportTemplate.mjs --renderUniqueKey --withAliases --aliasesFileExtension=.ts --iconFileExtension=.tsx --exportFileName=index.ts",
"test": "vitest run",
"version": "pnpm version --git-tag-version=false"
Expand Down
10 changes: 9 additions & 1 deletion packages/lucide-solid/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const configs = bundles
["@babel/preset-env", { bugfixes: true, targets: 'last 2 years' }],
],
}),
resolve({ extensions: ['.js', '.ts', '.jsx' ]}),
resolve({ extensions: [".js", ".ts", ".jsx", ".tsx"]}),
...plugins({
pkg,
withEsbuild: false,
Expand All @@ -61,6 +61,14 @@ const configs = bundles
format: 'esm',
sourcemap: true,
target: ['esnext'],
banner: {
js: `/**
* @license ${pkg.name} v${pkg.version} - ${pkg.license}
*
* This source code is licensed under the ${pkg.license} license.
* See the LICENSE file in the root directory of this source tree.
*/`,
},
plugins: [{
name: 'externalize-everything-except-own-dependencies',
setup(build) {
Expand Down
88 changes: 0 additions & 88 deletions packages/lucide-solid/scripts/buildTypes.mjs

This file was deleted.

13 changes: 0 additions & 13 deletions packages/lucide-solid/scripts/replaceVersion.mjs

This file was deleted.

4 changes: 0 additions & 4 deletions packages/lucide-solid/src/lucide-solid.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* lucide-solid {{version}} - ISC
*/

export * from './icons';
export * as icons from './icons';
export * from './aliases';
16 changes: 13 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion tools/rollup-plugins/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"type": "module",
"dependencies": {
"@atomico/rollup-plugin-sizes": "^1.1.4",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-replace": "^5.0.5",
"esbuild": "^0.19.11",
"rollup": "^4.9.2",
Expand Down
5 changes: 0 additions & 5 deletions tools/rollup-plugins/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,13 @@ import bundleSize from '@atomico/rollup-plugin-sizes';
import replace from '@rollup/plugin-replace';
import license from 'rollup-plugin-license';
import esbuild from 'rollup-plugin-esbuild';
import { nodeResolve } from '@rollup/plugin-node-resolve';

const plugins = ({ pkg, minify = false, withEsbuild = true, esbuildOptions = {} }) =>
[
withEsbuild ? esbuild({
minify,
...esbuildOptions,
}) : null,
nodeResolve({
extensions: [".js", ".ts", ".jsx", ".tsx"],
resolveOnly: [/^@lucide\/.*$/],
}),
license({
banner: `@license ${pkg.name} v${pkg.version} - ${pkg.license}
Expand Down

0 comments on commit aa5bf15

Please sign in to comment.