1
0
mirror of https://github.com/tabler/tabler-icons.git synced 2025-08-30 17:20:31 +02:00

module solid (#1235)

This commit is contained in:
Ivan Gabaldon
2025-01-06 00:50:28 +01:00
committed by GitHub
parent 3e4049a572
commit 2fee96aa2d
3 changed files with 20 additions and 8 deletions

View File

@@ -17,17 +17,29 @@
"url": "git+https://github.com/tabler/tabler-icons.git",
"directory": "packages/icons-solidjs"
},
"main": "./dist/cjs/tabler-icons-solidjs.cjs",
"module": "./dist/esm/tabler-icons-solidjs.mjs",
"types": "./dist/cjs/tabler-icons-solidjs.d.cts",
"sideEffects": false,
"type": "module",
"exports": {
".": {
"import": {
"types": "./dist/esm/tabler-icons-solidjs.d.ts",
"default": "./dist/esm/tabler-icons-solidjs.js"
},
"require": {
"types": "./dist/cjs/tabler-icons-solidjs.d.cts",
"default": "./dist/cjs/tabler-icons-solidjs.cjs"
}
}
},
"main": "./dist/cjs/tabler-icons-solidjs.cjs",
"types": "./dist/cjs/tabler-icons-solidjs.d.cts",
"files": [
"dist"
],
"scripts": {
"build": "pnpm run clean && pnpm run copy:license && pnpm run build:icons && pnpm typecheck && pnpm run build:bundles",
"build:icons": "node build.mjs",
"build:bundles": "rollup -c ./rollup.config.mjs",
"build:icons": "node build.js",
"build:bundles": "rollup -c ./rollup.config.js",
"copy:license": "cp ../../LICENSE ./LICENSE",
"clean": "rm -rf dist && find . ! -name '.gitkeep' -path '*/src/icons/*' -exec rm -rf {} +",
"test": "vitest run",

View File

@@ -16,7 +16,7 @@ const bundles = [
format: 'esm',
inputs,
preserveModules: true,
extension: 'mjs',
extension: 'js',
},
];
@@ -24,9 +24,9 @@ export default [
{
input: inputs[0],
output: [{
file: `dist/esm/${outputFileName}.d.ts`
file: `dist/esm/${outputFileName}.d.ts`, format: 'esm'
}, {
file: `dist/cjs/${outputFileName}.d.cts`
file: `dist/cjs/${outputFileName}.d.cts`, format: 'cjs'
}],
plugins: [dts()],
},