From 9bb6076cf3d68c140c4930c0e5e5285e3a9342c4 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Thu, 5 Mar 2020 15:14:29 +0100 Subject: [PATCH] =?UTF-8?q?feat:=20=E2=9C=A8=20expose=20ultra-runner=20as?= =?UTF-8?q?=20a=20module=20as=20well,=20including=20type=20definitions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 11 ++++++----- src/index.ts | 6 ++++++ 2 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 src/index.ts diff --git a/package.json b/package.json index 9c963d13..a71e637e 100644 --- a/package.json +++ b/package.json @@ -2,13 +2,16 @@ "name": "ultra-runner", "description": "Smart and beautiful script runner that hijacks any `npm run`, `yarn` and `npx` calls for ultra fast execution", "version": "2.0.1", - "main": "lib/cli.js", + "main": "lib/index.js", "repository": "http://github.com/folke/ultra-runner", "author": "Folke Lemaitre ", "license": "MIT", "bin": { "ultra": "bin/ultra.js" }, + "engines": { + "node": ">=10.0.0" + }, "files": [ "lib", "bin", @@ -52,15 +55,13 @@ "generate:config": "npx ts-interface-builder src/config-options.ts", "prebuild": "yarn clean && yarn lint && yarn test", "build:rollup": "npx rollup -c", - "build": "yarn build:rollup", - "build:ts": "npx tsc -p tsconfig.build.json", + "build": "npx tsc -p tsconfig.build.json", "clean": "npx rimraf lib coverage *.log build 0x", "test": "npx jest", "test:cov": "npx jest --coverage --coverageProvider v8", - "lint": "yarn lint:ts && yarn lint:eslint && yarn lint:docs", + "lint": "yarn lint:eslint && yarn lint:docs", "lint:eslint": "npx eslint bin/*.js src/*.ts __tests__/*.ts --cache", "lint:docs": "npx markdownlint README.md", - "lint:ts": "npx tsc -p tsconfig.build.json", "lint:fix": "yarn lint:eslint --fix", "prerelease": "yarn build", "release": "npx standard-version", diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 00000000..5d86c3c2 --- /dev/null +++ b/src/index.ts @@ -0,0 +1,6 @@ +export * from "./build" +export * from "./git" +export * from "./package" +export * from "./runner" +export * from "./workspace" +export * from "./workspace.providers"