Can't use package name "aspect.js" from Typescript project
matthewadams opened this issue · comments
TL;DR
tsc
fails on import
ing aspect.js
, and @microsoft won't fix it because it's working as intended. Ergo, the project name aspect.js
must be changed or its type mappings must be changed to be spec compliant.
L;R
The package name aspect.js
is not compliant with the AMD specification.
I filed microsoft/TypeScript#27908, which appears to be a duplicate of microsoft/TypeScript#16444. See microsoft/TypeScript#16444 for more information.
Unfortunately, the following names are taken by similar projects:
- https://www.npmjs.com/package/aspectjs
- https://www.npmjs.com/package/aspect-js
- https://www.npmjs.com/package/aspect
- https://www.npmjs.com/package/aspects
- https://www.npmjs.com/package/aspectify
I noticed that aspectj
is not currently taken, but you might run into trademark issues with the AspectJ eclipse project.
I also noticed that aspectize
is not taken, so you may consider that, since it does have the word "aspect" in it, it would be easily found, and it sounds kind of javascript-y.
You could also consider scoped packages, then pick whichever name you want, like @mgechev/aspectjs
, or you could pick a more official-sounding namespace like @aop/aspectjs
, since it's not taken as of the time of this writing.
I have a slight preference for a non-scoped package. What about https://www.npmjs.com/package/crosscutjs or https://www.npmjs.com/package/crosscut-js?
I agree on a non-scoped package. Not sure why you're referring to packages that already exist.
IMHO, the name should maximize the probability of a hit when searched for, which is why I recommended aspectize
, because it still has the word "aspect" in it.
How about aspectomatic
or aspect-o-matic
? aspecter
? slicer-dicer
? slapchop
? adviser
(sic)?
Not sure why you're referring to packages that already exist.
The packages crosscutjs and crosscut-js do not exist. We can have "aspect" as a keyword.
I'm partial to aspectomatic
, 'cause it's so gosh darned funny. If you want to go with a cross-cutting theme, you could go with a famous knife name, like ginsu
, orcrist
or anything from https://en.wikipedia.org/wiki/List_of_historical_swords.
Works for me. Here's a demo. Closing the issue, for now, feel free share a counterexample and I'll reopen it.
Why is the issue closed? This doesn't seem like it was resolved.