From 3c14f2f2e37995653362b23f32ecf6fafb1478ff Mon Sep 17 00:00:00 2001 From: Alan Lee Date: Mon, 21 Mar 2022 13:38:17 -0400 Subject: [PATCH] Move package.json to root Metro does not support nested package.json in the case of an unpublished module pulled directly from github. --- javascript-sdk/package.json => package.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) rename javascript-sdk/package.json => package.json (85%) diff --git a/javascript-sdk/package.json b/package.json similarity index 85% rename from javascript-sdk/package.json rename to package.json index ae4299577..ae4e81a78 100644 --- a/javascript-sdk/package.json +++ b/package.json @@ -2,12 +2,12 @@ "name": "@jitsu/sdk-js", "version": "2.4.0", "description": "Jitsu JavaScript SDK (more at http://jitsu.com/docs/js-sdk)", - "main": "dist/npm/jitsu.cjs.js", - "module": "dist/npm/dist/jitsu.es.js", - "types": "dist/npm/jitsu.d.ts", + "main": "javascript-sdk/dist/npm/jitsu.cjs.js", + "module": "javascript-sdk/dist/npm/dist/jitsu.es.js", + "types": "javascript-sdk/dist/npm/jitsu.d.ts", "files": [ - "dist/npm/*", - "dist/web/*" + "javascript-sdk/dist/npm/*", + "javascript-sdk/dist/web/*" ], "repository": { "type": "git", @@ -20,7 +20,7 @@ "private": false, "author": "Jitsu Dev ", "scripts": { - "clean": "rm -rf ./dist", + "clean": "rm -rf ./javascript-sdk/dist", "devserver": "PORT=8081 nodemon --watch '__tests__/common/*.ts' --exec 'ts-node' __tests__/common/devserver.ts", "test": "rollup -c && jest --detectOpenHandles --verbose false", "build": "rollup -c"