Skip to content

Commit

Permalink
Simplify release script
Browse files Browse the repository at this point in the history
  • Loading branch information
nebrelbug committed Sep 12, 2020
1 parent 4a2cf0c commit 28edaf0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"format": "prettier --write '{src,test}/**/!(*.deno).ts' && deno fmt deno_dist/*.ts",
"lint": "eslint src/*.ts test/*.spec.ts examples/* --ext .js,.ts",
"prebuild": "rimraf dist && rimraf deno_dist",
"release": "npm run build && ts-node tools/release",
"release": "ts-node tools/release",
"report-coverage": "cat ./coverage/lcov.info | coveralls",
"size": "size-limit",
"start": "rollup -c rollup.config.ts -w",
Expand Down
5 changes: 2 additions & 3 deletions tools/release.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
const { exec, echo } = require('shelljs')
const { readFileSync } = require('fs')
const url = require('url')
const child_process = require('child_process')

const branchToReleaseFrom = 'master'
Expand All @@ -26,7 +24,8 @@ try {
exec('git branch release')
exec('git checkout release')

// Now we add the dist/ and deno_dist/ directories
// Now we build, and add the dist/ and deno_dist/ directories
exec('npm run build')
exec('git add --force dist deno_dist')
exec('git commit -m "Build distrubution files"')

Expand Down

0 comments on commit 28edaf0

Please sign in to comment.