uber-web / uber-codemods Goto Github PK
View Code? Open in Web Editor NEWBecause Code Changes and Evolves
License: MIT License
Because Code Changes and Evolves
License: MIT License
When calling replace-require()
for thing
-> replaceme
on require('thing/sub')
, it should create require('replaceme/sub')
. Instead, it creates require('thing/sub')
.
It's understood that this comes from an assumption about the data-type of an underlying literal. Assuming it's a string
when it's not, there are string operations which are called on the data type. Should be fixable with an additional filter
.
ERR /var/folders/tv/fdtq5cgn6zq4bj1_lzvrhl7h0000gn/T/3848786987-<module-name>-<version>/package/test/tasks/version-assets.js Transformation error
Error: {value: [object Object], parentPath: [object Object], name: init, __childCache: null} does not match type Printable
at Type.Tp.assert (/Users/dawsonbotsford/.config/yarn/global/node_modules/jscodeshift/node_modules/ast-types/lib/types.js:60:19)
at genericPrintNoParens (/Users/dawsonbotsford/.config/yarn/global/node_modules/jscodeshift/node_modules/recast/lib/printer.js:219:26)
at genericPrint (/Users/dawsonbotsford/.config/yarn/global/node_modules/jscodeshift/node_modules/recast/lib/printer.js:164:9)
at printRootGenerically (/Users/dawsonbotsford/.config/yarn/global/node_modules/jscodeshift/node_modules/recast/lib/printer.js:105:15)
at maybeReprint (/Users/dawsonbotsford/.config/yarn/global/node_modules/jscodeshift/node_modules/recast/lib/printer.js:97:16)
at print (/Users/dawsonbotsford/.config/yarn/global/node_modules/jscodeshift/node_modules/recast/lib/printer.js:75:29)
at exports.printComments (/Users/dawsonbotsford/.config/yarn/global/node_modules/jscodeshift/node_modules/recast/lib/comments.js:324:22)
at printWithComments (/Users/dawsonbotsford/.config/yarn/global/node_modules/jscodeshift/node_modules/recast/lib/printer.js:61:16)
at FastPath.call (/Users/dawsonbotsford/.config/yarn/global/node_modules/jscodeshift/node_modules/recast/lib/fast-path.js:113:18)
at genericPrintNoParens (/Users/dawsonbotsford/.config/yarn/global/node_modules/jscodeshift/node_modules/recast/lib/printer.js:867:18)
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.