diff --git a/Makefile b/Makefile index e93ba9a3..3680f52f 100644 --- a/Makefile +++ b/Makefile @@ -213,6 +213,10 @@ lint: ## Run lint task to fix issues $(NPM_RUNNER) lint:fix .PHONY: lint +lint-types: ## Run typescript type checking + $(NPM_RUNNER) lint:types +.PHONY: lint-types + lint-staged: ## Lint staged files $(NPM_RUNNER) lint:staged .PHONY: lint-staged diff --git a/packages/facebook-pixel/package.json b/packages/facebook-pixel/package.json index 019bdae7..103b0a0a 100644 --- a/packages/facebook-pixel/package.json +++ b/packages/facebook-pixel/package.json @@ -2,6 +2,7 @@ "name": "@wayofdev/facebook-pixel", "version": "1.1.0", "private": true, + "type": "module", "homepage": "https://github.com/wayofdev/next-starter-tpl", "license": "MIT", "author": { diff --git a/packages/google-tag-manager/package.json b/packages/google-tag-manager/package.json index c0f39949..df1f30c2 100644 --- a/packages/google-tag-manager/package.json +++ b/packages/google-tag-manager/package.json @@ -2,6 +2,7 @@ "name": "@wayofdev/google-tag-manager", "version": "1.1.0", "private": true, + "type": "module", "homepage": "https://github.com/wayofdev/next-starter-tpl", "license": "MIT", "author": { diff --git a/packages/google-tag-manager/tsconfig.json b/packages/google-tag-manager/tsconfig.json index 9318a21a..ea390afb 100644 --- a/packages/google-tag-manager/tsconfig.json +++ b/packages/google-tag-manager/tsconfig.json @@ -2,13 +2,14 @@ "$schema": "https://json.schemastore.org/tsconfig", "extends": "../../tsconfig.base.json", "exclude": ["**/node_modules", "**/.*/", "dist", "build"], - "include": ["./src"], + "include": ["./src/**/*"], "compilerOptions": { "baseUrl": "./src", - "target": "esnext", + "module": "commonjs", "outDir": "dist", "allowJs": true, "jsx": "react-jsx", - "noEmit": false + "noEmit": false, + "verbatimModuleSyntax": false } }