Skip to content

Commit

Permalink
feat: use node16 moduleResolution to work with dynamic imports
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahzdev committed Apr 27, 2023
1 parent a74b210 commit bbeab15
Show file tree
Hide file tree
Showing 5 changed files with 287 additions and 294 deletions.
2 changes: 1 addition & 1 deletion packages/lit-auth-client/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ export default {
},
moduleFileExtensions: ['ts', 'js', 'html'],
coverageDirectory: '../../coverage/packages/lit-auth-client',
transformIgnorePatterns: ['/node_modules/(?!(@simplewebauthn)/)'],
transformIgnorePatterns: ['/node_modules/(?!(@simplewebauthn|nanoid)/)'],
};
8 changes: 6 additions & 2 deletions packages/lit-auth-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lit-protocol/lit-auth-client",
"version": "2.1.120",
"version": "2.1.136",
"type": "commonjs",
"license": "MIT",
"homepage": "https://github.com/Lit-Protocol/js-sdk",
Expand All @@ -26,6 +26,10 @@
"vanilla"
],
"peerDependencies": {
"@simplewebauthn/browser": "^7.2.0",
"@simplewebauthn/typescript-types": "^7.0.0",
"nanoid": "3.3.4"
}
},
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
26 changes: 7 additions & 19 deletions packages/lit-auth-client/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,20 @@
},
"_buildTsc": {
"executor": "@nrwl/js:tsc",
"outputs": [
"{options.outputPath}"
],
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/packages/lit-auth-client",
"main": "packages/lit-auth-client/src/index.ts",
"tsConfig": "packages/lit-auth-client/tsconfig.lib.json",
"assets": [
"packages/lit-auth-client/*.md"
]
"assets": ["packages/lit-auth-client/*.md"]
}
},
"_buildWeb": {
"executor": "@websaam/nx-esbuild:package",
"options": {
"globalName": "LitJsSdk_litAuthClient",
"outfile": "dist/packages/lit-auth-client-vanilla/lit-auth-client.js",
"entryPoints": [
"./packages/lit-auth-client/src/index.ts"
],
"entryPoints": ["./packages/lit-auth-client/src/index.ts"],
"define": {
"process.env.NODE_DEBUG": "false",
"global": "window"
Expand All @@ -46,25 +40,19 @@
},
"lint": {
"executor": "@nrwl/linter:eslint",
"outputs": [
"{options.outputFile}"
],
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": [
"packages/lit-auth-client/**/*.ts"
]
"lintFilePatterns": ["packages/lit-auth-client/**/*.ts"]
}
},
"test": {
"executor": "@nrwl/jest:jest",
"outputs": [
"coverage/packages/lit-auth-client"
],
"outputs": ["coverage/packages/lit-auth-client"],
"options": {
"jestConfig": "packages/lit-auth-client/jest.config.ts",
"passWithNoTests": true
}
}
},
"tags": []
}
}
Loading

0 comments on commit bbeab15

Please sign in to comment.