diff --git a/.npmignore b/.npmignore
index d32d6ac9e651e3c2b967d046e80913b843ad5959..87877e0a5a97b7e5f3902031428c0361e79d0cce 100644
--- a/.npmignore
+++ b/.npmignore
@@ -1,6 +1,5 @@
 tmp
 graphviz
-build
 .vscode
 grep
 Makefile
diff --git a/package.json b/package.json
index be8fc1bc6d6e4c4f0a8bbc6df54a1988d74c80b4..94e49adca29112e9096f413a206f997b5e97013c 100644
--- a/package.json
+++ b/package.json
@@ -1,9 +1,12 @@
 {
-  "name": "JaLHyd",
+  "name": "jalhyd",
   "version": "1.0.0",
   "author": "DD",
   "license": "ISC",
-  "description": "Javascript Library for Hydraulics",
+  "description": "JaLHyd, a Javascript Library for Hydraulics",
+  "main": "build/index.js",
+  "types": "build/index.d.ts",
+  "module": "build/index.js",
   "dependencies": {},
   "devDependencies": {
     "@types/jasmine": "^2.5.47",
diff --git a/src/index.ts b/src/index.ts
new file mode 100644
index 0000000000000000000000000000000000000000..2797000e53451c80cab3988d66fbc31cf07b9981
--- /dev/null
+++ b/src/index.ts
@@ -0,0 +1,7 @@
+export * from './base';
+export * from './param';
+export * from './nub';
+export * from './cond_distri';
+export * from './dichotomie';
+export * from './lechaptcalmon';
+export * from './regime_uniforme';
diff --git a/src/tsconfig.app.json b/src/tsconfig.app.json
index 37d0e791fd2733723c0555bcae2f8d85adbc4dc7..0b14a88d3907d3af534b1d6f78d70652d3e17ae9 100644
--- a/src/tsconfig.app.json
+++ b/src/tsconfig.app.json
@@ -2,10 +2,11 @@
   "extends": "../tsconfig.json",
   "compilerOptions": {
     "types": [],
-    "removeComments": false
+    "removeComments": false,
+    "declaration": true // génère le fichier .d.ts à partir de index.ts
   },
   "include": [
     "../src/**/*.ts"
   ],
   "exclude": []
-}
\ No newline at end of file
+}