mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-27 17:39:10 -06:00
* chore: Add dtslint and Cypress static types * chore: Fix types location for cli build * chore: Removed api from api command paths * chore: Remove semicolons from type definitions * chore: Removed semicolons not caught by tslint * chore: Add type tests
18 lines
479 B
JavaScript
Executable File
18 lines
479 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
const shell = require('shelljs')
|
|
|
|
shell.set('-v') // verbose
|
|
shell.set('-e') // any error is fatal
|
|
|
|
shell.rm('-rf', 'build')
|
|
shell.mkdir('-p', 'build/bin')
|
|
shell.mkdir('-p', 'build/types')
|
|
shell.cp('bin/cypress', 'build/bin/cypress')
|
|
shell.cp('NPM_README.md', 'build/README.md')
|
|
shell.cp('.release.json', 'build/.release.json')
|
|
shell.cp('-R', 'types/*.ts', 'build/types/')
|
|
|
|
shell.exec('babel lib -d build/lib')
|
|
shell.exec('babel index.js -o build/index.js')
|