1
0
mirror of https://github.com/jaandrle/deka-dom-el synced 2024-11-24 09:29:37 +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";
export * from "../index.d";
import { el, assign, on } from "./index.d";
export * from "./index.d";
export function register(dom: typeof document): Promise<{
el: typeof el,
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;
/** @param {HTMLElement} obj */
prop_process.setDelete= function(obj, prop, value){
@ -13,7 +13,7 @@ export let assign;
export let on;
export async function register(dom, keys_aditional= []){
if(dom_last===dom)
return import("../index.js");
return import("./index.js");
keys.push(...keys_aditional);
const w= dom.window;
@ -21,7 +21,7 @@ export async function register(dom, keys_aditional= []){
globalThis.window= w;
w.console= globalThis.console;
const m= await import("../index.js");
const m= await import("./index.js");
el= m.el;
assign= m.assign;
on= m.on;

View File

@ -16,17 +16,13 @@
"types": "./index.d.ts",
"type": "module",
"exports": {
".": {
"import": "./index.js",
"types": "./index.d.ts"
},
"./jsdom": {
"import": "./src/jsdom.js",
"types": "./src/jsdom.d.ts"
"import": "./jsdom.js",
"types": "./jsdom.d.ts"
},
"./signals": {
"import": "./src/signals.js",
"types": "./src/signals.d.ts"
"import": "./signals.js",
"types": "./signals.d.ts"
},
"./signals-lib": {
"import": "./src/signals-lib.js",
@ -35,14 +31,11 @@
},
"typesVersions": {
"*": {
".": [
"./index.d.ts"
],
"./jsdom": [
"./src/jsdom.d.ts"
"./jsdom.d.ts"
],
"./signals": [
"./src/signals.d.ts"
"./signals.d.ts"
],
"./signals-lib": [
"./src/signals.d.ts"
@ -50,8 +43,8 @@
}
},
"files": [
"index.js",
"index.d.ts",
"*.js",
"*.d.ts",
"src"
],
"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);