Skip to content

Commit 90b0c92

Browse files
committed
updated readme
1 parent e052b7d commit 90b0c92

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,18 @@ Scalable JavaScript development with types, classes and modules.
3636

3737
## Usage
3838

39-
tsc --module commonjs hello.ts
39+
tsc --module commonjs index.ts
4040
or:
4141

42-
tsc --module amd hello.ts
42+
tsc --module amd index.ts
4343

4444
The `--module` flag is required when using DCI because some features are achieved at runtime, so the `typescript-dci/dci` module
4545
needs to be available to every DCI program. For server-side or desktop programs, use `commonjs` and it should work out of the box.
4646

4747
To generate client-side code that will run in the browser, use `amd` to compile your project into [AMD](http://requirejs.org/docs/whyamd.html)
4848
modules. You will also need to ensure that your project has access to the `typescript-dci/dci` module. To do this, copy the
49-
file `typescript-dci/dci/dci-amd.js` to your project directory and rename it to `dci.js`. In the future this process will be
50-
simplified.
49+
file `typescript-dci/dci/dci-amd.js` to your project as `typescript-dci/dci.js` (relative to
50+
the root directory of your project). In the future this process will be simplified.
5151

5252
In order to run the client-side code you will need an AMD loader. Some good AMD loaders include:
5353

0 commit comments

Comments
 (0)