Skip to content

Commit 63a6c6a

Browse files
committed
refactor: rename lib/ to dist/
1 parent 6b90cdb commit 63a6c6a

8 files changed

Lines changed: 12 additions & 12 deletions

File tree

.eslintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
/lib
1+
/dist
22
/example
33
/test/**/*.d.ts

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ example/bundle.js
66
example/bundle.css
77
*.swp
88
*.swo
9-
lib/
9+
dist/
1010
coverage/
1111
*.tsbuildinfo

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.git/
22
node_modules/
3-
lib/
3+
dist/
44
__snapshots__/
55
coverage/
66
*.css.d.ts

bin/tcm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env node
22

3-
const { main } = require('../lib/cli');
3+
const { main } = require('../dist/cli');
44

55
main().catch(console.error);

example/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"description": "",
55
"main": "app.js",
66
"scripts": {
7-
"tcm": "node ../lib/cli.js -e -p style01.css",
8-
"tcmw": "node ../lib/cli.js -e -w -p style01.css",
7+
"tcm": "node ../dist/cli.js -e -p style01.css",
8+
"tcmw": "node ../dist/cli.js -e -w -p style01.css",
99
"compile": "pnpm run tcm && ./node_modules/.bin/tsc -p .",
1010
"bundle": "pnpm run compile && ./node_modules/.bin/browserify -o bundle.js -p [ css-modulesify -o bundle.css ] app.js",
1111
"start": "pnpm run bundle && node bundle.js"

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const config = {
66
'^.+\\.ts$': 'ts-jest',
77
},
88
testRegex: '(test/.*|(src/.*\\.test))\\.ts$',
9-
testPathIgnorePatterns: ['/node_modules/', '\\.d\\.ts$', 'lib/', 'example/', 'coverage/'],
9+
testPathIgnorePatterns: ['/node_modules/', '\\.d\\.ts$', 'dist/', 'example/', 'coverage/'],
1010
watchPathIgnorePatterns: ['\\.d\\.ts$'],
1111
moduleFileExtensions: ['js', 'ts', 'json'],
1212
globals: {

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"name": "checkable-css-modules",
33
"version": "0.7.0",
44
"description": "Creates .d.ts files from CSS Modules .css files",
5-
"main": "lib/index.js",
6-
"types": "lib/index.d.ts",
5+
"main": "dist/index.js",
6+
"types": "dist/index.d.ts",
77
"scripts": {
88
"build": "tsc -p tsconfig.src.json",
99
"lint": "run-s -c lint:*",
@@ -28,7 +28,7 @@
2828
"files": [
2929
"bin",
3030
"src",
31-
"lib"
31+
"dist"
3232
],
3333
"author": "mizdra",
3434
"license": "MIT",

tsconfig.src.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"include": ["src/**/*"],
44
"exclude": ["node_modules"],
55
"compilerOptions": {
6-
"outDir": "lib",
7-
"rootDir": "src", // To avoid inadvertently changing the directory structure under lib/.
6+
"outDir": "dist",
7+
"rootDir": "src", // To avoid inadvertently changing the directory structure under dist/.
88
// Compatible for Node.js v12 (ref: https://github.com/microsoft/TypeScript/wiki/Node-Target-Mapping)
99
"target": "ES2019",
1010
"lib": ["ES2019"],

0 commit comments

Comments
 (0)