Skip to content

Commit

Permalink
build: move build files to lib/ folder
Browse files Browse the repository at this point in the history
  • Loading branch information
fedeci committed Oct 10, 2023
1 parent db126c7 commit 9a97701
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -10,6 +10,7 @@ npm-debug.log*
# Build artifacts
/src/**/*.js
/src/**/*.d.ts
/lib/

# Misc
/coverage
Expand Down
12 changes: 5 additions & 7 deletions package.json
Expand Up @@ -14,19 +14,17 @@
"type": "git",
"url": "git://github.com/express-validator/express-validator.git"
},
"main": "./src/index.js",
"types": "./src/index.d.ts",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
"files": [
"src",
"!**/*.spec.ts",
"!**/*.ts",
"**/*.d.ts",
"lib",
"!src",
"!website",
"!docs"
],
"scripts": {
"build": "tsc",
"clean": "git clean -Xf src",
"clean": "git clean -Xf lib",
"docs:build": "npm --prefix ./website run build",
"docs:publish": "USE_SSH=true DEPLOYMENT_BRANCH=master npm --prefix ./website run publish-gh-pages",
"docs:regenerate-api": "npm --prefix ./website run regenerate-api",
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Expand Up @@ -6,6 +6,7 @@
"moduleResolution": "node",
"target": "es2020",
"lib": ["ES2020"],
"outDir": "lib",
"charset": "utf-8",
"pretty": true,
"noImplicitAny": true,
Expand All @@ -14,5 +15,5 @@
"noUnusedParameters": true,
"strictNullChecks": true
},
"exclude": ["node_modules", "coverage", "src/**/*.spec.ts"]
"exclude": ["node_modules", "coverage", "src/**/*.spec.ts", "lib"]
}

0 comments on commit 9a97701

Please sign in to comment.