Skip to content
This repository has been archived by the owner on Mar 9, 2019. It is now read-only.

Commit

Permalink
Use @wyze/rio for build process
Browse files Browse the repository at this point in the history
  • Loading branch information
wyze committed Aug 27, 2018
1 parent d9782bf commit 1a6a412
Show file tree
Hide file tree
Showing 7 changed files with 353 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -2,7 +2,7 @@
node_modules

# Build
lib
bin/index.js

# Logs
*.log
Expand Down
2 changes: 0 additions & 2 deletions bin/index.js

This file was deleted.

1 change: 1 addition & 0 deletions bin/src/index.ts
@@ -0,0 +1 @@
import '../../src'
19 changes: 12 additions & 7 deletions package.json
Expand Up @@ -11,16 +11,16 @@
},
"bin": "bin/index.js",
"scripts": {
"build": "tsc",
"clean": "rimraf lib",
"prebuild": "npm run clean",
"preversion": "npm run build",
"build": "rio -o bin/index.js -b '#!/usr/bin/env node' bin/src/index.ts",
"clean": "rimraf bin/index.js",
"postbuild": "shx chmod a+x bin/index.js",
"prebuild": "yarn clean",
"preversion": "yarn build",
"test": "jest",
"version": "node lib"
"version": "node bin"
},
"files": [
"bin",
"lib"
"bin/index.js"
],
"keywords": [
"generate",
Expand All @@ -34,11 +34,16 @@
"devDependencies": {
"@types/jest": "^23.3.1",
"@types/node": "^10.9.2",
"@wyze/rio": "^1.0.0",
"jest": "^23.5.0",
"rimraf": "^2.6.2",
"shx": "^0.3.2",
"ts-jest": "^23.1.4",
"typescript": "^3.0.1"
},
"engines": {
"node": ">=8"
},
"jest": {
"moduleFileExtensions": [
"js",
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
@@ -1,6 +1,6 @@
import { readFileSync, writeFileSync } from 'fs'
import * as execa from 'execa'
import * as readPkg from 'read-pkg'
import execa from 'execa'
import readPkg from 'read-pkg'

/**
* Read package.json and return git url and version.
Expand Down
3 changes: 1 addition & 2 deletions tsconfig.json
@@ -1,15 +1,14 @@
{
"compilerOptions": {
"esModuleInterop": true,
"lib": [
"es2015.core",
"es2015.promise",
"es5"
],
"module": "commonjs",
"moduleResolution": "node",
"outDir": "lib",
"strict": true,
"target": "es5"
},
"files": [
"src/index.d.ts",
Expand Down

0 comments on commit 1a6a412

Please sign in to comment.