Skip to content

Commit

Permalink
preparation chores for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelbieh committed May 23, 2019
1 parent 49f4fd0 commit 4e8f055
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 6,382 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
es/*
yarn-error.log
/es
2 changes: 1 addition & 1 deletion lib/index.js

Large diffs are not rendered by default.

41 changes: 22 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,26 @@
"name": "geolib",
"version": "3.0.0-alpha.0",
"description": "",
"main": "dist/index.js",
"main": "lib/index.js",
"module": "es/index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/manuelbieh/geolib.git"
},
"author": "Manuel Bieh",
"license": "MIT",
"bugs": {
"url": "https://github.com/manuelbieh/geolib/issues"
},
"homepage": "https://github.com/manuelbieh/geolib#readme",
"scripts": {
"test": "jest",
"lint": "eslint src/**/*.{js,ts}",
"typescript": "tsc --noEmit",
"build": "babel --minified --ignore **/*.test.js,**/*.test.ts --out-dir es --extensions .ts,.js --no-comments src",
"build:types": "tsc --outDir es --emitDeclarationOnly --noEmit false -d",
"babel": "babel"
},
"dependencies": {},
"devDependencies": {
"@babel/cli": "^7.4.4",
Expand All @@ -29,25 +48,9 @@
"eslint-plugin-unicorn": "^8.0.2",
"jest": "^24.8.0",
"prettier": "^1.17.0",
"rimraf": "^2.6.3",
"typescript": "^3.4.5",
"webpack": "^4.30.0",
"webpack-cli": "^3.3.2"
},
"scripts": {
"test": "jest",
"lint": "eslint src/**/*.{js,ts}",
"tsc": "tsc --noEmit",
"build": "babel --minified --ignore **/*.test.js,**/*.test.ts --out-dir es --extensions .ts,.js --no-comments src",
"babel": "babel"
},
"repository": {
"type": "git",
"url": "git+https://github.com/manuelbieh/geolib.git"
},
"author": "Manuel Bieh",
"license": "MIT",
"bugs": {
"url": "https://github.com/manuelbieh/geolib/issues"
},
"homepage": "https://github.com/manuelbieh/geolib#readme"
}
}
7 changes: 3 additions & 4 deletions src/isPointInPolygon.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import getLatitude from './getLatitude';
import getLongitude from './getLongitude';
import { GeolibInputCoordinates } from './types';
/**
* Checks whether a point is inside of a polygon or not.
* Polygon must be in correct order!
*/

// Checks whether a point is inside of a polygon or not.
// Polygon must be in correct order!
const isPointInPolygon = (
point: GeolibInputCoordinates,
polygon: GeolibInputCoordinates[]
Expand Down
5 changes: 2 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,16 @@
"compilerOptions": {
"target": "es5",
"lib": ["es2018", "dom"],
"allowJs": true,
"allowJs": false,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"forceConsistentCasingInFileNames": false,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"noEmit": true,
// "baseUrl": "./src",
"strictNullChecks": true
},
"include": ["src"],
Expand Down
Loading

0 comments on commit 4e8f055

Please sign in to comment.