mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2026-04-15 02:26:52 +00:00
Replace esbuild with rimraf + rollup for packaging
Co-authored-by: marocchino <128431+marocchino@users.noreply.github.com>
This commit is contained in:
parent
fd65c7eda3
commit
5a2d3d79af
8 changed files with 454 additions and 25749 deletions
20
rollup.config.js
Normal file
20
rollup.config.js
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
"use strict";
|
||||
// See: https://rollupjs.org/introduction/
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const plugin_commonjs_1 = __importDefault(require("@rollup/plugin-commonjs"));
|
||||
const plugin_node_resolve_1 = __importDefault(require("@rollup/plugin-node-resolve"));
|
||||
const plugin_typescript_1 = __importDefault(require("@rollup/plugin-typescript"));
|
||||
const config = {
|
||||
input: "src/main.ts",
|
||||
output: {
|
||||
esModule: true,
|
||||
file: "dist/index.js",
|
||||
format: "es",
|
||||
sourcemap: true,
|
||||
},
|
||||
plugins: [(0, plugin_typescript_1.default)({ outDir: "dist" }), (0, plugin_node_resolve_1.default)({ preferBuiltins: true }), (0, plugin_commonjs_1.default)()],
|
||||
};
|
||||
exports.default = config;
|
||||
Loading…
Add table
Add a link
Reference in a new issue