@@ -285,8 +285,36 @@ code-example(language="json").
285
285
## Publishing your library
286
286
287
287
Every package on NPM has a unique name, and so should yours.
288
-
289
- -- rename lib
288
+ If you haven't already, now is the time to change the name of your library.
289
+
290
+ Use your editor to search the project for all instances of `angular-quickstart-lib` and change it
291
+ to your intended name (also in `dash-case` format).
292
+ The library name is mentioned on these files:
293
+
294
+ - `integration/src/app/app.component.ts`
295
+ - `integration/src/app/app.module.ts`
296
+ - `integration/src/systemjs.config.js`
297
+ - `integrations/package.json`
298
+ - `src/demo/app/app.component.ts`
299
+ - `src/demo/app/app.module.ts`
300
+ - `src/demo/systemjs.config.js`
301
+ - `src/demo/tsconfig.json`
302
+ - `src/lib/tsconfig.json`
303
+ - `src/lib/tsconfig.es2015.json`
304
+ - `bs-config.json`
305
+ - `package.json`
306
+ - `README.md`
307
+
308
+ You'll also need to rename the `src/lib/angular-quickstart-lib.ts` file and the folder your
309
+ project is in.
310
+
311
+ After you have changed the package name, you can publish it to NPM (read
312
+ [this link](https://docs.npmjs.com/getting-started/publishing-npm-packages) for details).
313
+
314
+ You'll need to create a NPM account, login on your local machine, and then you can publish updated
315
+ by running `npm publish`.
316
+
317
+ Remember to follow [Semantic Versioning](http://semver.org/)!
290
318
291
319
.l-main-section
292
320
:marked
0 commit comments