@chialab/esbuild-rna
Advanced tools
Comparing version 0.16.3 to 0.16.4
@@ -286,3 +286,2 @@ import path from 'path'; | ||
const rnaResult = /** @type {Result} */ (buildResult); | ||
rnaResult.dependencies = this.getDependencies(); | ||
this.chunks.forEach((result) => assignToResult(rnaResult, result)); | ||
@@ -307,2 +306,3 @@ this.files.forEach((result) => assignToResult(rnaResult, result)); | ||
} | ||
rnaResult.dependencies = this.getDependencies(); | ||
}); | ||
@@ -964,6 +964,6 @@ } | ||
const map = this.dependencies; | ||
map[importer] = [ | ||
map[importer] = [...new Set([ | ||
...(map[importer] || []), | ||
...dependencies, | ||
]; | ||
])]; | ||
@@ -970,0 +970,0 @@ return map; |
{ | ||
"name": "@chialab/esbuild-rna", | ||
"type": "module", | ||
"version": "0.16.3", | ||
"version": "0.16.4", | ||
"description": "A framework for esbuild plugins with transform and emit capabilities.", | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
@@ -146,12 +146,2 @@ /// <reference types="node" /> | ||
/** | ||
* The current plugin instance. | ||
* @type {Plugin} | ||
*/ | ||
plugin: Plugin; | ||
/** | ||
* The current plugin name. | ||
* @type {string} | ||
*/ | ||
pluginName: string; | ||
/** | ||
* Manager instance. | ||
@@ -452,2 +442,3 @@ * @type {import('./BuildManager.js').BuildManager} | ||
* Insert dependency plugins in the build plugins list. | ||
* @param {Plugin} plugin The current plugin. | ||
* @param {Plugin[]} plugins A list of required plugins . | ||
@@ -457,3 +448,3 @@ * @param {'before'|'after'} [mode] Where insert the missing plugin. | ||
*/ | ||
setupPlugin(plugins: Plugin[], mode?: "before" | "after" | undefined): Promise<string[]>; | ||
setupPlugin(plugin: Plugin, plugins: Plugin[], mode?: "before" | "after" | undefined): Promise<string[]>; | ||
/** | ||
@@ -460,0 +451,0 @@ * Add dependencies to the build. |
/** | ||
* @typedef {import('./Build').Build & { pluginName: string }} PluginBuild | ||
*/ | ||
/** | ||
* Enrich the esbuild build with a transformation pipeline and emit methods. | ||
* @param {import('esbuild').Plugin} pluginInstance The esbuild plugin instance. | ||
* @param {import('esbuild').PluginBuild} pluginBuild The esbuild build. | ||
*/ | ||
export function useRna(pluginInstance: import('esbuild').Plugin, pluginBuild: import('esbuild').PluginBuild): import("./Build.js").Build; | ||
export function useRna(pluginBuild: import('esbuild').PluginBuild): import("./Build.js").Build; | ||
/** | ||
@@ -16,4 +12,1 @@ * @returns {import('esbuild').Plugin} | ||
export * from "./helpers.js"; | ||
export type PluginBuild = import('./Build').Build & { | ||
pluginName: string; | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
67065
1869