1
0
mirror of https://github.com/jaandrle/deka-dom-el synced 2024-11-24 17:39:36 +01:00
This commit is contained in:
Jan Andrle 2023-09-13 21:06:13 +02:00
parent d7e0b17e38
commit dfcb98bfbe
Signed by: jaandrle
GPG Key ID: B3A25AED155AFFAB
6 changed files with 17 additions and 24 deletions

View File

@ -1,5 +1,5 @@
import { el, assign, on } from "../index.d"; import { el, assign, on } from "./index.d";
export * from "../index.d"; export * from "./index.d";
export function register(dom: typeof document): Promise<{ export function register(dom: typeof document): Promise<{
el: typeof el, el: typeof el,
assign: typeof assign, assign: typeof assign,

View File

@ -1,4 +1,4 @@
import { prop_process } from './dom-common.js'; import { prop_process } from './src/dom-common.js';
const { setDelete }= prop_process; const { setDelete }= prop_process;
/** @param {HTMLElement} obj */ /** @param {HTMLElement} obj */
prop_process.setDelete= function(obj, prop, value){ prop_process.setDelete= function(obj, prop, value){
@ -13,7 +13,7 @@ export let assign;
export let on; export let on;
export async function register(dom, keys_aditional= []){ export async function register(dom, keys_aditional= []){
if(dom_last===dom) if(dom_last===dom)
return import("../index.js"); return import("./index.js");
keys.push(...keys_aditional); keys.push(...keys_aditional);
const w= dom.window; const w= dom.window;
@ -21,7 +21,7 @@ export async function register(dom, keys_aditional= []){
globalThis.window= w; globalThis.window= w;
w.console= globalThis.console; w.console= globalThis.console;
const m= await import("../index.js"); const m= await import("./index.js");
el= m.el; el= m.el;
assign= m.assign; assign= m.assign;
on= m.on; on= m.on;

View File

@ -16,17 +16,13 @@
"types": "./index.d.ts", "types": "./index.d.ts",
"type": "module", "type": "module",
"exports": { "exports": {
".": {
"import": "./index.js",
"types": "./index.d.ts"
},
"./jsdom": { "./jsdom": {
"import": "./src/jsdom.js", "import": "./jsdom.js",
"types": "./src/jsdom.d.ts" "types": "./jsdom.d.ts"
}, },
"./signals": { "./signals": {
"import": "./src/signals.js", "import": "./signals.js",
"types": "./src/signals.d.ts" "types": "./signals.d.ts"
}, },
"./signals-lib": { "./signals-lib": {
"import": "./src/signals-lib.js", "import": "./src/signals-lib.js",
@ -35,14 +31,11 @@
}, },
"typesVersions": { "typesVersions": {
"*": { "*": {
".": [
"./index.d.ts"
],
"./jsdom": [ "./jsdom": [
"./src/jsdom.d.ts" "./jsdom.d.ts"
], ],
"./signals": [ "./signals": [
"./src/signals.d.ts" "./signals.d.ts"
], ],
"./signals-lib": [ "./signals-lib": [
"./src/signals.d.ts" "./src/signals.d.ts"
@ -50,8 +43,8 @@
} }
}, },
"files": [ "files": [
"index.js", "*.js",
"index.d.ts", "*.d.ts",
"src" "src"
], ],
"engines": { "engines": {

View File

4
signals.js Normal file
View File

@ -0,0 +1,4 @@
export { S, isSignal } from "src/signals-lib.js";
import { signals_config } from "src/signals-lib.js";
import { registerReactivity } from "src/signals-common.js";
registerReactivity(signals_config);

View File

@ -1,4 +0,0 @@
export { S, isSignal } from "./signals-lib.js";
import { signals_config } from "./signals-lib.js";
import { registerReactivity } from "./signals-common.js";
registerReactivity(signals_config);