Skip to content

Commit

Permalink
🚚 moved code to src directory
Browse files Browse the repository at this point in the history
  • Loading branch information
loloToster committed Jan 20, 2022
1 parent 9e6fd47 commit 5c35388
Show file tree
Hide file tree
Showing 20 changed files with 11 additions and 13 deletions.
2 changes: 1 addition & 1 deletion examples/air-pollution.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const OpenWeatherAPI = require("../index")
const OpenWeatherAPI = require("..")

const location = "Paris"

Expand Down
2 changes: 1 addition & 1 deletion examples/daily-example.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const OpenWeatherAPI = require("../index")
const OpenWeatherAPI = require("..")

// Set global key, location and units
let weather = new OpenWeatherAPI({
Expand Down
2 changes: 1 addition & 1 deletion examples/historical-data.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const OpenWeatherAPI = require("../index")
const OpenWeatherAPI = require("..")

// Set global key, location and units
let weather = new OpenWeatherAPI({
Expand Down
2 changes: 1 addition & 1 deletion examples/simple.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const OpenWeatherAPI = require("../index")
const OpenWeatherAPI = require("..")

// Set global key, location and units
let weather = new OpenWeatherAPI({
Expand Down
2 changes: 1 addition & 1 deletion examples/using-mergeWeathers.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const OpenWeatherAPI = require("../index")
const OpenWeatherAPI = require("..")

// Set global key, location and units
let weather = new OpenWeatherAPI({
Expand Down
2 changes: 1 addition & 1 deletion examples/using-options.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const OpenWeatherAPI = require("../index")
const OpenWeatherAPI = require("..")

// Set global key, location and units
let weather = new OpenWeatherAPI({
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "openweather-api-node",
"version": "1.3.2",
"description": "Simple Node.js package that makes it easy to work with OpenWeather API",
"main": "index.js",
"main": "src/index.js",
"scripts": {
"test": "mocha"
},
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion test/errors_test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const fs = require("fs")
const assert = require("assert")
const OpenWeatherAPI = require("../index")
const OpenWeatherAPI = require("..")

// ! Remeber to specify key in key.txt file
let key = fs.readFileSync("./test/key.txt").toString().trim()
Expand Down
2 changes: 1 addition & 1 deletion test/getter_test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const fs = require("fs")
const assert = require("assert")
const OpenWeatherAPI = require("../index")
const OpenWeatherAPI = require("..")

// ! Remeber to specify key in key.txt file
let key = fs.readFileSync("./test/key.txt").toString().trim()
Expand Down
2 changes: 1 addition & 1 deletion test/uncategorized_test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const fs = require("fs")
const assert = require("assert")
const OpenWeatherAPI = require("../index")
const OpenWeatherAPI = require("..")

// ! Remeber to specify key in key.txt file
let key = fs.readFileSync("./test/key.txt").toString().trim()
Expand Down
4 changes: 1 addition & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"include": [
"index.js",
"models",
"parsers"
"src/**/*"
],
"compilerOptions": {
"target": "ES6",
Expand Down

0 comments on commit 5c35388

Please sign in to comment.