From 0860f74cb0c0256a85218403c672b4db643e6cd6 Mon Sep 17 00:00:00 2001 From: George Kudrayvtsev Date: Tue, 4 Apr 2023 16:33:14 -0700 Subject: [PATCH] Temporarily add lib folder Add 'prepare' script instead of lib/ folder --- .gitignore | 1 - package.json | 3 ++- src/{index.js => index.mjs} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename src/{index.js => index.mjs} (100%) diff --git a/.gitignore b/.gitignore index 77530b75..77e8f70b 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,6 @@ .nyc_output/ /node_modules/ /tmp/ -/lib/ /dist/ /config/dist/ /coverage/ diff --git a/package.json b/package.json index f8603121..bf464cc4 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "stellar-base", "version": "8.2.2", "description": "Low-level support library for the Stellar network.", - "main": "./src/index.js", + "main": "./lib/index.js", "types": "./types/index.d.ts", "scripts": { "build": "yarn build:node", @@ -20,6 +20,7 @@ "tslint": "dtslint --localTs node_modules/typescript/lib types/", "preversion": "yarn clean && yarn pretty && yarn build:all:prod && yarn test:all", "pretty": "prettier --config ./config/prettier.config.js --ignore-path ./config/.prettierignore --write './**/*.js'", + "prepare": "yarn build:all:prod", "clean": "rm -rf lib/ dist/ coverage/ .nyc_output/" }, "mocha": { diff --git a/src/index.js b/src/index.mjs similarity index 100% rename from src/index.js rename to src/index.mjs