Skip to content

Commit

Permalink
refactor(build): Include lsTypes module to minify list
Browse files Browse the repository at this point in the history
Added the `lsTypes` module to be minified after get transpiled from TypeScript. Other changes is unrelated changes.
  • Loading branch information
mitsuki31 committed Apr 21, 2024
1 parent 6756665 commit 4d48e06
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions build.prop.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
const { resolve } = require('node:path');
const { join } = require('node:path');
/** @type {import('./types/build.prop').BuildPropConfig} */
module.exports = {
minify: {
files: [
'dist/index.js',
'dist/lsfnd.js'
'dist/lsfnd.js',
'dist/lsTypes.js'
]
},
rootDir: resolve(__dirname),
outDir: resolve('dist'),
tsconfig: 'tsconfig.production.json',
rootDir: __dirname,
outDir: join(__dirname, 'dist'),
tsconfig: 'tsconfig.production.json'
};
4 changes: 2 additions & 2 deletions scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
* npx ts-node scripts/build.ts [-ow|--overwrite] [-m|--minify]
* ```
*
* Copyright (c) 2024 Ryuu Mitsuki.
* Licensed under the MIT license.
* Copyright (c) 2024 Ryuu Mitsuki. All rights reserved.
*
* @module scripts/build
* @author Ryuu Mitsuki (https://github.com/mitsuki31)
Expand Down Expand Up @@ -62,6 +61,7 @@ const legalComments: string = `
* Copyright (c) ${new Date().getFullYear()} Ryuu Mitsuki. All rights reserved.
* @author Ryuu Mitsuki (https://github.com/mitsuki31)
* @license ${pkg.license}
* @see [Homepage](${pkg.homepage})
* @see [Source code](${pkg.repository.url.replace(/^git\+/, '')})
*/
`.trimStart();
Expand Down

0 comments on commit 4d48e06

Please sign in to comment.