Skip to content

Commit

Permalink
feat: node_module browser-remaps instead of local package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
PrashantAshok committed Nov 23, 2023
1 parent 2dc87c4 commit cc3bee3
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 7 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.vscode
.nyc_output
node_modules
!src/client/node_modules
coverage
dist
__snapshots__
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

# NPM
node_modules
!src/client/node_modules
npm-debug.log

# Build
Expand Down
4 changes: 2 additions & 2 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"*.ts": ["eslint -f codeframe --fix", "prettier --write"],
"*{.js,.json,.md,.yml,rc}": ["prettier --write"]
"*.ts": ["eslint -f codeframe --fix", "prettier --write -u --with-node-modules"],
"*{.js,.json,.md,.yml,rc}": ["prettier --write -u --with-node-modules"]
}
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
package.json
package-lock.json
node_modules
!src/client/node_modules
coverage
dist
__snapshots__
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"format": "npm run lint:eslint -- --fix && npm run lint:prettier -- --write && (fixpack || true)",
"lint": "tsc -b && npm run lint:eslint && npm run lint:prettier -- -l && fixpack",
"lint:eslint": "eslint -f visualstudio .",
"lint:prettier": "prettier '**/*{.ts,.js,.json,.md,.yml,rc}'",
"lint:prettier": "prettier 'src/**/*{.ts,.js,.json,.md,.yml,rc}' --with-node-modules",
"mocha": "NODE_ENV=test mocha 'src/**/__tests__/*.test.ts'",
"postpublish": "replace --silent 'dist' 'src' marko.json",
"prepare": "husky install",
Expand Down
1 change: 1 addition & 0 deletions src/client/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require("@internal/client");
1 change: 1 addition & 0 deletions src/client/index.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "@internal/client";
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 11 additions & 0 deletions src/client/node_modules/@internal/client/package.json

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

4 changes: 0 additions & 4 deletions src/client/package.json

This file was deleted.

0 comments on commit cc3bee3

Please sign in to comment.