From b1afcd61a44d7c52b1eec7e506bb0761af98f802 Mon Sep 17 00:00:00 2001 From: Anton Gilgur Date: Sun, 7 Jul 2019 19:41:15 -0400 Subject: [PATCH] (refactor): move files into src/ to prepare to support tsdx - move source files into src/ - whitelist these in package.json - rename persist.js to index.js to follow standards --- package.json | 5 ++++- asyncLocalStorage.js => src/asyncLocalStorage.js | 0 persist.js => src/index.js | 0 3 files changed, 4 insertions(+), 1 deletion(-) rename asyncLocalStorage.js => src/asyncLocalStorage.js (100%) rename persist.js => src/index.js (100%) diff --git a/package.json b/package.json index 2530a19..b6419d8 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,10 @@ "name": "mst-persist", "version": "0.0.2", "description": "Persist and hydrate MobX-state-tree stores", - "main": "persist.js", + "main": "src/index.js", + "files": [ + "src/" + ], "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, diff --git a/asyncLocalStorage.js b/src/asyncLocalStorage.js similarity index 100% rename from asyncLocalStorage.js rename to src/asyncLocalStorage.js diff --git a/persist.js b/src/index.js similarity index 100% rename from persist.js rename to src/index.js