Skip to content

Commit

Permalink
- Restrcuture
Browse files Browse the repository at this point in the history
  • Loading branch information
iamvishnusankar committed Aug 11, 2020
1 parent ce404a4 commit 0032b78
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 14 deletions.
2 changes: 2 additions & 0 deletions packages/next-sitemap/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.js
*.d.ts
3 changes: 1 addition & 2 deletions packages/next-sitemap/.npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
src
lib
tsconfig.json
tsconfig.tsbuildinfo
jest.config.js
2 changes: 0 additions & 2 deletions packages/next-sitemap/bin/next-sitemap

This file was deleted.

2 changes: 1 addition & 1 deletion packages/next-sitemap/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testPathIgnorePatterns: ['/node_modules/', '/dist/'],
testPathIgnorePatterns: ['^.+\\.*.js$'],
}
3 changes: 2 additions & 1 deletion packages/next-sitemap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"name": "next-sitemap",
"version": "1.0.0",
"description": "Sitemap generator for next.js",
"main": "./dist/index.js",
"main": "./index.js",
"types": "@types/index.d.ts",
"repository": "https://github.com/iamvishnusankar/next-sitemap.git",
"author": "Vishnu Sankar (@iamvishnusankar)",
"license": "MIT",
Expand Down
13 changes: 6 additions & 7 deletions packages/next-sitemap/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{
"extends": "@corex/tsconfig",
"compilerOptions": {
"rootDir": "src",
"outDir": "dist",
"noEmit": false,
"module": "CommonJS",
"target": "ESNext",
"esModuleInterop": true
"outDir": ".",
"rootDir": "lib",
"declarationDir": "@types"
},
"include": ["src"]
"include": ["lib"],
"exclude": ["node_modules"]
}
7 changes: 6 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1076,6 +1076,11 @@
exec-sh "^0.3.2"
minimist "^1.2.0"

"@corex/deepmerge@^2.2.7":
version "2.2.9"
resolved "https://registry.yarnpkg.com/@corex/deepmerge/-/deepmerge-2.2.9.tgz#374a0c5dd3803124c477233e91b54699ab6033e7"
integrity sha512-/oab+WEEXPXK3WqcTlAzeRCo9YzGTG4fuqhbOPasPhZQ/IAOa9xqya0A+bnYAt3CPqPPmaV1JOb5OxrBzEdXJQ==

"@corex/jest-require-stub@*":
version "2.2.7"
resolved "https://registry.yarnpkg.com/@corex/jest-require-stub/-/jest-require-stub-2.2.7.tgz#4e2cf8a34f40e011bc837bc06fc68a4693885768"
Expand Down Expand Up @@ -8934,4 +8939,4 @@ yargs@^15.3.1:
string-width "^4.2.0"
which-module "^2.0.0"
y18n "^4.0.0"
yargs-parser "^18.1.2"
yargs-parser "^18.1.2"

0 comments on commit 0032b78

Please sign in to comment.