Skip to content

Commit cc8eff2

Browse files
committed
fix(store): revert instance registration, jspm pointer fix
1 parent 00beeae commit cc8eff2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
"jspm": {
8484
"registry": "npm",
8585
"jspmPackage": true,
86-
"main": "aurelia-store",
86+
"main": "index",
8787
"format": "cjs",
8888
"directories": {
8989
"dist": "dist/commonjs"
@@ -127,7 +127,7 @@
127127
"dependencies": [
128128
{
129129
"name": "aurelia-store",
130-
"main": "aurelia-store",
130+
"main": "index",
131131
"path": "../node_modules/aurelia-store/dist/commonjs",
132132
"resources": []
133133
},

src/aurelia-store.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ export function configure<T>(
2121

2222
delete options.initialState;
2323

24-
aurelia.instance(Store, new Store(initState, options));
24+
aurelia.container
25+
.registerInstance(Store, new Store(initState, options));
2526
}
2627

2728
export * from "./store";

0 commit comments

Comments
 (0)