Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: weiran-zsd/dts-cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.9.0
Choose a base ref
...
head repository: weiran-zsd/dts-cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.9.1
Choose a head ref
  • 4 commits
  • 4 files changed
  • 2 contributors

Commits on Aug 28, 2019

  1. Copy the full SHA
    c6d2ef3 View commit details

Commits on Sep 2, 2019

  1. Fix lint command usage by husky and required files (#189)

    - Fixes the husky pre-commit hook not using the `tsdx lint` command
    - Fixes `tsdx lint` without any input files failing with a help message instead of silently appearing to succeed.
    
    Related to #7
    bbugh authored and jaredpalmer committed Sep 2, 2019
    Copy the full SHA
    8197e0f View commit details

Commits on Sep 3, 2019

  1. Copy the full SHA
    790e781 View commit details
  2. v0.9.1

    jaredpalmer committed Sep 3, 2019
    Copy the full SHA
    5869141 View commit details
Showing with 13 additions and 14 deletions.
  1. +2 −1 .gitignore
  2. +1 −1 package.json
  3. +1 −1 src/babelPluginTsdx.ts
  4. +9 −11 src/index.ts
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -5,4 +5,5 @@ node_modules
.rts2_cache_esm
.rts2_cache_umd
dist
tester
tester
tester-react
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tsdx",
"version": "0.9.0",
"version": "0.9.1",
"author": "Jared Palmer <jared@palmer.net>",
"description": "Zero-config TypeScript package development",
"license": "MIT",
2 changes: 1 addition & 1 deletion src/babelPluginTsdx.ts
Original file line number Diff line number Diff line change
@@ -69,7 +69,7 @@ export const babelPluginTsdx = babelPlugin.custom((babelCore: any) => ({
// },
{ name: 'babel-plugin-annotate-pure-calls' },
{ name: 'babel-plugin-dev-expression' },
{
customOptions.format !== 'cjs' && {
name: 'babel-plugin-transform-rename-import',
replacements,
},
20 changes: 9 additions & 11 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -254,7 +254,7 @@ prog
peerDependencies: template === 'react' ? { react: '>=16' } : {},
husky: {
hooks: {
'pre-commit': 'pretty-quick --staged',
'pre-commit': 'tsdx lint',
},
},
prettier: {
@@ -273,15 +273,7 @@ prog
process.exit(1);
}

let deps = [
'@types/jest',
'husky',
'pretty-quick',
'prettier',
'tsdx',
'tslib',
'typescript',
].sort();
let deps = ['@types/jest', 'husky', 'tsdx', 'tslib', 'typescript'].sort();

if (template === 'react') {
deps = [
@@ -493,14 +485,20 @@ prog
.option('--ignore-pattern', 'Ignore a pattern')
.example('lint src test --ignore-pattern test/foobar.ts')
.option('--write-file', 'Write the config file locally')
.example('lint src test --write-file')
.example('lint --write-file')
.action(
async (opts: {
fix: boolean;
'ignore-pattern': string;
'write-file': boolean;
_: string[];
}) => {
if (opts['_'].length === 0) {
prog.help('lint');
console.log(chalk.red('No input files specified.'));
process.exit(1);
}

const cli = new CLIEngine({
baseConfig: {
...createEslintConfig({