Skip to content

Commit

Permalink
chore: lib -> dist
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Nov 28, 2019
1 parent 2ac5b1a commit 6a7cb41
Show file tree
Hide file tree
Showing 14 changed files with 24 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ coverage/**

# project glob
**/node_modules/**
**/lib/**
**/dist/**
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,4 @@ typings/

# project ignore files
.vscode/
packages/*/lib/
packages/*/dist/
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ coverage/**

# project glob
**/node_modules/**
**/lib/**
**/dist/**

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"@self/prettier-config": "npm:@fisker/prettier-config@1.0.22",
"ava": "2.4.0",
"cz-conventional-changelog-emoji": "0.1.0",
"del-cli": "3.0.0",
"eslint": "6.7.1",
"esm": "3.2.25",
"husky": "3.1.0",
Expand All @@ -58,7 +59,6 @@
"prettier": "1.19.1",
"prettier-format": "1.0.1",
"prettier-package-json": "2.1.0",
"rimraf": "3.0.0",
"rollup": "1.27.5",
"write-prettier-file": "1.2.2"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/husky-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
"url": "https://github.com/fisker/shared-configs/issues"
},
"version": "1.1.3",
"main": "lib/index.js",
"main": "dist/index.js",
"files": [
"lib"
"dist"
],
"scripts": {
"build": "run-p build:*",
"build:js": "rollup --config",
"clean": "rimraf lib",
"clean": "del-cli dist",
"dev": "rollup --config --watch",
"test": "run-p test:*",
"test:js": "ava --verbose"
Expand Down
2 changes: 1 addition & 1 deletion packages/husky-config/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export default [
{
input: './src/index.js',
output: {
file: './lib/index.js',
file: './dist/index.js',
format: 'cjs',
},
},
Expand Down
6 changes: 3 additions & 3 deletions packages/lint-staged-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
"url": "https://github.com/fisker/shared-configs/issues"
},
"version": "1.0.6",
"main": "lib/index.js",
"main": "dist/index.js",
"files": [
"lib"
"dist"
],
"scripts": {
"build": "run-p build:*",
"build:js": "rollup --config",
"clean": "rimraf lib",
"clean": "del-cli dist",
"dev": "rollup --config --watch",
"test": "run-p test:*",
"test:js": "echo \"no test yet\""
Expand Down
2 changes: 1 addition & 1 deletion packages/lint-staged-config/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export default [
{
input: './src/index.js',
output: {
file: './lib/index.js',
file: './dist/index.js',
format: 'cjs',
},
},
Expand Down
1 change: 1 addition & 0 deletions packages/lint-staged-config/src/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ export const PRETTIER = 'prettier --write'
export const ESLINT = 'eslint --fix'
export const STYLELINT = 'stylelint --fix'
export const MARKDOWNLINT = 'markdownlint --fix'
export const SORT_PACKAGE_JSON = 'sort-package-json'
export const GIT_ADD = 'git add'
6 changes: 4 additions & 2 deletions packages/lint-staged-config/src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {GIT_ADD} from './commands'
import {GIT_ADD, SORT_PACKAGE_JSON} from './commands'
// eslint-disable-next-line unicorn/import-index
import * as languages from './languages/index'
import mergeCommands from './utils/merge-commands'
Expand All @@ -10,5 +10,7 @@ module.exports = mergeCommands(parseCommands(languages)).reduce(
...config,
[extensionsToGlob(extensions)]: [...commands, GIT_ADD],
}),
{}
{
'package.json': [SORT_PACKAGE_JSON, GIT_ADD],
}
)
4 changes: 2 additions & 2 deletions packages/postcss-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"url": "https://github.com/fisker/shared-configs/issues"
},
"version": "1.1.2",
"main": "lib/index.js",
"main": "dist/index.js",
"files": [
"lib"
"dist"
],
"scripts": {
"build": "rollup --config",
Expand Down
2 changes: 1 addition & 1 deletion packages/postcss-config/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export default [
{
input: './src/index.js',
output: {
file: './lib/index.js',
file: './dist/index.js',
format: 'cjs',
},
},
Expand Down
6 changes: 3 additions & 3 deletions packages/prettier-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
"url": "https://github.com/fisker/shared-configs/issues"
},
"version": "1.0.22",
"main": "lib/index.js",
"main": "dist/index.js",
"files": [
"lib"
"dist"
],
"scripts": {
"build": "run-s build:js build:docs",
"build:docs": "node -r esm ./scripts/generate-options.js",
"build:js": "rollup --config",
"clean": "rimraf lib",
"clean": "del-cli dist",
"dev": "rollup --config --watch",
"test": "run-p test:*",
"test:js": "ava"
Expand Down
2 changes: 1 addition & 1 deletion packages/prettier-config/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export default [
{
input: './src/index.js',
output: {
file: './lib/index.js',
file: './dist/index.js',
format: 'cjs',
},
},
Expand Down

0 comments on commit 6a7cb41

Please sign in to comment.