Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import path from 'node:path'
import { defineBuildConfig } from 'unbuild'

function commonHook(options, minified = false) {

Check failure on line 5 in build.config.ts

View workflow job for this annotation

GitHub Actions / lint

Parameter 'options' implicitly has an 'any' type.
// Ensure dist directory exists
const distPath = path.resolve(options.outDir)
if (!fs.existsSync(distPath)) {
Expand All @@ -12,7 +12,7 @@
// Determine new filename based on build configuration
let newFilename
if (options.rollup?.output?.format === 'esm') {
newFilename = minified ? 'AdsClickTracker.esm.min.js' : 'AdsClickTracker.esm.js'
newFilename = minified ? 'AdsClickTracker.esm.min.mjs' : 'AdsClickTracker.esm.mjs'
}
else if (options.rollup?.output?.format === 'iife') {
newFilename = minified ? 'AdsClickTracker.iife.min.js' : 'AdsClickTracker.iife.js'
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@analytics-debugger/ads-click-tracker",
"type": "module",
"version": "0.0.1-beta.2",
"version": "0.0.1-beta.3",
"packageManager": "[email protected]",
"description": "Library to keep track of clickIds from different advertising platforms",
"author": "David Vallejo <[email protected]>",
Expand All @@ -16,11 +16,11 @@
"keywords": [],
"sideEffects": false,
"exports": {
".": "./dist/index.mjs",
".": "./dist/AdsClickTracker.esm.mjs",
"./package.json": "./package.json"
},
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"main": "./dist/AdsClickTracker.esm.mjs",
"module": "./dist/AdsClickTracker.esm.mjs",
"types": "./dist/index.d.mts",
"files": [
"dist"
Expand Down
Loading