Skip to content

Commit

Permalink
Fix referential linking
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansolid committed Apr 28, 2019
1 parent 3aa0d94 commit 61aa26e
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions dom/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "solid-js/dom",
"main": "../lib/dom.js",
"module": "../dist/dom.js",
"main": "../lib/dom/index.js",
"module": "../dist/dom/index.js",
"types": "../types/dom/index.d.ts",
"sideEffects": false
}
4 changes: 2 additions & 2 deletions h/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "solid-js/h",
"main": "../lib/h.js",
"module": "../dist/h.js",
"main": "../lib/dom/h.js",
"module": "../dist/dom/h.js",
"types": "../types/dom/h.d.ts",
"sideEffects": false
}
4 changes: 2 additions & 2 deletions html/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "solid-js/html",
"main": "../lib/html.js",
"module": "../dist/html.js",
"main": "../lib/dom/html.js",
"module": "../dist/dom/html.js",
"types": "../types/dom/html.d.ts",
"sideEffects": false
}
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "solid-js",
"description": "A declarative JavaScript library for building user interfaces.",
"version": "0.5.1-beta.2",
"version": "0.5.1-beta.3",
"author": "Ryan Carniato",
"license": "MIT",
"repository": {
Expand Down
12 changes: 6 additions & 6 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,32 +23,32 @@ export default [{
}, {
input: 'src/dom/index.ts',
output: [{
file: 'lib/dom.js',
file: 'lib/dom/index.js',
format: 'cjs'
}, {
file: 'dist/dom.js',
file: 'dist/dom/index.js',
format: 'es'
}],
external: ['s-js', 'dom-expressions'],
plugins
}, {
input: 'src/dom/html.ts',
output: [{
file: 'lib/html.js',
file: 'lib/dom/html.js',
format: 'cjs'
}, {
file: 'dist/html.js',
file: 'dist/dom/html.js',
format: 'es'
}],
external: ['./index', 'lit-dom-expressions'],
plugins
}, {
input: 'src/dom/h.ts',
output: [{
file: 'lib/h.js',
file: 'lib/dom/h.js',
format: 'cjs'
}, {
file: 'dist/h.js',
file: 'dist/dom/h.js',
format: 'es'
}],
external: ['./index', 'hyper-dom-expressions'],
Expand Down
4 changes: 2 additions & 2 deletions src/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ type StateNode = {
}
type Proxy<T> = {
get(): any,
set(): boolean,
set(): boolean
}
type Wrapped<T> = {
[P in keyof T]: Proxy<T[P]>;
}
} & { _state: T }

function wrap<T extends StateNode>(value: T): Wrapped<T> { return value[SPROXY] || (value[SPROXY] = new Proxy(value, proxyTraps)); }

Expand Down

0 comments on commit 61aa26e

Please sign in to comment.