Skip to content

Commit

Permalink
fix: module resolution error
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxiyao committed Jan 5, 2024
1 parent 3a1577a commit ffb9416
Show file tree
Hide file tree
Showing 4 changed files with 237 additions and 35 deletions.
5 changes: 1 addition & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,5 @@
"editor.tabSize": 2,
"editor.detectIndentation": false,
"eslint.format.enable": true,
"editor.formatOnSave": true,
"[typescript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
}
"editor.formatOnSave": true
}
23 changes: 13 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,29 @@
"name": "circleci-api-js",
"version": "0.1.2",
"description": "",
"main": "dist/bundle.esm.js",
"main": "dist/bundle.js",
"type": "module",
"module": "dist/bundle.esm.js",
"types": "dist/types/index.d.ts",
"module": "dist/bundle.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"exports": {
"require": {
"types": "./dist/types/index.d.ts",
"default": "./dist/bundle.cjs.js"
"types": "./dist/index.d.cts",
"default": "./dist/bundle.cjs"
},
"import": {
"types": "./dist/types/index.d.ts",
"default": "./dist/bundle.esm.js"
"types": "./dist/index.d.ts",
"default": "./dist/bundle.js"
},
"default": "./dist/bundle.esm.js"
"default": "./dist/bundle.js"
},
"scripts": {
"test": "jest",
"lint": "eslint",
"build": "rollup --config rollup.config.ts --configPlugin typescript"
"build": "rollup --config rollup.config.ts --configPlugin typescript",
"preinstall": "npx only-allow pnpm"
},
"keywords": [
"circleci",
Expand All @@ -44,10 +45,12 @@
"eslint": "^8.54.0",
"eslint-plugin-jest": "^27.6.0",
"jest": "^29.7.0",
"rimraf": "^5.0.5",
"rollup": "^4.3.0",
"rollup-plugin-dts": "^6.1.0",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"tslib": "^2.6.2",
"typescript": "^5.2.2"
}
}
}
162 changes: 162 additions & 0 deletions pnpm-lock.yaml

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

Loading

0 comments on commit ffb9416

Please sign in to comment.