dsherret / barrel-maintainer Goto Github PK
View Code? Open in Web Editor NEWAutomated real-time maintenance of barrels in JavaScript and TypeScript.
License: MIT License
Automated real-time maintenance of barrels in JavaScript and TypeScript.
License: MIT License
So sad.
Easy workaround is to restart the watcher.
When I switch my branch I will occasionally get this error:
C:\Users\david\AppData\Roaming\npm\node_modules\barrel-maintainer\node_modules\ts-simple-ast\dist\factories\CompilerFactory.js:151
throw new errors.InvalidOperationError("A source file already exists at the provided file path: " + filePath);
^
Error: A source file already exists at the provided file path: V:/ts-simple-ast/src/utils/tsconfig/index.ts
at InvalidOperationError.BaseError [as constructor] (C:\Users\david\AppData\Roaming\npm\node_modules\barrel-maintainer\node_modules\ts-simple-ast\dist\errors\BaseError.js:16:28)
at new InvalidOperationError (C:\Users\david\AppData\Roaming\npm\node_modules\barrel-maintainer\node_modules\ts-simple-ast\dist\errors\InvalidOperationError.js:17:28)
at CompilerFactory.createSourceFileFromText (C:\Users\david\AppData\Roaming\npm\node_modules\barrel-maintainer\node_modules\ts-simple-ast\dist\factories\CompilerFactory.js:151:19)
at CompilerFactory.createSourceFile (C:\Users\david\AppData\Roaming\npm\node_modules\barrel-maintainer\node_modules\ts-simple-ast\dist\factories\CompilerFactory.js:136:25)
at Directory.createSourceFile (C:\Users\david\AppData\Roaming\npm\node_modules\barrel-maintainer\node_modules\ts-simple-ast\dist\fileSystem\Directory.js:339:44)
at Maintainer.updateDirInternal (C:\Users\david\AppData\Roaming\npm\node_modules\barrel-maintainer\dist\Maintainer.js:38:30)
at C:\Users\david\AppData\Roaming\npm\node_modules\barrel-maintainer\dist\Maintainer.js:30:85
at Array.filter (<anonymous>)
at Maintainer.updateDirInternal (C:\Users\david\AppData\Roaming\npm\node_modules\barrel-maintainer\dist\Maintainer.js:30:50)
at Maintainer.updateDir (C:\Users\david\AppData\Roaming\npm\node_modules\barrel-maintainer\dist\Maintainer.js:17:22)
The readme.md
indicates that the argument order for barrel-maintainer
is barrel-maintainer [options] [path]
. However, I have found that both at the command line and when invoked from a package.json
npm script, [path]
is ignored in favor of the working directory unless specified before [options]
Basically what the title says, when invoking the tool (either after installing it globally or in the project itself) it crashes with the error message env: node\r: No such file or directory
.
Any idea how I can help to find the cause?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.