add JSR support

This commit is contained in:
2025-09-06 18:01:21 -04:00
parent 3cb2f15d25
commit d11e4e963c
3 changed files with 9 additions and 26 deletions

View File

@@ -1,28 +1,6 @@
/** import { FluentDomObject } from './fluent-dom-esm.types';
* fluent-dom-esm v1.1.0
*
* Fluent DOM Manipulation, adapted to ESM and cranked up to v1.1(.0).
*
* https://git.itsericwoodward.com/eric/fluent-dom-esm
*
* v1.1.0 Copyright (c) 2025 Eric Woodward
* Original copyright (c) 2009 Tommy Montgomery (https://glacius.tmont.com/articles/fluent-dom-manipulation-in-javascript)
*
* Released under the WTFPL (Do What the Fuck You Want to Public License)
*
* @author Eric Woodward (v1.1.0 update)
* @author Tommy Montgomery (original)
* @license http://sam.zoy.org/wtfpl/
*/
/** /**
* IIFE that creates the FluentDomObject as default export * IIFE that creates the FluentDomObject as default export
*/ */
declare const _default: { declare const _default: FluentDomObject;
(node: HTMLElement): any;
/**
* Creates a new HTML element which is wrapped in a FluentDomObject and returned
*/
create: (tagName: string) => any;
c(tagName: string): any;
};
export default _default; export default _default;

5
jsr.json Normal file
View File

@@ -0,0 +1,5 @@
{
"name": "@itsericwoodward/fluent-dom-esm",
"version": "1.1.0",
"exports": "./src/fluent-dom-esm.ts"
}

View File

@@ -17,7 +17,7 @@
import type { FluentDomObject } from "./fluent-dom-esm.types"; import type { FluentDomObject } from "./fluent-dom-esm.types";
import { version } from "../package.json"; import { version } from "../package.json" with { type: "json" };
import { import {
isFluentDomObject, isFluentDomObject,
isHTMLElement, isHTMLElement,
@@ -261,4 +261,4 @@ export default (function () {
}; };
return FluentDom; return FluentDom;
})(); })() as unknown as FluentDomObject;