Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
/index.cjs
177 changes: 173 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 17 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,31 @@
"description": "The path module from Node.js core for browsers",
"version": "1.1.0",
"scripts": {
"test": "tape test/"
"build": "rollup -c",
"test": "node test"
},
"files": [
"index.cjs",
"index.d.ts",
"index.js",
"README.md"
],
"exports": {
".": {
"import": "./index.js",
"require": "./index.cjs",
"types": "./index.d.ts"
}
},
"author": {
"name": "James Halliday",
"email": "[email protected]",
"url": "http://substack.net"
},
"bugs": "https://github.com/isomorphic-git/path-browserify/issues",
"dependencies": {},
"devDependencies": {
"@rollup/plugin-commonjs": "^28.0.2",
"rollup": "^4.34.6",
"tape": "^5.9.0"
},
"homepage": "https://github.com/isomorphic-git/path-browserify",
Expand All @@ -27,8 +42,5 @@
"repository": {
"type": "git",
"url": "git://github.com/isomorphic-git/path-browserify.git"
},
"scripts": {
"test": "node test"
}
}
15 changes: 15 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import commonjs from "@rollup/plugin-commonjs";

export default {
input: "index.js",
plugins: [
commonjs(),
],
exports: 'named',
output: [
{
file: "index.cjs",
format: 'cjs',
},
],
};