Fix packaging to correctly handle utils/

This commit is contained in:
venashial
2022-06-24 20:36:16 -07:00
parent e245edc843
commit 81c039d645
11 changed files with 66 additions and 36 deletions

View File

@@ -1,10 +0,0 @@
export default function Generator(options: PluginOptions): {
name: string
buildStart(): Promise<void>
}
export interface PluginOptions {
projectColors: boolean
landingPage: boolean
gameVersions: boolean
tags: boolean
}

View File

@@ -12,6 +12,21 @@ const API_URL =
// Time to live: 7 days
const TTL = 7 * 24 * 60 * 60 * 1000
/**
* @typedef {Object} PluginResult
* @property {string} name
* @property {() => Promise<void>} buildStart
*/
/**
* Generate JSON data from the backend
* @param {Object} options Plugin options
* @param {boolean} options.projectColors
* @param {boolean} options.landingPage
* @param {boolean} options.gameVersions
* @param {boolean} options.tags
* @returns {PluginResult}
*/
export default function Generator(options) {
return {
name: 'rollup-plugin-omorphia-generator',

View File

@@ -1 +0,0 @@
export declare function gameVersions(API_URL: string): Promise<void>

View File

@@ -1 +0,0 @@
export declare function landingPage(API_URL: string): Promise<void>

View File

@@ -1 +0,0 @@
export declare function projectColors(API_URL: string): Promise<void>

View File

@@ -1 +0,0 @@
export declare function tags(API_URL: string): Promise<void>