Update files to include *.mjs files and remove npmignore.
Update .gitignore
Update .npmignore
Update .gitignore
Make publication generate node-compatible modules.
--- /dev/null
+*.mjs
+*.mjs.map
"name": "lightningdevkit",
"version": "0.0.104.0alpha0",
"description": "Lightning Development Kit",
- "main": "index.mts",
+ "main": "index.mjs",
+ "type": "module",
"directories": {
"test": "test"
},
"files": [
- "structs/*.mts",
- "enums/*.mts",
- "bindings.mts",
+ "structs/*.mjs",
+ "structs/*.d.mts",
+ "enums/*.mjs",
+ "enums/*.d.mts",
+ "bindings.mjs",
+ "bindings.d.mts",
"liblightningjs.wasm",
"tsconfig.json",
"README.md",
- "test/tests.mts",
- "test/node.mjs"
+ "test/node.mjs",
+ "test/tests.mjs",
+ "test/tests.d.mts"
],
"repository": {
"type": "git",
--- /dev/null
+!browser.mjs
+!node.mjs
"compilerOptions": {
"target": "es2021",
"module": "es2020",
+ "sourceMap": true,
+ "esModuleInterop": false,
+ "allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
-
+ "declaration": true,
"strict": true,
"noImplicitAny": true,
"strictNullChecks": false,