Skip to content
This repository was archived by the owner on Feb 19, 2023. It is now read-only.

Commit

Permalink
workflow update
Browse files Browse the repository at this point in the history
  • Loading branch information
janithcooray committed Jun 26, 2022
1 parent aa4a3ba commit bc95111
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@
"chokidar": "^3.5.3",
"stdio": "^2.1.1"
},
"scrips": {
"scripts": {
"test": "node index -m test",
"postinstall" : "node node_modules/sync-stat/index -m install"
}
6 changes: 3 additions & 3 deletions src/convert.js
Original file line number Diff line number Diff line change
@@ -10,10 +10,10 @@ export default class Convert extends Ops {
this.output("adding scripts");
let package_file = this.getConvertData();
this.output(package_file);
if (package_file.scrips == null) {
package_file.scrips = {};
if (package_file.scripts == null) {
package_file.scripts = {};
}
package_file.scrips["sync-stat"] = "node node_modules/sync-stat/index";
package_file.scripts["sync-stat"] = "node node_modules/sync-stat/index";
fs.writeFile( this.getProjectRoot() +'/package.json', JSON.stringify(package_file,null,4), err => {
if (err) {
console.error(err);

0 comments on commit bc95111

Please sign in to comment.