Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: port load to typescript #786

Merged
merged 19 commits into from
Feb 3, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
refactor: port load to typescript [wip]
  • Loading branch information
byCedric committed Jul 27, 2019
commit 04fa0b207f70247ef09eb31b2c4ca1d2e09cbc59
39 changes: 7 additions & 32 deletions @commitlint/load/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,13 @@
"version": "8.1.0",
"description": "Load shared commitlint configuration",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"files": [
"lib/"
],
"scripts": {
"build": "cross-env NODE_ENV=production babel src --out-dir lib --source-maps",
"deps": "dep-check",
"pkg": "pkg-check --skip-import",
"start": "concurrently \"ava -c 4 --verbose --watch\" \"yarn run watch\"",
"test": "ava -c 4 --verbose && ava \"src/*.serial-test.js\" --verbose",
"watch": "babel src --out-dir lib --watch --source-maps"
},
"ava": {
"files": [
"src/**/*.test.js",
"!lib/**/*"
],
"source": [
"src/**/*.js",
"!lib/**/*"
],
"babel": "inherit",
"require": [
"babel-register"
]
},
"babel": {
"presets": [
"babel-preset-commitlint"
]
"pkg": "pkg-check --skip-import"
},
"engines": {
"node": ">=4"
Expand All @@ -58,19 +36,16 @@
"devDependencies": {
"@commitlint/test": "8.0.0",
"@commitlint/utils": "^8.1.0",
"ava": "0.22.0",
"babel-cli": "6.26.0",
"babel-preset-commitlint": "^8.0.0",
"babel-register": "6.26.0",
"concurrently": "3.6.1",
"cross-env": "5.1.1",
"@types/cosmiconfig": "5.0.3",
"@types/lodash": "4.14.136",
"execa": "0.11.0",
"globby": "10.0.1"
"globby": "10.0.1",
"proxyquire": "2.1.1",
"typescript": "3.5.3"
},
"dependencies": {
"@commitlint/execute-rule": "^8.1.0",
"@commitlint/resolve-extends": "^8.1.0",
"babel-runtime": "^6.23.0",
"chalk": "2.4.2",
"cosmiconfig": "^5.2.0",
"lodash": "4.17.14",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {fix} from '@commitlint/test';
import test from 'ava';

const {fix} = require('@commitlint/test');

import load from '.';

test.serial('default cwd option to process.cwd()', async t => {
Expand Down
Loading