Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

Fix files resolution for electron #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -191,4 +191,5 @@ Temporary Items

### Project
public
dist
/dist
/esm
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"name": "@cromefire_/nativeshell-api-definition",
"version": "1.0.0",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"main": "dist/index.js",
"module": "esm/index.js",
"types": "esm/index.d.ts",
"license": "Apache-2.0",
"scripts": {
"build": "tsc -b tsconfig.json",
"build": "tsc -b tsconfig.json tsconfig.commonjs.json",
"lint": "eslint src/**",
"docs": "typedoc"
},
Expand Down
7 changes: 7 additions & 0 deletions tsconfig.commonjs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "dist",
"module": "CommonJS"
}
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"compilerOptions": {
"baseUrl": "src",
"rootDir": "src",
"outDir": "dist",
"outDir": "esm",
"moduleResolution": "Node",
"module": "esnext",
"target": "ESNext",
Expand Down