Skip to content

fix: Don't mix generated declaration files with ts source files. #91

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

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
node_modules
tmp
lib
*.js
*.d.ts
!types/
!types/
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
"main": "lib/index.js",
"types": "lib/index.d.ts",
"files": [
"lib"
"lib",
"src"
],
"scripts": {
"test": "npm run test:js",
"test": "yarn run test:js",
"test:js": "mocha tests/*-test.js",
"test:js:debug": "mocha debug tests/*-test.js",
"build": "tsc",
Expand All @@ -20,7 +21,6 @@
"author": "Stefan Penner, David J. Hamilton, Chad Hietala",
"license": "MIT",
"dependencies": {
"@types/symlink-or-copy": "^1.2.0",
"heimdalljs-logger": "^0.1.7",
"object-assign": "^4.1.0",
"path-posix": "^1.0.0",
Expand All @@ -31,6 +31,7 @@
"@types/fs-extra": "^5.0.4",
"@types/mocha": "^5.2.5",
"@types/node": "^10.12.21",
"@types/symlink-or-copy": "^1.2.0",
"chai": "^3.3.0",
"fs-extra": "^1.0.0",
"mocha": "^2.3.3",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/entry-test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs = require('fs-extra');
import chai = require('chai');
import Entry from '../lib/entry';
import Entry from '../src/entry';

const { expect } = chai;
const FIXTURE_DIR = 'fixture';
Expand Down
4 changes: 2 additions & 2 deletions tests/fs-tree-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import fs = require('fs-extra');
import path = require('path');
import chai = require('chai');
import walkSync = require('walk-sync');
import FSTree = require('../lib/index');
import Entry from '../lib/entry';
import FSTree = require('../src/index');
import Entry from '../src/entry';

const { expect } = chai;
const context = describe;
Expand Down
4 changes: 2 additions & 2 deletions tests/util-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import {
basename,
computeImpliedEntries,
sortAndExpand
} from '../lib/util';
import Entry from '../lib/entry';
} from '../src/util';
import Entry from '../src/entry';

const { expect } = chai;

Expand Down
19 changes: 19 additions & 0 deletions tsconfig.publish.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"compilerOptions": {
"composite": true,
"rootDir": "src",
"outDir": "lib",
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"strict": true,
"moduleResolution": "node",
"module": "commonjs",
"target": "es5",
"paths": {
"*": ["types/*"]
},
"baseUrl": "."
},
"include": ["src"]
}
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,9 @@ type-detect@^1.0.0:
resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-1.0.0.tgz#762217cc06db258ec48908a1298e8b95121e8ea2"

typescript@^3.3.3:
version "3.3.3"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.3.3.tgz#f1657fc7daa27e1a8930758ace9ae8da31403221"
integrity sha512-Y21Xqe54TBVp+VDSNbuDYdGw0BpoR/Q6wo/+35M8PAU0vipahnyduJWirxxdxjsAkS7hue53x2zp8gz7F05u0A==
version "3.4.5"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.4.5.tgz#2d2618d10bb566572b8d7aad5180d84257d70a99"
integrity sha512-YycBxUb49UUhdNMU5aJ7z5Ej2XGmaIBL0x34vZ82fn3hGvD+bgrMrVDpatgz2f7YxUMJxMkbWxJZeAvDxVe7Vw==

walk-sync@^0.3.1:
version "0.3.4"
Expand Down