@workday/canvas-kit-codemod 13.0.4 → 14.0.0-alpha.1123-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es6/v14/index.d.ts +4 -0
- package/dist/es6/v14/index.d.ts.map +1 -0
- package/dist/es6/v14/index.js +8 -0
- package/index.js +7 -0
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/v14/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AAEtC,QAAA,MAAM,SAAS,EAAE,SAMhB,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
const transform = (file, api, options) => {
|
|
2
|
+
// These will run in order. If your transform depends on others, place yours after dependent transforms
|
|
3
|
+
// const fixes = [
|
|
4
|
+
// // add codemods here
|
|
5
|
+
// ];
|
|
6
|
+
// return fixes.reduce((source, fix) => fix({...file, source}, api, options) as string, file.source);
|
|
7
|
+
};
|
|
8
|
+
export default transform;
|
package/index.js
CHANGED
|
@@ -88,6 +88,13 @@ const {
|
|
|
88
88
|
describe: chalk.gray('The path to execute the transform in (recursively).'),
|
|
89
89
|
});
|
|
90
90
|
})
|
|
91
|
+
.command('v14 [path]', chalk.gray('Canvas Kit v13 > v14 upgrade transform'), yargs => {
|
|
92
|
+
yargs.positional('path', {
|
|
93
|
+
type: 'string',
|
|
94
|
+
default: '.',
|
|
95
|
+
describe: chalk.gray('The path to execute the transform in (recursively).'),
|
|
96
|
+
});
|
|
97
|
+
})
|
|
91
98
|
.demandCommand(1, chalk.red.bold('You must provide a transform to apply.'))
|
|
92
99
|
.strictCommands()
|
|
93
100
|
.fail((msg, err, yargs) => {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@workday/canvas-kit-codemod",
|
|
3
3
|
"author": "Workday, Inc. (https://www.workday.com)",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "14.0.0-alpha.1123-next.0",
|
|
6
6
|
"description": "A collection of codemods for use on Workday Canvas Kit packages.",
|
|
7
7
|
"main": "dist/es6/index.js",
|
|
8
8
|
"sideEffects": false,
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"resolutions": {
|
|
47
47
|
"recast": "0.20.4"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "3601377207d7646ceeffe3a2161b671ccd8e8eab"
|
|
50
50
|
}
|