From 3301db2a4756b85a33e3bc5f69e126cd0a0a4d31 Mon Sep 17 00:00:00 2001
From: "francois.grand" <francois.grand@irstea.fr>
Date: Wed, 5 Jul 2017 11:40:33 +0200
Subject: [PATCH] =?UTF-8?q?modifs=20pour=20pouvoir=20g=C3=A9n=C3=A9rer=20u?=
 =?UTF-8?q?n=20package=20int=C3=A9grable=20dans=20un=20autre=20projet=20(c?=
 =?UTF-8?q?f=20README=20sur=20npm=20pack)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .npmignore            | 1 -
 package.json          | 7 +++++--
 src/index.ts          | 7 +++++++
 src/tsconfig.app.json | 5 +++--
 4 files changed, 15 insertions(+), 5 deletions(-)
 create mode 100644 src/index.ts

diff --git a/.npmignore b/.npmignore
index d32d6ac9..87877e0a 100644
--- a/.npmignore
+++ b/.npmignore
@@ -1,6 +1,5 @@
 tmp
 graphviz
-build
 .vscode
 grep
 Makefile
diff --git a/package.json b/package.json
index be8fc1bc..94e49adc 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 00000000..2797000e
--- /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 37d0e791..0b14a88d 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
+}
-- 
GitLab