mirror of
https://github.com/jaandrle/deka-dom-el
synced 2024-11-24 09:29:37 +01:00
🚚
This commit is contained in:
parent
d7e0b17e38
commit
dfcb98bfbe
4
src/jsdom.d.ts → jsdom.d.ts
vendored
4
src/jsdom.d.ts → jsdom.d.ts
vendored
@ -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,
|
@ -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;
|
23
package.json
23
package.json
@ -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": {
|
||||
|
0
src/signals.d.ts → signals.d.ts
vendored
0
src/signals.d.ts → signals.d.ts
vendored
4
signals.js
Normal file
4
signals.js
Normal 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);
|
@ -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);
|
Loading…
Reference in New Issue
Block a user