Skip to content

🚧 Pipeline for feature/esm #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 15 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
🔧 Add Rollup
  • Loading branch information
NatoBoram committed Oct 17, 2024
commit 7abf1a8c9729307a6eab42fc03446c85624cef08
22 changes: 13 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
"name": "jira.js",
"version": "4.0.2",
"description": "A comprehensive JavaScript/TypeScript library designed for both Node.JS and browsers, facilitating seamless interaction with the Atlassian Jira API.",
"main": "out/index.js",
"main": "out/index.cjs",
"types": "out/index.d.ts",
"module": "out/index.mjs",
"repository": "https://github.com/MrRefactoring/jira.js.git",
"author": "Vladislav Tupikin <vladislav.tupikin@icloud.com>",
"license": "MIT",
Expand All @@ -19,7 +20,7 @@
"library"
],
"scripts": {
"build": "tsc",
"build": "rollup --config rollup.config.ts --configPlugin typescript",
"prettier": "prettier --write src",
"lint": "npm run lint:tests && npm run lint:examples && npm run lint:src:agile && npm run lint:src:clients && npm run lint:src:services && npm run lint:src:version2 && npm run lint:src:version3 && npm run lint:src:files",
"lint:tests": "npm run lint:base -- tests",
Expand Down Expand Up @@ -53,7 +54,10 @@
"code:formatting": "npm run replace:all && npm run prettier && npm run lint:fix"
},
"devDependencies": {
"@types/node": "^18.19.50",
"@rollup/plugin-typescript": "^11.1.6",
"@swc-node/register": "^1.9.1",
"@swc/helpers": "^0.5.11",
"@types/node": "^18.19.33",
"@types/sinon": "^17.0.3",
"@typescript-eslint/eslint-plugin": "^8.6.0",
"@typescript-eslint/parser": "^8.6.0",
Expand All @@ -65,12 +69,12 @@
"eslint-plugin-import": "^2.30.0",
"prettier": "^3.3.3",
"prettier-plugin-jsdoc": "^1.3.0",
"sinon": "^18.0.1",
"typedoc": "^0.26.7",
"typedoc-plugin-extras": "^3.1.0",
"typescript": "^5.6.2",
"vite-tsconfig-paths": "^5.0.1",
"vitest": "^2.1.1"
"rollup": "^4.18.0",
"sinon": "^18.0.0",
"typedoc": "^0.25.13",
"typedoc-plugin-extras": "^3.0.0",
"typescript": "^5.4.5",
"vitest": "^1.6.0"
},
"dependencies": {
"axios": "^1.7.7",
Expand Down
24 changes: 24 additions & 0 deletions rollup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/* eslint-disable import/no-extraneous-dependencies */
import typescript from '@rollup/plugin-typescript';
import { defineConfig } from 'rollup';

const config = defineConfig([
{
input: 'src/index.ts',
output: [
{
file: './out/index.cjs',
format: 'cjs',
sourcemap: true,
},
{
file: './out/index.mjs',
format: 'es',
sourcemap: true,
},
],
plugins: [typescript()],
},
]);

export default config;
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"lib": ["ES2018", "DOM"],
"baseUrl": ".",
"declaration": true,
"declarationMap": true,
"importHelpers": true,
"strict": true,
"sourceMap": true,
"verbatimModuleSyntax": true,
"forceConsistentCasingInFileNames": true
},
Expand Down
7 changes: 1 addition & 6 deletions tsconfig.lint.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
{
"extends": "./tsconfig.json",
"include": [
"examples",
"src",
"tests",
"vitest.config.mts"
]
"include": ["examples", "src", "tests", "vitest.config.mts"]
}
11 changes: 0 additions & 11 deletions vitest.config.ts

This file was deleted.