Skip to content

Commit e29bec6

Browse files
bug render + respiração
1 parent a6d9e02 commit e29bec6

5 files changed

Lines changed: 12 additions & 10 deletions

File tree

augustinus.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ export default function generateGabc(input: string, modelObject: Model, paramete
215215
if (parametersObject.exsurge) {
216216
resultGabc = convertExsurge(resultGabc);
217217
}
218-
218+
resultGabc = resultGabc.replaceAll(/'\(.\)/gm, "(,)");
219219
return resultGabc;
220220
}
221221

cli.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,9 @@ import generateGabc, { type Model, type Parameters } from "./augustinus.js";
33

44
import yargs from 'yargs';
55
import { hideBin } from 'yargs/helpers';
6-
import { fileURLToPath } from 'url';
76
import fs from 'fs';
87
import path from 'path';
9-
10-
11-
const models: Model[] = JSON.parse(fs.readFileSync(path.join(path.dirname(fileURLToPath(import.meta.url)), 'assets', 'models.json'), 'utf-8'));
8+
import models from './assets/models.json' with { type: 'json' };
129

1310

1411
const argv = yargs(hideBin(process.argv))

frontend/vite.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@ export default defineConfig({
44
optimizeDeps: {
55
include: ['separador-silabas'],
66
},
7+
build: {
8+
assetsInclude: ['**/*.js'],
9+
},
10+
publicDir: '../',
711
});

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
{
22
"name": "augustinus",
3-
"version": "3.0.1",
3+
"version": "3.1.0",
44
"description": "Uma ferramenta para transformar texto em notação gregoriana GABC",
55
"main": "dist/index.js",
66
"bin": {
77
"augustinus": "dist/cli.js"
88
},
99
"type": "module",
1010
"scripts": {
11-
"build": "esbuild cli.ts --bundle --platform=node --format=esm --outfile=dist/cli.js --external:yargs",
11+
"build": "tsc",
1212
"start": "bun run cli.ts"
1313
},
1414
"files": [
15-
"dist/"
15+
"dist/",
16+
"assets/"
1617
],
1718
"dependencies": {
1819
"separador-silabas": "^2.0.0",

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
"./*": ["./*"]
1616
}
1717
},
18-
"include": ["./**/*.ts"],
19-
"exclude": ["./dist"]
18+
"include": ["./**/*.ts", "./assets/models.json"],
19+
"exclude": ["./dist", "./frontend"]
2020
}

0 commit comments

Comments
 (0)