Skip to content

Commit

Permalink
Cleanup package name
Browse files Browse the repository at this point in the history
  • Loading branch information
devongovett committed Apr 7, 2019
1 parent a66e9eb commit 411903f
Show file tree
Hide file tree
Showing 9 changed files with 74 additions and 112 deletions.
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
displayName: Github Release
inputs:
gitHubConnection: devongovett
repositoryName: devongovett/fschanges
repositoryName: parcel-bundler/watcher
assets: $(System.DefaultWorkingDirectory)/prebuilds/@parcel/*
- task: Npm@1
displayName: NPM Release
Expand Down
2 changes: 1 addition & 1 deletion binding.gyp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"targets": [
{
"target_name": "fschanges",
"target_name": "watcher",
"defines": [ "NAPI_DISABLE_CPP_EXCEPTIONS" ],
"sources": [ "src/binding.cc", "src/Watcher.cc", "src/Backend.cc", "src/DirTree.cc" ],
"include_dirs" : ["<!@(node -p \"require('node-addon-api').include\")"],
Expand Down
38 changes: 0 additions & 38 deletions demo.js

This file was deleted.

2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const binding = require('bindings')('fschanges.node');
const binding = require('bindings')('watcher.node');
const path = require('path');

function normalizeOptions(dir, opts = {}) {
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"name": "@parcel/watcher",
"version": "2.0.0-alpha.2",
"main": "index.js",
"repository" : {
"type" : "git",
"url": "https://github.com/devongovett/fschanges.git"
"repository": {
"type": "git",
"url": "https://github.com/parcel-bundler/watcher.git"
},
"scripts": {
"install": "prebuild-install -r napi || node-gyp rebuild",
Expand Down
2 changes: 1 addition & 1 deletion src/binding.cc
Original file line number Diff line number Diff line change
Expand Up @@ -223,4 +223,4 @@ Object Init(Env env, Object exports) {
return exports;
}

NODE_API_MODULE(fschanges, Init)
NODE_API_MODULE(watcher, Init)
2 changes: 1 addition & 1 deletion src/watchman/WatchmanBackend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ void WatchmanBackend::getEventsSince(Watcher &watcher, std::string *snapshotPath

std::string getId(Watcher &watcher) {
std::ostringstream id;
id << "fschanges-";
id << "parcel-";
id << (void *)&watcher;
return id.str();
}
Expand Down
Loading

0 comments on commit 411903f

Please sign in to comment.