Prepare headless tic-tac-toe for publishing

Summary: Make headless-tic-tac-toe executable and configure packaging

Reviewed By: lblasa

Differential Revision: D36589422

fbshipit-source-id: d8b141033434265e4f14b9a047d3bccde8fad14b
This commit is contained in:
Andrey Goncharov
2022-05-23 08:06:18 -07:00
committed by Facebook GitHub Bot
parent abbb267482
commit 38814f16f9
2 changed files with 16 additions and 2 deletions

1
desktop/examples/headless-tic-tac-toe/index.js Normal file → Executable file
View File

@@ -1,3 +1,4 @@
#!/usr/bin/env node
/** /**
* Copyright (c) Meta Platforms, Inc. and affiliates. * Copyright (c) Meta Platforms, Inc. and affiliates.
* *

View File

@@ -1,6 +1,15 @@
{ {
"name": "flipper-headless-tic-tac-toe", "name": "flipper-headless-tic-tac-toe",
"version": "1.0.0", "version": "0.0.0",
"description": "Tic-tac-toe Flipper desktop plugin implementation for the terminal",
"homepage": "https://github.com/facebook/flipper",
"keywords": [
"Flipper"
],
"repository": "facebook/flipper",
"bugs": "https://github.com/facebook/flipper/issues",
"author": "Facebook, Inc",
"bin": "index.js",
"main": "index.js", "main": "index.js",
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
@@ -9,5 +18,9 @@
"dependencies": { "dependencies": {
"inquirer": "^8.2.4", "inquirer": "^8.2.4",
"ws": "^8.6.0" "ws": "^8.6.0"
} },
"files": [
"*.js",
"README.md"
]
} }