Skip to content

Commit de98cb4

Browse files
committed
chore: move native code to src/
1 parent 311e592 commit de98cb4

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

binding.gyp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
"MACOSX_DEPLOYMENT_TARGET": "10.12"
99
},
1010
"sources": [
11-
"defaults.mm",
12-
"json_formatter.h",
13-
"json_formatter.cc"
11+
"src/defaults.mm",
12+
"src/json_formatter.h",
13+
"src/json_formatter.cc"
1414
],
1515
}]
1616
],

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
"build": "node-gyp rebuild",
88
"clean": "node-gyp clean",
99
"lint": "prettier --check index.js",
10-
"format": "clang-format -i defaults.mm json_formatter.h json_formatter.cc && prettier --write index.js",
10+
"format": "npm run format:js && npm run format:cpp",
11+
"format:js": "prettier --write index.js",
12+
"format:cpp": "find src/ -iname *.h -o -iname *.cc -iname *.mm | xargs clang-format -i",
1113
"test": "./node_modules/.bin/mocha --reporter spec"
1214
},
1315
"repository": {
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)