Skip to content

Commit

Permalink
Merge pull request #39 from syumai/update-test
Browse files Browse the repository at this point in the history
Fix alias command
  • Loading branch information
syumai committed Jun 27, 2020
2 parents c60350d + 9144769 commit 66f8ee9
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 18 deletions.
7 changes: 0 additions & 7 deletions .prettierrc

This file was deleted.

8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ test/cmd:
echo "import './vendor/welcome.ts'" > tmp/welcome/mod.ts
cd tmp/welcome && \
dem-local init && \
dem-local add https://deno.land/std@v0.35.0 && \
dem-local add https://deno.land/std@v0.59.0 && \
dem-local alias https://deno.land/std/examples/welcome.ts welcome.ts && \
dem-local ensure && \
dem-local prune
deno run -c ./tsconfig.json tmp/welcome/mod.ts | grep -q 'Welcome to Deno'
deno run -r -c ./tsconfig.json tmp/welcome/mod.ts | grep -q 'Welcome to Deno'

# test unlink / link
rm tmp/welcome/mod.ts
Expand All @@ -31,9 +31,9 @@ test/cmd:
dem-local unalias welcome.ts && \
dem-local unlink https://deno.land/std/examples/welcome.ts && \
dem-local remove https://deno.land/std && \
dem-local add https://deno.land/std@v0.35.0 && \
dem-local add https://deno.land/std@v0.59.0 && \
dem-local link https://deno.land/std/examples/welcome.ts
deno run -c ./tsconfig.json tmp/welcome/mod.ts | grep -q 'Welcome to Deno'
deno run -r -c ./tsconfig.json tmp/welcome/mod.ts | grep -q 'Welcome to Deno'

rm -rf tmp/welcome

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import { serve } from "./vendor/https/deno.land/std/http/server.ts";
## Install

```sh
deno install --allow-read --allow-write --allow-net -f -n dem https://deno.land/x/[email protected].2/cmd.ts
deno install --allow-read --allow-write --allow-net -f -n dem https://deno.land/x/[email protected].3/cmd.ts
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion dem.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"protocol": "https",
"path": "deno.land/std",
"version": "0.54.0",
"version": "0.59.0",
"files": [
"/fmt/printf.ts",
"/http/server.ts",
Expand Down
2 changes: 1 addition & 1 deletion repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export class StorageRepository {
vendorDirectoryPath,
aliasDirectoryPath,
);
const aliasTargetPath = `./${moduleProtocol}/${modulePath}/${filePath}`;
const aliasTargetPath = `./${moduleProtocol}/${modulePath}${filePath}`;
let script = sprintf('export * from "%s";\n', aliasTargetPath);
if (hasDefaultExport) {
script += sprintf('export { default } from "%s";\n', aliasTargetPath);
Expand Down
2 changes: 1 addition & 1 deletion vendor/https/deno.land/std/fmt/printf.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.54.0/fmt/printf.ts";
export * from "https://deno.land/std@0.59.0/fmt/printf.ts";
2 changes: 1 addition & 1 deletion vendor/https/deno.land/std/http/server.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.54.0/http/server.ts";
export * from "https://deno.land/std@0.59.0/http/server.ts";
2 changes: 1 addition & 1 deletion vendor/https/deno.land/std/path/mod.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.54.0/path/mod.ts";
export * from "https://deno.land/std@0.59.0/path/mod.ts";
2 changes: 1 addition & 1 deletion version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const version = "0.9.2";
export const version = "0.9.3";

0 comments on commit 66f8ee9

Please sign in to comment.