Skip to content

Commit 8e11066

Browse files
committed
Move index.d.ts type def out of src/ directory
The source directory is excluded from the final build output, so we'll move it into a separate place so that generated .d.ts files can reference it.
1 parent e2c041d commit 8e11066

File tree

8 files changed

+6
-10
lines changed

8 files changed

+6
-10
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"types": "lib-esm/index.d.ts",
88
"author": "Lee Richmond",
99
"license": "MIT",
10+
"homepage": "https://github.com/jsonapi-suite/jsorm",
1011
"scripts": {
1112
"clean": "shx rm -rf _bundles lib lib-esm",
1213
"build": "shx cp es-shims/* src/util/ && npm run clean && tsc && tsc -m es6 --outDir lib-esm && webpack && shx cp node-shims/* src/util/ ",

src/configuration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/// <reference path="./index.d.ts" />
1+
/// <reference path="../types/index.d.ts" />
22

33
import Model from './model';
44
import Attribute from './attribute';

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/// <reference path="./index.d.ts" />
1+
/// <reference path="../types/index.d.ts" />
22

33
import * as es6Promise from 'es6-promise';
44
es6Promise.polyfill();

src/model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/// <reference path="./index.d.ts" />
1+
/// <reference path="../types/index.d.ts" />
22

33
import Scope from './scope';
44
import Config from './configuration';

src/util/deserialize.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/// <reference path="../index.d.ts" />
1+
/// <reference path="../../types/index.d.ts" />
22

33
import Config from '../configuration';
44
import Model from '../model';

src/util/extend.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/// <reference path="../index.d.ts" />
1+
/// <reference path="../../types/index.d.ts" />
22
// use for non-typescript extends
33

44
let globalObj;
File renamed without changes.

typings.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)