dev #1

Merged
Astrian merged 3 commits from dev into main 2025-05-16 02:01:42 +00:00
5 changed files with 4176 additions and 9 deletions

2
.npmignore Normal file
View File

@ -0,0 +1,2 @@
src/
.gitea/

4130
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,11 +1,13 @@
{
"name": "laterano",
"version": "0.0.0",
"main": "dist/main.js",
"types": "dist/main.d.ts",
"version": "0.0.1",
"main": "dist/main.min.js",
"types": "dist/types.d.ts",
"module": "dist/main.min.js",
"scripts": {
"build": "tsc",
"prepare": "npm run build"
"build": "tsc && rollup -c && npm run cleanup-intermediate",
"prepare": "npm run build",
"cleanup-intermediate": "rimraf dist/main.js dist/types"
},
"repository": {
"type": "git",
@ -15,6 +17,17 @@
"license": "MIT",
"description": "",
"devDependencies": {
"@rollup/plugin-node-resolve": "^16.0.1",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^12.1.2",
"dts-bundle-generator": "^9.5.1",
"i": "^0.3.7",
"npm": "^11.4.0",
"rimraf": "^6.0.1",
"rollup": "^4.40.2",
"rollup-plugin-dts": "^6.2.1",
"tslib": "^2.8.1",
"typescript": "^5.8.3"
}
},
"type": "module"
}

26
rollup.config.js Normal file
View File

@ -0,0 +1,26 @@
import resolve from '@rollup/plugin-node-resolve'
import typescript from '@rollup/plugin-typescript'
import terser from '@rollup/plugin-terser'
import dts from 'rollup-plugin-dts'
export default [
{
input: 'dist/main.js',
output: [
{
file: 'dist/main.min.js',
format: 'esm',
plugins: [terser()],
},
],
plugins: [resolve(), typescript()],
},
{
input: 'dist/types/main.d.ts',
output: {
file: 'dist/types.d.ts',
format: 'es',
},
plugins: [dts()],
},
]

View File

@ -72,7 +72,7 @@
// "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
// "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
// "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
// "declarationDir": "./", /* Specify the output directory for generated declaration files. */
"declarationDir": "./dist/types", /* Specify the output directory for generated declaration files. */
/* Interop Constraints */
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */