Skip to content
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

change FileInfo to interface #739

Closed
wants to merge 4 commits into from
Closed

change FileInfo to interface #739

wants to merge 4 commits into from

Conversation

ztplz
Copy link
Contributor

@ztplz ztplz commented Sep 13, 2018

No description provided.

@ztplz
Copy link
Contributor Author

ztplz commented Sep 13, 2018

#732

Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks! Just one comment...

js/stat.ts Outdated
isSymlink(): boolean;
}

class DenoFileInfo implements FileInfo {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Call it FileInfoImpl please

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ry It is ok.

Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - thanks 👍

@ztplz
Copy link
Contributor Author

ztplz commented Sep 13, 2018

@ry I build success in my travis and appveyor, but I don't know why failed there.

Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ztplz I'm not sure what it is but @piscisaureus confirmed that there is indeed an error on Windows - it's not just the CI.

For reference the error is:

[3/21] ACTION //:bundle(//build/toolchain/win:win_clang_x64)
FAILED: gen/bundle/main.js gen/bundle/main.js.map 
c:/Python27-x64/python.exe ../../tools/run_node.py ./node_modules/rollup/bin/rollup -c ../../rollup.config.js -i ../../js/main.ts -o gen/bundle/main.js --sourcemapFile C:/deno --silent --environment BASEPATH:../..
[!] Error: 'FileInfo' is not exported by ..\..\js\stat.ts
https://github.com/rollup/rollup/wiki/Troubleshooting#name-is-not-exported-by-module
..\..\js\deno.ts (10:9)
 8: export { readFileSync, readFile } from "./read_file";
 9: export { renameSync, rename } from "./rename";
10: export { FileInfo, statSync, lstatSync, stat, lstat } from "./stat";
             ^
11: export { writeFileSync, writeFile } from "./write_file";
12: export { ErrorKind, DenoError } from "./errors";
ninja: build stopped: subcommand failed.

@ztplz ztplz closed this Sep 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants