Skip to content

Commit 79260b6

Browse files
refactor(index): Rename all module.ts files to index.ts
1 parent f7ac2bb commit 79260b6

18 files changed

+20
-16
lines changed

scripts/release.js

+4
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ if (!readlineSync.keyInYN('Did you push all changes back to origin?')) {
2020
process.exit(1);
2121
}
2222

23+
if (!readlineSync.keyInYN('Ready to publish?')) {
24+
process.exit(1);
25+
}
26+
2327
util.ensureCleanMaster('master');
2428
_exec(`npm publish`);
2529
_exec(`git tag ${version}`);

src/common/coreservices.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import {IInjectable, Obj} from "./common";
99

1010
let notImplemented = (fnname: string) => () => {
11-
throw new Error(`${fnname}(): No coreservices implementation for UI-Router is loaded. You should include one of: ['angular1.js']`);
11+
throw new Error(`${fnname}(): No coreservices implementation for UI-Router is loaded.`);
1212
};
1313

1414
let services: CoreServices = {
File renamed without changes.

src/index.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/** @coreapi @module common */ /** */
22

3-
export * from "./common/module";
4-
export * from "./params/module";
5-
export * from "./path/module";
6-
export * from "./resolve/module";
7-
export * from "./state/module";
8-
export * from "./transition/module";
9-
export * from "./url/module";
10-
export * from "./view/module";
3+
export * from "./common/index";
4+
export * from "./params/index";
5+
export * from "./path/index";
6+
export * from "./resolve/index";
7+
export * from "./state/index";
8+
export * from "./transition/index";
9+
export * from "./url/index";
10+
export * from "./view/index";
1111
export * from "./globals";
1212

1313
export * from "./router";
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/vanilla/$injector.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/** @internalapi @module vanilla */ /** */
22
import {
33
extend, assertPredicate, isFunction, isArray, isInjectable, $InjectorLike, IInjectable
4-
} from "../common/module";
4+
} from "../common/index";
55

66
// globally available injectables
77
let globals = {};

src/vanilla/$q.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** @internalapi @module vanilla */ /** */
2-
import { isArray, isObject, $QLike } from "../common/module";
2+
import { isArray, isObject, $QLike } from "../common/index";
33

44
/**
55
* An angular1-like promise api

src/vanilla/hashLocation.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** @internalapi @module vanilla */ /** */
2-
import { isDefined } from "../common/module";
2+
import { isDefined } from "../common/index";
33
import { LocationServices } from "../common/coreservices";
44
import { splitHash, splitQuery, trimHashVal, getParams, locationPluginFactory } from "./utils";
55
import { UIRouter } from "../router";

src/vanilla/interface.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/** @internalapi @module vanilla */ /** */
22
import { LocationConfig, LocationServices } from '../common/coreservices';
33
import { UIRouterPlugin } from "../interface";
4-
import { $InjectorLike, $QLike } from "../common/module";
4+
import { $InjectorLike, $QLike } from "../common/index";
55

66
export interface LocationPlugin extends UIRouterPlugin {
77
service: LocationServices;

src/vanilla/memoryLocation.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** @internalapi @module vanilla */ /** */
2-
import { isDefined } from "../common/module";
2+
import { isDefined } from "../common/index";
33
import { LocationConfig, LocationServices } from "../common/coreservices";
44
import { splitQuery, getParams, splitHash, locationPluginFactory } from "./utils";
55
import { removeFrom, unnestR, deregAll } from "../common/common";

src/vanilla/pushStateLocation.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** @internalapi @module vanilla */ /** */
2-
import { services, isDefined } from "../common/module";
2+
import { services, isDefined } from "../common/index";
33
import { LocationServices } from "../common/coreservices";
44
import { splitQuery, trimHashVal, getParams, locationPluginFactory } from "./utils";
55
import { LocationPlugin } from "./interface";

src/vanilla/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** @internalapi @module vanilla */ /** */
2-
import {isArray} from "../common/module";
2+
import {isArray} from "../common/index";
33
import { LocationServices, LocationConfig, services } from "../common/coreservices";
44
import { UIRouter } from "../router";
55
import { extend, bindFunctions } from "../common/common";
File renamed without changes.

0 commit comments

Comments
 (0)