build pipeline

This commit is contained in:
cupcakearmy 2022-10-18 14:34:23 +02:00
parent ef44dab3bc
commit f933df1908
No known key found for this signature in database
GPG Key ID: 3235314B4D31232F
4 changed files with 7 additions and 6 deletions

View File

@ -1,6 +1,6 @@
{
"name": "occulto",
"version": "2.0.0-rc.2",
"version": "2.0.0-rc.3",
"description": "crypt utility",
"repository": {
"type": "git",
@ -22,6 +22,7 @@
"pnpm": "7"
},
"type": "module",
"types": "./dist/esm/index.d.ts",
"exports": {
".": {
"import": "./dist/esm/index.js",
@ -38,7 +39,7 @@
"test:browser": "karma start .karma.cjs --single-run",
"test": "run-s build test:*",
"build:esm": "tsc -p tsconfig.esm.json",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build:cjs": "tsc -p tsconfig.cjs.json && rename -S .js .cjs dist/cjs/**/*",
"build": "run-s clean build:*",
"clean": "rm -rf ./dist",
"dev": "run-p -ln dev:*",

View File

@ -2,7 +2,7 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "CommonJS",
"target": "es2015",
"target": "ES2015",
"outDir": "dist/cjs"
}
}

View File

@ -2,7 +2,7 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "ES2015",
"target": "es2015",
"target": "ES2015",
"outDir": "dist/esm"
}
}

View File

@ -45,9 +45,9 @@
/* Emit */
"declaration": true /* Generate .d.ts files from TypeScript and JavaScript files in your project. */,
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
"declarationMap": true /* Create sourcemaps for d.ts files. */,
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
"sourceMap": true /* Create source map files for emitted JavaScript files. */,
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
"outDir": "./dist" /* Specify an output folder for all emitted files. */,
// "removeComments": true, /* Disable emitting comments. */