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