Skip to content

Commit 73d4b93

Browse files
committed
fix: Change path inside the npm package back to dist.
There was no real reason to change this and happened during the ts migration.
1 parent 8d97268 commit 73d4b93

File tree

8 files changed

+13
-13
lines changed

8 files changed

+13
-13
lines changed

.eslintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
benchmark/fixtures/
2-
lib/
2+
dist/
33
src/__tests__/fixtures/
44
website/node_modules
55
website/dist/

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/lib
1+
/dist
22
node_modules/
33
.idea/
44
coverage/

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
src/__tests__/fixtures/
22
benchmark/fixtures/
3-
lib/
3+
dist/

bin/__tests__/react-docgen-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// NOTE: This test spawns a subprocesses that load the files from lib/, not
1+
// NOTE: This test spawns a subprocesses that load the files from dist/, not
22
// src/. Before running this test run `npm run build` or `npm run watch`.
33

44
const TEST_TIMEOUT = 120000;

bin/react-docgen.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ argv.parse(process.argv);
5050
const async = require('neo-async');
5151
const dir = require('node-dir');
5252
const fs = require('fs');
53-
const parser = require('../lib/main');
53+
const parser = require('../dist/main');
5454
const path = require('path');
5555

5656
const output = argv.out;
@@ -73,7 +73,7 @@ if (
7373
if (argv.resolver) {
7474
try {
7575
// Look for built-in resolver
76-
resolver = require(`../lib/resolver/${argv.resolver}`).default;
76+
resolver = require(`../dist/resolver/${argv.resolver}`).default;
7777
} catch (error) {
7878
if (error.code !== 'MODULE_NOT_FOUND') {
7979
throw error;

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@
1414
},
1515
"browser": {
1616
"./src/importer/makeFsImporter.ts": "./src/importer/ignoreImports.ts",
17-
"./lib/importer/makeFsImporter.js": "./lib/importer/ignoreImports.js"
17+
"./dist/importer/makeFsImporter.js": "./dist/importer/ignoreImports.js"
1818
},
1919
"files": [
2020
"bin",
21-
"lib"
21+
"dist"
2222
],
2323
"engines": {
2424
"node": ">=12.0.0"
2525
},
26-
"main": "lib/main.js",
27-
"typings": "lib/main.d.ts",
26+
"main": "dist/main.js",
27+
"typings": "dist/main.d.ts",
2828
"scripts": {
29-
"build": "rimraf lib/ && yarn build:ts",
29+
"build": "rimraf dist/ && yarn build:ts",
3030
"build:ts": "tsc",
3131
"lint": "eslint . --ext .js,.ts --report-unused-disable-directives",
3232
"fix": "eslint . --ext .js,.ts --fix --report-unused-disable-directives",

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const defaultHandlers: Handler[] = [
2424
const defaultImporter: Importer = AllImporter.ignoreImports;
2525

2626
/**
27-
* See `lib/parse.js` for more information about the arguments. This function
27+
* See `parse.js` for more information about the arguments. This function
2828
* simply sets default values for convenience.
2929
*
3030
* The default resolver looks for *exported* `React.createClass(def)` calls

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"declaration": true,
55
"target": "ES2018",
66
"module": "commonjs",
7-
"outDir": "./lib",
7+
"outDir": "./dist",
88
"strict": true,
99
"strictNullChecks": true,
1010
"noImplicitThis": true,

0 commit comments

Comments
 (0)