Skip to content

Commit 6f6e708

Browse files
committed
mixed ESM
1 parent 11b8d9d commit 6f6e708

25 files changed

+18826
-19230
lines changed

bin/solid

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
#!/usr/bin/env -S node --experimental-require-module
2-
const startCli = require('./lib/cli')
3-
startCli()
1+
#!/usr/bin/env node
2+
import startCli from './lib/cli.js'
3+
startCli()

index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
module.exports = require('./lib/create-app')
2-
module.exports.createServer = require('./lib/create-server')
3-
module.exports.startCli = require('./bin/lib/cli')
1+
// Main entry point - provides both CommonJS (for tests) and ESM (for modern usage)
2+
module.exports = require('./lib/create-app-cjs')
3+
module.exports.createServer = require('./lib/create-server-cjs')
4+
module.exports.startCli = require('./bin/lib/cli')

lib/acl-checker.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict'
22
/* eslint-disable node/no-deprecated-api */
33

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

lib/api/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
'use strict'
2-
3-
module.exports = {
4-
authn: require('./authn'),
5-
accounts: require('./accounts/user-accounts')
6-
}
1+
'use strict'
2+
3+
module.exports = {
4+
authn: require('./authn'),
5+
accounts: require('./accounts/user-accounts')
6+
}

lib/create-app.js

Lines changed: 0 additions & 361 deletions
This file was deleted.

0 commit comments

Comments
 (0)