Merge pull request 'dev' (#1) from dev into main
All checks were successful
Publish to npm / publish (push) Successful in 24s
All checks were successful
Publish to npm / publish (push) Successful in 24s
Reviewed-on: #1
This commit is contained in:
commit
5924ca480d
2
.npmignore
Normal file
2
.npmignore
Normal file
|
@ -0,0 +1,2 @@
|
|||
src/
|
||||
.gitea/
|
4130
package-lock.json
generated
4130
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
25
package.json
25
package.json
|
@ -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
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. */
|
||||
// "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. */
|
||||
|
|
Loading…
Reference in New Issue
Block a user