Comments (4)
Hello, I'm trying to invistegate this featuer, maybe i can work on it. We need to see if the X 'deno execute X' is not a script by checking if it not has any endings with '.ts || .js' I will print a message to inform 'the X it was task not script' and then run 'deno task X', but from where it would search on task? I believe it should exist deno.json to specify the tasks.
do you have some behavior or expected logic of it task?
from deno.
@ry
Can we modify the Custom Error in deno_core to return 'class' attribute that will help determine script not found? Then, if it is 'not found' and the flag it 'run', it will map it to task.
[cli\main.rs:347:7] &err = CustomError {
class: "NotFound",
message: "Module not found "file:///D:/yad/deno/task/start".",
}
?
Please let me know whether I can use this solution or tell me what to expect.
from deno.
We need to see if the X 'deno execute X' is not a script by checking if it not has any endings with '.ts || .js'
This method is flawed. A file doesn't need an extension or could have a different extension and still be valid JavaScript/TypeScript code.
then run 'deno task X', but from where it would search on task? I believe it should exist deno.json to specify the tasks.
Either deno.json or deno.jsonc
from deno.
We need to see if the X 'deno execute X' is not a script by checking if it not has any endings with '.ts || .js'
This method is flawed. A file doesn't need an extension or could have a different extension and still be valid JavaScript/TypeScript code.
then run 'deno task X', but from where it would search on task? I believe it should exist deno.json to specify the tasks.
Either deno.json or deno.jsonc
@BlackAsLight
Hello, sure, I checked it yesterday and I know we can't use that method.
so,Can we modify the Custom Error in deno_core to return 'class' attribute that will help determine script not found? Then, if it is 'not found' and the flag it 'run', it will map it to task.
[cli\main.rs:347:7] &err = CustomError {
class: "NotFound",
message: "Module not found "file:///D:/yad/deno/task/start".",
}
?
Please let me know whether I can use this solution or tell me what to expect.
from deno.
Related Issues (20)
- thread 'tokio-runtime-worker' has overflowed its stack HOT 8
- Subscription to an empty stream with the watch([]) method often causes a panic
- Incompatible dynamic import in npm:* commonjs context HOT 2
- Deno cache database errors when on a shared drive HOT 1
- Add comments for documentation to types that don't have them
- deno coverage: exclude comment HOT 1
- suggestion: add `Deno.lutimes[Sync]()`
- bug: shebang line causes module docs to be omitted HOT 1
- bug: script within workspace throws on last inter-workspace import
- React helmet async breaking in 1.44.3 HOT 6
- Bug: TS "Infer return type" inserts file specifier HOT 1
- 💡 Can executing 'Deno. cwd()' in the worker return an independent directory? HOT 2
- bug: panic from invalid `host` values for `net` permission HOT 2
- Deno runtime stuck in endless loop while running `Array.prototype[0]=0;` HOT 1
- Issue from 1.43 to 1.44: expected error to be instance of "NotFound", but was "PermissionDenied" HOT 3
- workflow is failing with Deno HOT 5
- Cargo install deno locked warns about yanked crates HOT 1
- AsyncLocalStorage behaves differently from node
- Deno task "sh -c" doesn't pass args to command HOT 1
- A better way to handle __$f undefined HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deno.