1
0

chore: rename package to render-math-problems

This commit is contained in:
AlanSilvaaa
2026-06-03 19:15:23 -04:00
parent 4badd0210c
commit 51e8801959
5 changed files with 16 additions and 17 deletions

View File

@@ -1,4 +1,4 @@
# render-mathproblems
# render-math-problems
BlockSystem es una aplicación educativa interactiva construida con Vue 3, centrada en el componente **`Blocks.vue`**. Este componente permite a los usuarios colocar, arrastrar, agrupar y dividir bloques unitarios en una cuadrícula, fomentando la intuición matemática sobre agrupamiento y valor posicional (unidades y decenas).
@@ -11,15 +11,15 @@ Para detalles de la API y configuración de `Blocks.vue`, consulta `src/README.m
## Uso Como Paquete
```sh
npm install render-mathproblems
npm install render-math-problems
```
Importa el componente y sus estilos:
```vue
<script setup>
import { MathProblem } from "render-mathproblems";
import "render-mathproblems/style.css";
import { MathProblem } from "render-math-problems";
import "render-math-problems/style.css";
const exercise = {
exerciseType: "move-blocks",
@@ -47,7 +47,7 @@ const exercise = {
También puedes importar el nombre interno del componente:
```js
import { Blocks } from "render-mathproblems";
import { Blocks } from "render-math-problems";
```
## Requisitos

View File

@@ -1,11 +1,11 @@
{
"name": "render-mathproblems",
"name": "render-math-problems",
"version": "0.1.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "render-mathproblems",
"name": "render-math-problems",
"version": "0.1.0",
"devDependencies": {
"@tsconfig/node24": "^24.0.4",

View File

@@ -1,24 +1,24 @@
{
"name": "render-mathproblems",
"name": "render-math-problems",
"version": "0.1.0",
"type": "module",
"files": [
"dist"
],
"main": "./dist/render-mathproblems.umd.cjs",
"module": "./dist/render-mathproblems.js",
"main": "./dist/render-math-problems.umd.cjs",
"module": "./dist/render-math-problems.js",
"types": "./dist/index.d.ts",
"style": "./dist/render-mathproblems.css",
"style": "./dist/render-math-problems.css",
"sideEffects": [
"**/*.css"
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/render-mathproblems.js",
"require": "./dist/render-mathproblems.umd.cjs"
"import": "./dist/render-math-problems.js",
"require": "./dist/render-math-problems.umd.cjs"
},
"./style.css": "./dist/render-mathproblems.css"
"./style.css": "./dist/render-math-problems.css"
},
"scripts": {
"dev": "vite",

View File

@@ -23,7 +23,7 @@ export default defineConfig(({ command }) => {
lib: {
entry: fileURLToPath(new URL('./src/index.ts', import.meta.url)),
name: 'RenderMathProblems',
fileName: 'render-mathproblems',
fileName: 'render-math-problems',
},
rollupOptions: {
external: ['vue'],