spmjs / spm2

源码已合并到
https://github.com/spmjs/spm/tree/2.x
Other
126 stars 26 forks source link

.spmrc设置了format后install的组件的依赖路径不正确 #105

Closed larry4xie closed 10 years ago

larry4xie commented 10 years ago

file .spmrc

[install] format = {{family}}/{{name}}/{{filename}}

base-debug.js

image

如上图,filename都不正确

spm version 2.2.4

popomore commented 10 years ago

看看依赖的 class 和 events 文件

larry4xie commented 10 years ago

image

popomore commented 10 years ago

猜测:你把 class 和 events 拷贝到相对路径,但源码 require 的时候并不是 ./

larry4xie commented 10 years ago

@popomore 我是直接spm install arale/base 安装到目录下的代码就是这样的(前提是我配置了format)

popomore commented 10 years ago

是个 bug