Skip to content

Commit

Permalink
Update ssr-client package
Browse files Browse the repository at this point in the history
  • Loading branch information
augustjk committed Mar 10, 2023
1 parent 9b276ef commit a0550f7
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 8 deletions.
4 changes: 3 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,11 @@ packages/labs/ssr/index.*

packages/labs/ssr-client/development/
packages/labs/ssr-client/directives/
packages/labs/ssr-client/controllers/
packages/labs/ssr-client/lib/
packages/labs/ssr-client/node/
packages/labs/ssr-client/node_modules/
packages/labs/ssr-client/index.*
packages/labs/ssr-client/lit-element-hydrate-support.*

packages/labs/ssr-dom-shim/index.*

Expand Down
4 changes: 3 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,11 @@ packages/labs/ssr/index.*

packages/labs/ssr-client/development/
packages/labs/ssr-client/directives/
packages/labs/ssr-client/controllers/
packages/labs/ssr-client/lib/
packages/labs/ssr-client/node/
packages/labs/ssr-client/node_modules/
packages/labs/ssr-client/index.*
packages/labs/ssr-client/lit-element-hydrate-support.*

packages/labs/ssr-dom-shim/index.*

Expand Down
4 changes: 3 additions & 1 deletion packages/labs/ssr-client/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/development/
/directives/
/controllers/
/lib/
/node/
/node_modules/
/index.*
/lit-element-hydrate-support.*
27 changes: 24 additions & 3 deletions packages/labs/ssr-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,25 @@
},
"exports": {
".": {
"types": "./development.index.d.ts",
"node": {
"development": "./node/development/index.js",
"default": "./node/index.js"
},
"development": "./development/index.js",
"default": "./index.js"
},
"./lit-element-hydrate-support.js": {
"types": "./development/lit-element-hydrate-support.d.ts",
"node": {
"development": "./node/development/lit-element-hydrate-support.js",
"default": "./node/lit-element-hydrate-support.js"
},
"development": "./development/lit-element-hydrate-support.js",
"default": "./lit-element-hydrate-support.js"
},
"./directives/render-light.js": {
"types": "./development/directives/render-light.d.ts",
"development": "./development/directives/render-light.js",
"default": "./directives/render-light.js"
}
Expand All @@ -30,7 +45,9 @@
"/development/",
"!/development/test/",
"/directives/",
"/index.{d.ts,d.ts.map,js,js.map}"
"/lib/",
"/index.{d.ts,d.ts.map,js,js.map}",
"/lit-element-hydrate-support.{d.ts,d.ts.map,js,js.map}"
],
"scripts": {
"build": "wireit",
Expand Down Expand Up @@ -72,7 +89,8 @@
"files": [],
"output": [
"*.d.ts{,.map}",
"directives/*.d.ts{,.map}"
"directives/*.d.ts{,.map}",
"lib/*.d.ts{,.map}"
]
},
"build:rollup": {
Expand All @@ -86,7 +104,10 @@
],
"output": [
"index.js{,.map}",
"directives/*.js{,.map}"
"lit-element-hydrate-support.js{,.map}",
"directives/*.js{,.map}",
"lib/*.js{,.map}",
"node/"
]
},
"checksize": {
Expand Down
6 changes: 5 additions & 1 deletion packages/labs/ssr-client/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ import {createRequire} from 'module';

export default litProdConfig({
packageName: createRequire(import.meta.url)('./package.json').name,
entryPoints: ['index', 'directives/render-light'],
entryPoints: [
'index',
'lit-element-hydrate-support',
'directives/render-light',
],
external: ['lit/directive.js', 'lit/directive-helpers.js'],
});
2 changes: 1 addition & 1 deletion packages/labs/ssr-client/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
export {};
export {hydrate} from './lib/hydrate-lit-html.js';

0 comments on commit a0550f7

Please sign in to comment.