dev #1
4126
package-lock.json
generated
4126
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
23
package.json
23
package.json
|
@ -1,11 +1,13 @@
|
||||||
{
|
{
|
||||||
"name": "laterano",
|
"name": "laterano",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"main": "dist/main.js",
|
"main": "dist/main.min.js",
|
||||||
"types": "dist/main.d.ts",
|
"types": "dist/types.d.ts",
|
||||||
|
"module": "dist/main.min.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc",
|
"build": "tsc && rollup -c && npm run cleanup-intermediate",
|
||||||
"prepare": "npm run build"
|
"prepare": "npm run build",
|
||||||
|
"cleanup-intermediate": "rimraf dist/main.js dist/types"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
@ -15,6 +17,17 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"description": "",
|
"description": "",
|
||||||
"devDependencies": {
|
"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"
|
"typescript": "^5.8.3"
|
||||||
}
|
},
|
||||||
|
"type": "module"
|
||||||
}
|
}
|
||||||
|
|
26
rollup.config.js
Normal file
26
rollup.config.js
Normal 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()],
|
||||||
|
},
|
||||||
|
]
|
|
@ -72,7 +72,7 @@
|
||||||
// "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
|
// "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
|
||||||
// "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
|
// "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
|
||||||
// "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
|
// "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 */
|
/* Interop Constraints */
|
||||||
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
|
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user