Skip to content

Commit

Permalink
restore bin/openfl.js because #!/usr/bin/env node is required to ru…
Browse files Browse the repository at this point in the history
…n tools.js

This restores the ability for openfl-js to process swfs
  • Loading branch information
joshtynjala committed Sep 21, 2023
1 parent 3afc12c commit a861f8b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ node_modules
.idea
.svn
.vscode
bin/openfl.js
test/unit/build
test/unit/report
test/unit/src
Expand Down
4 changes: 4 additions & 0 deletions bin/openfl.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env node

var child_process = require ("child_process");
child_process.fork (__dirname + "/tools.js", process.argv);
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
],
"main": "dist/openfl.min.js",
"bin": {
"openfljs": "bin/tools.js"
"openfljs": "bin/openfl.js"
},
"module": "lib-esm/openfl/index.js",
"types": "lib/openfl/index.d.ts",
Expand Down

0 comments on commit a861f8b

Please sign in to comment.