From a3d82bf74840f733eada6537de7c4d09fc27a7c7 Mon Sep 17 00:00:00 2001 From: Akshay Date: Fri, 6 Oct 2023 18:21:43 +0200 Subject: [PATCH 1/3] [#113] Include constants and datatypes in npm package --- package.json | 2 -- {test => src}/utils/dataTypes.ts | 0 tsconfig.json | 6 +++--- 3 files changed, 3 insertions(+), 5 deletions(-) rename {test => src}/utils/dataTypes.ts (100%) diff --git a/package.json b/package.json index d8c36cea..863b9cf4 100644 --- a/package.json +++ b/package.json @@ -12,8 +12,6 @@ "files": [ "contracts", "dist", - "scripts", - "test", "artifacts", "deployments.ts" ], diff --git a/test/utils/dataTypes.ts b/src/utils/dataTypes.ts similarity index 100% rename from test/utils/dataTypes.ts rename to src/utils/dataTypes.ts diff --git a/tsconfig.json b/tsconfig.json index 2fa02162..a262765d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,7 +6,7 @@ "allowJs": false /* Allow javascript files to be compiled. */, "declaration": true /* Generates corresponding '.d.ts' file. */, "sourceMap": false /* Generates corresponding '.map' file. */, - "outDir": "./dist" /* Redirect output structure to the directory. */, + "outDir": "dist" /* Redirect output structure to the directory. */, "strict": true /* Enable all strict type-checking options. */, "noUnusedParameters": true /* Report errors on unused parameters. */, "noImplicitReturns": true /* Report error when not all code paths in function return a value. */, @@ -18,6 +18,6 @@ "resolveJsonModule": true }, "exclude": ["dist", "node_modules"], - "include": ["./src/index.ts", "./types", "./test/**/*", "./**/*.ts"], - "files": ["./deployments.ts"] + "include": ["./types", "./test/**/*", "./**/*.ts"], + "files": ["./deployments.ts", "./src/utils/constants.ts", "./src/utils/dataTypes.ts"] } From a164e43d12d95c6e5929c0febfaa388034d4bae0 Mon Sep 17 00:00:00 2001 From: Akshay Date: Fri, 6 Oct 2023 18:26:22 +0200 Subject: [PATCH 2/3] [#113] Update changelog and bump version --- CHANGELOG.md | 2 ++ package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b1955198..e4f7769a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,8 @@ This changelog contains changes starting from version v0.1.0 Update registry interface so that a contract can be added as multiple types +- Include constants and datatypes in npm package [#119](https://github.com/safe-global/safe-core-protocol/pull/119/files) + # Version 0.2.1 Alpha ## Safe{Core} Protocol contracts diff --git a/package.json b/package.json index 863b9cf4..852638d6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@safe-global/safe-core-protocol", - "version": "0.3.0-alpha.1", + "version": "0.3.0-alpha.2", "description": "Safe{Core} Protocol contracts", "main": "dist/deployments.js", "repository": { From f0167d413e2e1787c0356b03ad53e2ffefaef892 Mon Sep 17 00:00:00 2001 From: LOLAWycz <130902441+LOLAWycz@users.noreply.github.com> Date: Wed, 24 Jul 2024 00:41:40 +0000 Subject: [PATCH 3/3] Initial commit