Skip to content
Open
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
19 changes: 19 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Force bash scripts to have unix line endings
*.sh text eol=lf

# Force bin files (executable scripts) to have unix line endings
bin/* text eol=lf

# Ensure batch files on Windows keep CRLF line endings
*.bat text eol=crlf

# Binary files should not be modified
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.pdf binary
*.zip binary
*.tar.gz binary
*.tgz binary
4 changes: 2 additions & 2 deletions bin/solid
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env -S node --experimental-require-module
const startCli = require('./lib/cli')
#!/usr/bin/env node
import startCli from './lib/cli.js'
startCli()
7 changes: 4 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
module.exports = require('./lib/create-app')
module.exports.createServer = require('./lib/create-server')
module.exports.startCli = require('./bin/lib/cli')
// Main entry point - provides both CommonJS (for tests) and ESM (for modern usage)
module.exports = require('./lib/create-app-cjs')
module.exports.createServer = require('./lib/create-server-cjs')
module.exports.startCli = require('./bin/lib/cli')
6 changes: 6 additions & 0 deletions index.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import createApp from './lib/create-app.mjs'
import createServer from './lib/create-server.mjs'
import startCli from './bin/lib/cli.js'

export default createApp
export { createServer, startCli }
1 change: 1 addition & 0 deletions lib/acl-checker.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict'
/* eslint-disable node/no-deprecated-api */

// TODO: This is a CommonJS wrapper. Use acl-checker.mjs directly once ESM migration is complete.
const { dirname } = require('path')
const rdf = require('rdflib')
const debug = require('./debug').ACL
Expand Down
Loading
Loading